The Lounge is rated PG. If you're about to post something you wouldn't want your
kid sister to read then don't post it. No flame wars, no abusive conduct, no programming
questions and please don't post ads.
The int? behavior is the expected one. When an int? is null, its int equivalent is 0 (int's default). Since string is a reference type (with some value semantics), you'd expect its default to be null (which is so), but for concatenation they changed it to default to String.Empty. Although it does make sense to do it that way as the most useful behavior (for most or all scenarios).
When an int? is null, its int equivalent is 0 (int's default).
Which is why I don't understand why i+=1 != 1 in that case.
Nish Sivakumar wrote:
Although it does make sense to do it that way as the most useful behavior
I don't know -- I would think it should throw a null reference exception. Though now that I think about it, I think other places, like in printing to the console, a null string is also handled as an empty string.
I've been doing a lot of wordpress work, which I consider a pretty solid product, my wife has a web design firm that I help out with. I think they nailed a CMS API that is really easy and straightforward to customize. HOWEVER, I f$#@$ing hate PHP.
Ironically, I think it's a fantastic language. On the web, I'm a total Unix person, so it's Unix-y roots are appealing. It has a TON of functionality. It's fast. And it's dumbed down just enough for most people to use it with relative ease. But sometimes, just sometimes it would be nice to have to declare a variable.
Andy Brummer wrote:
and I chose to start using AngularJS
I was looking at that, but still not clear on exactly what it does. I'm assuming it's like jQuery but instead uses it's own DOM right? From what I know it's supposed to be nice to manage client-side state with right?
Angular isn't like jQuery. jQuery makes a few things easier and consistent. It adds a few functions that makes many things easier to build.
AngularJS is a complete framework that completely changes the way you write interactive pages. It includes client side templating, 2 way data binding, routing, xhd wrapper, animations through attributes, and a whole host of other features. I normally hate frameworks because they end up making the easy stuff a little easier, and the hard stuff impossible. I haven't run into that with angular.
Now, before start off, here are few things to make note of:
1. You cannot call it bad just because of content. If that was the case, you should dislike CP as well considering amounts of rants about Q & A here.
2. If you have had a bad experience with random friend request, it is not FB's fault.
3. If you are annoyed with game requests, you should consider choosing FB friends carefully rather than blaming FB.
4. If you think content there is just idiotic, remember it is not just for people like you. Kids to old people use it. There will be everything there. Again you need to choose what you want to see.
5. If you do not like their UI, for few things I am with you.
I don't know about anyone else, but for me... As with so many "Web apps" (including this one), it just keeps changing for the sake of change -- you never know what the UI will be from one visit to another.
You'll never get very far if all you do is follow instructions.