|
PIEBALDconsult wrote: I do not like that C# requires that everything be in OOP It doesn't. I have seen plenty of C# projects that are written as a collection of static classes. In this case, the class name just serves as a namespace. And with C# 6 you can do using Namespace.ClassName; to pull that static members of static 'ClassName' into the current translation unit.
So, yes, you can do 'C' style structured programming in C# and use OOP only as required. Not that it's necessarily recommended. But, hey, whatever.
#SupportHeForShe
Government can give you nothing but what it takes from somebody else. A government big enough to give you everything you want is big enough to take everything you've got, including your freedom.-Ezra Taft Benson
You must accept 1 of 2 basic premises: Either we are alone in the universe or we are not alone. Either way, the implications are staggering!-Wernher von Braun
|
|
|
|
|
TheGreatAndPowerfulOzyes, you can do 'C' style structured programming in C#
No, you can't -- everything has to be in a class (or struct maybe). Beginners should be freed of that.
|
|
|
|
|
Uh, yes you can. And I already mentioned that -- like I said, the static class can be treated as a namespace. It's not that much of a mental leap for a beginner.
#SupportHeForShe
Government can give you nothing but what it takes from somebody else. A government big enough to give you everything you want is big enough to take everything you've got, including your freedom.-Ezra Taft Benson
You must accept 1 of 2 basic premises: Either we are alone in the universe or we are not alone. Either way, the implications are staggering!-Wernher von Braun
|
|
|
|
|
A class is a class. Having to needlessly embed code in any kind of wrapper for no good reason hinders understanding.
|
|
|
|
|
I disagree. Why wrap any code in function names at all? Why not put all code in one function then? Or no function at all. That's what BASIC started out as. And we know that spaghetti ensued.
Code segregation, i.e. "cohesion", enhances understanding. Namespaces and static classes and non-static classes enhance understanding.
#SupportHeForShe
Government can give you nothing but what it takes from somebody else. A government big enough to give you everything you want is big enough to take everything you've got, including your freedom.-Ezra Taft Benson
You must accept 1 of 2 basic premises: Either we are alone in the universe or we are not alone. Either way, the implications are staggering!-Wernher von Braun
|
|
|
|
|
But a developer should need to do that only as needed.
|
|
|
|
|
Sure, just put all the code in Program.cs and Program.Main() then.
#SupportHeForShe
Government can give you nothing but what it takes from somebody else. A government big enough to give you everything you want is big enough to take everything you've got, including your freedom.-Ezra Taft Benson
You must accept 1 of 2 basic premises: Either we are alone in the universe or we are not alone. Either way, the implications are staggering!-Wernher von Braun
|
|
|
|
|
I do, but that's still in a freakin' class! I don't want to be required to have a class.
|
|
|
|
|
OMG. Such whining.
#SupportHeForShe
Government can give you nothing but what it takes from somebody else. A government big enough to give you everything you want is big enough to take everything you've got, including your freedom.-Ezra Taft Benson
You must accept 1 of 2 basic premises: Either we are alone in the universe or we are not alone. Either way, the implications are staggering!-Wernher von Braun
|
|
|
|
|
Kent Sharkey wrote: I hope not - I have a rich uncle
Is he a Nigerian who wants to send you loads of money; and is he asking for a deposit and your bank details?
|
|
|
|
|
Damn, I already sent him mine! Don't tell me it's another scam!
#SupportHeForShe
Government can give you nothing but what it takes from somebody else. A government big enough to give you everything you want is big enough to take everything you've got, including your freedom.-Ezra Taft Benson
You must accept 1 of 2 basic premises: Either we are alone in the universe or we are not alone. Either way, the implications are staggering!-Wernher von Braun
|
|
|
|
|
Obviously the headline is for clicks, but in reality he's only describing how inheritance and decorators can work well together. there also seems to be the fascination to include as many design patters in one article as he can fit in.
|
|
|
|
|
Many people are prone to 'remembering' events that never happened, according to new research by the University of Warwick. Like: did you hear that half of people believe fake facts?
|
|
|
|
|
|
That's obviously fake - it can't be anywhere near as low as 50%!
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Most Americans do not see "information overload" as a problem for them despite the explosion of internet data and images, according to a Pew Research Center survey on Wednesday. "Tomorrow's illiterate will not be the man who can't read; he will be the man who has not learned how to learn."
Yeah, misattributed to Alvin Toffler, but I just thought it was a good quote.
|
|
|
|
|
IBM's Bluemix Continuous Delivery offers reusable workflows for devops, with familiar services like GitHub and Slack as part of the plan Wait: IBM and "take the drudgery *out*"?
|
|
|
|
|
Microsoft today is announcing the release of R Server 9.0, an update for the commercially supported big data software aimed at large organizations. Microsoft is also releasing R Client 3.3.2, the latest version of the free software that people can run on desktop computers, as opposed to servers. Get it before all the pirates do
|
|
|
|
|
3D interface, slow speeds expose the machinations of the ancient 6502C processor. Where's my Star Raiders cartridge?
|
|
|
|
|
Kent Sharkey wrote: Star Raiders
I loved that game! Finally made it to Star Commander, top level years ago.
Marc
|
|
|
|
|
|
Oh man I forgot about that game. I loved playing Star Raiders on the Atari 800. I remember playing that at a computer store way back in 1981, 82-ish(?). The father of a friend of mine back then was part of a engineering group that met up in the conference room of a store after hours. We would sit out front during the meeting and play Star Raider all night. Awesome times!
|
|
|
|
|
A battery replacement program for some models was announced last month. So, leave it in a vacuum and you'll be fine
Although I guess you won't be if you try using it.
|
|
|
|
|
The abandonment rate of smartwatches is 29 percent, and 30 percent for fitness trackers, because people do not find them useful, they get bored of them or they break, according to a survey by Gartner, Inc ..and so the IoT remained a hyped dream, without much useful applications other than tracking and hacking people.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
It's a multi-billion dollar industry...
...for the trash collectors.
More IoT garbage thrown away, more trash work.
I'm investing in garbage this year...
...and not indirectly, like I did last year by buying into Apple.
This year I'm investing in WasteManagement Systems.
|
|
|
|