|
yep
If your actions inspire others to dream more, learn more, do more and become more, you are a leader.-John Q. Adams You must accept one of two basic premises: Either we are alone in the universe, or we are not alone in the universe. And either way, the implications are staggering.-Wernher von Braun Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.-Albert Einstein
|
|
|
|
|
I really like C#, but to me it always felt like everything that went beyond generics made the language unnecessarily complex, given the fact that most of the features that were introduced since then are just syntactical sugar. I mean, it's nice to have all these features available because they certainly serve a certain purpose, but they also made the code harder to read and maintain for people who are less familiar with them. Maybe I'm just too old-school C# as I used the language from day one, and I seem to have the habit to prefer to go the long, sometimes "ancient" way; I still explicitly define a backing field for every property, for example. I don't know why, maybe because I like to be in control of such subtle things, don't leave it to the compiler to do it for me and I like to have it written out in code. It's almost like modeling a piece of art: if the code doesn't look well and complete, it doesn't look right to me even if it works just fine. Sometimes it's hard to leave it like that all the same.
To come back to the point: The language designers should become careful with what features they add to the language, because every iteration seems to get more and more overloaded, and I don't like to see it happen up until the point where stuff that could also be solved with two or three additional lines of code gets standardized. I know it's all about time, productivity and rapid development cycles, but things like default property values are just going a bit too far IMO.
|
|
|
|
|
sevenacids wrote: I still explicitly define a backing field for every property, for example. I don't know why, maybe because I like to be in control of such subtle things, don't leave it to the compiler to do it for me and I like to have it written out in code.
I only recently started using C#, and I started off with backing fields because at that point I hadn't learnt about auto properties. Now I find it far easier to read and write with auto properties than go through the process of making the backing field, less lines of code and all that.
.-.
|o,o|
,| _\=/_ .-""-.
||/_/_\_\ /[] _ _\
|_/|(_)|\\ _|_o_LII|_
\._. |\_/|"` |_| ==== |_|
|_|_| ||" || ||
|-|-| ||LI o ||
|_|_| ||'----'||
/_/ \_\ /__| |__\
|
|
|
|
|
Sure, if you like them it's OK. I mean, the good thing with all these features added is you can still decide which way you want to go.
By the way, what's interesting about properties is that it looks like you don't really need fields at the language level anymore at all, just public or private, static or non-static properties. For example, imagine you could do something like this in C#:
public Double X {
get { return value; }
set { assign value; }
}
Where in the setter the "assign" keyword would be responsible to store "value" (or the result of whatever expression follows) in a hidden backing field, while in the getter this field would be accessible by the "value" keyword.
|
|
|
|
|
I'm confused why you'd want to create a new keyword for that verbose style when the auto property syntax has created hidden backing fields since v2.0
public Double X { get; set; }
Did you ever see history portrayed as an old man with a wise brow and pulseless heart, waging all things in the balance of reason?
Is not rather the genius of history like an eternal, imploring maiden, full of fire, with a burning heart and flaming soul, humanly warm and humanly beautiful?
--Zachris Topelius
Training a telescope on one’s own belly button will only reveal lint. You like that? You go right on staring at it. I prefer looking at galaxies.
-- Sarah Hoyt
|
|
|
|
|
Kent Sharkey wrote: ?.? C# is turning into C++ with all the magic characters
At least there is some way to go before it turns into APL.
|
|
|
|
|
That was the startlingly blunt answer Google's head of Android, Sundar Pichai, gave when asked about the prevalence of malware on Android during Mobile World Congress in Barcelona this week. Thanks guys, great plan
|
|
|
|
|
Looking for a job or a promotion and worried that your age might be an impediment? Don't be. Age really is just a number, and especially in IT, that number isn't as important as your accomplishments, your adaptability and willingness to learn. "Age is strictly a case of mind over matter. If you don't mind, it doesn't matter."
|
|
|
|
|
Plus we use hexadecimal anyway so I'm still in my 20s.
|
|
|
|
|
Kent Sharkey wrote: "Age is strictly a case of mind over matter. If you don't mind, it doesn't matter."
tried that one on the judge and i still show up as a red dot on a map at PTA meetings
Don't comment your code - it was hard to write, it should be hard to read!
|
|
|
|
|
The last major version of Microsoft’s graphics platform DirectX 11 was announced about 6 years back. Since then the desktop graphics API development has stagnated. During this time, AMD has developed their own set of APIs called Mantle. OpenGL/OpenCL has come a long way since then. ... and cancel it in November
|
|
|
|
|
The wildly simple yet infinitely frustrating game Flappy Bird is no more, though it continues to live on in countless clones. Now Code.org, the non-profit aimed at teaching people how to write code, has created a tool to make your own Flappy Bird game while learning some code at the same time. $50,000/day income not included
|
|
|
|
|
Flappy Bird files again...into a wall and a pipe and the ground.
|
|
|
|
|
Kind of like code.org from what I've heard.
TTFN - Kent
|
|
|
|
|
As we now have a sufficiently good idea of how devs are working on C++ in Visual Studio, there’s little sense to keep the gates closed. That said, we’re now opening ReSharper C++ EAP to the public. C++ folk get a taste of the fun
*Excluding MFC, ATL, WTL, C++11, some conditions apply, void where prohibited by law
|
|
|
|
|
I'm getting pretty sick of being nagged to install your damn apps. Stop sugar coating it, how do you really feel about them?
|
|
|
|
|
In order to help organizations and businesses develop secure, flexible and interoperable online identity environments, the OpenID Foundation has launched OpenID Connect, an authentication protocol backed by companies such as Deutsche Telekom, Google, Microsoft, Ping Identity and Salesforce. Because there's an Internet-wide shortage of those
|
|
|
|
|
Google ATAP (Advanced Technologies and Projects) only just announced Tango, its 3D-environment sensor for mobile devices, and now it’s revealing a two day developer conference April 15 and 16 at the Computer History Museum in Mountain View.
Come one, come all, journey to the land of Ara.
|
|
|
|
|
Imperative programming language replaces basic keywords with classic one-liners from Schwarzenegger movies.
AssignVariable CallMethod= GET TO THE CHOPPER DO IT NOW
|
|
|
|
|
calling a function: I'LL BE BACK:dosomething()
If your actions inspire others to dream more, learn more, do more and become more, you are a leader.-John Q. Adams You must accept one of two basic premises: Either we are alone in the universe, or we are not alone in the universe. And either way, the implications are staggering.-Wernher von Braun Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.-Albert Einstein
|
|
|
|
|
|
Is that a GOSUB?
This space intentionally left blank.
|
|
|
|
|
Yessir!! Wooohooo!!!
If your actions inspire others to dream more, learn more, do more and become more, you are a leader.-John Q. Adams You must accept one of two basic premises: Either we are alone in the universe, or we are not alone in the universe. And either way, the implications are staggering.-Wernher von Braun Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.-Albert Einstein
|
|
|
|
|
My favorite one is probably MethodArguments I NEED YOUR CLOTHES YOUR BOOTS AND YOUR MOTORCYCLE
|
|
|
|
|
return would be GET OUT.
Wout
|
|
|
|