|
While reading some programming books, I notice that the authors says that, in OOP, you may have some confusion while understanding the main idea of OOP.
And hell yeah!. I had some confusion. Did you have the same and what makes this confusion to programmers...
Started by Loai Najati on
, 11 posts
by 11 people.
Answer Snippets (Read the full thread at stackoverflow):
So I had a bit of confusion initially....
I never really had any confusion but I learned programming along the time-axis it evolved.
A lot of the confusion when learning OOP comes from trying.
Because this approach ist very "natural".
|
|
I am always confused with the different ways of expressing nulls. There is the null reference type (aka "null"). Then I've seen that throughout my application, developers have used MinValue to represent nulls. Ex: Double.MinValue or DateTime.MinValue ...
Started by DotnetDude on
, 12 posts
by 12 people.
Answer Snippets (Read the full thread at stackoverflow):
The usage of MinValue....
Null is actually a null reference, and in your application code any reference type should use null as its, well, null value .
System.DBNull is a class that was (and still is) used by ADO.NET to represent a null value in a database .
|
|
I'm writing a program and I seem to be creating alot of objects where one object will be the singular form and then the collection is the plural form. eg
SalesGroup SalesGroups
Is this confusing for other programmers to read my code?
Started by Memb on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Should not be confusing, in fact I find it pretty informative and clear; unless you have multiple kinds of collections (lame example: suppose you have an array but also a map of SalesGroup, then SalesGroups would not be the best choice but you'....
|
Ask your Facebook Friends
|
One can measure goodness of fit of a statistical model using Akaike Information Criterion (AIC) , which accounts for goodness of fit and for the number of parameters that were used for model creation. AIC involves calculation of maximized value of likelihood...
Started by bgbg on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
It is not possible to calculate the AIC from a confusion matrix since it doesn't contain any.
|
|
Hello Im having some confusion with my git usage. I cloned a repo from one comp to the other, and the new clone is the state of the original that was active some time ago. So its cloning a past version. when I do 'git log -n1' to see what the latest commit...
Started by deepblue on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Git commit -m "my commit....
Git add.
Are you on the same branch as the other repo?
(you get master by default, and newer commits in other branch aren't possibly hidden until you switch.)
First make sure all changes are committed on the remote repository .
|
|
Hey i am new to the macports thing as i recently switched to the mac. as i was thinking of developing some applications in my mac i wanted all the usual gnu and opensource tools i need. but i had a small confusion. i was installing git with macports and...
Started by sfactor on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
In some cases there is a system package for a given dependency that will... .
MacPorts installs its own dependencies in the /opt/local tree (you can change this default when you build MacPorts) because its packagers then have a known quantity to test against .
|
|
Hi, I'm having some real confusion about events in c#... if I have this code in an interface:
Event OnBeforeSaving(ByVal Sender As TEntity, ByVal EventArgs As CancelEventArgs)
How should it be in c#? When I run it through a converter it gives me this
...
Answer Snippets (Read the full thread at stackoverflow):
Is this....
In my head the code should be combined.
I'm not sure if I understand what is going on.. .
The VB compiler will automatically create a delegate type; the C# compiler forces you to create it yourself .
Net requires events to be of a Delegate type.
|
|
I'm a little confused with trying to do bring a list of Categories into a navigation bar on a MasterPageView in the latest release of the ASP.NET MVC framework. I have 0 experience with Partials so far (this adds to the confusion).
Should I use this variant...
Started by tyndall on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Public ActionResult NavBar() { CategoryRepository cr = new CategoryRepository(); IList<Category> lst = cr.GetCategories(); return View(lst); }
on your partial call
<%... .
I would use Html.RenderAction() instead and return a partial view from it .
|
|
I wrote a confusion matrix calculation code in Python:
def conf_mat(prob_arr, input_arr): # confusion matrix conf_arr = [[0, 0], [0, 0]] for i in range(len(prob_arr)): if int(input_arr[i]) == 1: if float(prob_arr[i]) < 0.5: conf_arr[0][1] = conf_arr...
Started by Arja Varvio on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
Def create_conf_matrix of expected classes you can use code like... .
This function creates confusion matrices for any number of classes.
Here the mapping is trivial:
def row with.
You should map from classes to a row in your confusion matrix.
|
|
I have some basic confusion about how transactions and msdtc work together.
I have a basic server/client winforms app. The app uses transactionscope to encapsulate several sql commands that are executed on the sql server.
The app seemed to work fine when...
Started by muhan on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
If you are having trouble see Troubleshooting....
This can be source of pain especially when dealing with firewalls .
If you are using MSDTC, then you will need the client (your application) and the server (database) to both run MSDTC and also to be configured properly .
|