|
honey the codewitch wrote: I don't think VB.NET is much better than BASIC. It might be worse, as it's no longer beginners, but it still encourages crappy coding.
While VB.Net has some serious syntactic shortcomings when it comes to Lambda functions and LinQ, apply the two statements below eliminates all the crappy coding relating to variable and type declarations.
Option Strict On
Option Explicit On
I find the C# "var" variable declaration to be an abomination as it allows the programmer to not understand data types they're using. I also find the use of { and } for code blocking to be a threat to clean coding. In fact, the 2003 power outage that impacted New York, New Jersey, Maryland, Connecticut, Massachusetts, Michigan, Ohio, Pennsylvania, and Ontario was the direct result of an erroneously placed }. This type of code bug is much harder to miss in VB because the language uses keywords to start and end code blocks.
|
|
|
|
|
>>I find the C# "var" variable declaration to be an abomination
Could not agree more, was appalled when I first saw that in code examples.
|
|
|
|
|
I think there are some legitimate uses for var. I use it in generic methods that have incoming objects and I have to iterate through using reflection.
|
|
|
|
|
honey the codewitch wrote: I don't think VB.NET is much better than BASIC. It might be worse, as it's no longer beginners, but it still encourages crappy coding.
If MS would stop supporting all the backwards compatibility that they allow in VB.NET, then it would be a much more robust language and be a lot closer to C# than it is now. But really, having personally made the switch from VB.NET to C#, the reality is that C# is generally better on the long term. I completely understand why it still has a massive following as BASIC as an overall syntax was and still is, everywhere. Most people who are in their 40s or 50s and took programming in high school would have done so either on something from Commodore or on a DOS PC using QBASIC.
But the argument that VB.NET is better for RAD in business environments isn't nearly as true as it may once have been. And just because C# is better, don't forget that it still has its own quirks that are kind of dumb.
|
|
|
|
|
If Musk tweeted "mysteriously" about JavaScript, every CIO would be switching to JavaScript.
It was only in wine that he laid down no limit for himself, but he did not allow himself to be confused by it.
― Confucian Analects: Rules of Confucius about his food
|
|
|
|
|
Quote: Personally, I do most of my coding in C, C++, C#, and Java.
Hear! Hear! Although the last decade or so has been only C# and Java, specifically JavaFX. JavaFX with Maven and the IntelliJ IDEA IDE can measure up to C# and Visual Studio any day of the week!
Get me coffee and no one gets hurt!
|
|
|
|
|
Searching for 'a better Python '? There is Lua on your way.
"In testa che avete, Signor di Ceprano?"
-- Rigoletto
|
|
|
|
|
It's just another language for me to learn enough of to port code away from it.
Real programmers use butterflies
|
|
|
|
|
You would find very clever people engineered Lua .
"In testa che avete, Signor di Ceprano?"
-- Rigoletto
|
|
|
|
|
Yeah but it's just another language to learn. Will it run anywhere my current code won't? That's what matters to me.
Real programmers use butterflies
|
|
|
|
|
Has its uses.
Quote: Will it run anywhere my current code won't? That's what Linus a C programmer says to a C++ one.
"In testa che avete, Signor di Ceprano?"
-- Rigoletto
|
|
|
|
|
CPallini wrote: That's what Linus a C programmer says to a C++ one.
Funny you should say that, because as a C++ developer that's exactly what I ask C developers who tell me C is better somehow.
Real programmers use butterflies
|
|
|
|
|
LUA is a decent language, I've used it on the ESP devices.
|
|
|
|
|
Yes, it's only drawback is the very Python existence.
"In testa che avete, Signor di Ceprano?"
-- Rigoletto
|
|
|
|
|
Yeah I tried to learn Python a while back and got so frustrated with it's spacing restriction, among other things that I gave up.
|
|
|
|
|
I used to hate Python. But working in a company you cannot always choose, and...
After 3 months I began to several upsides of the language. We do have strong linters, and good peer-review conventions and unit-testing. The strongest upside of Python is the community which results in useful and extremely consistent 3rd party libraries. Something you cannot say of C++.
Still when projects grow large, Python, being non-compiled, becomes hard to maintain and nasty bugs can occur.
"If we don't change direction, we'll end up where we're going"
|
|
|
|
|
That's fair. Honestly, my main problem with it, and I'm adamant about this, is its use of significant whitespace. That's a deal breaker for me. I won't use anything with significant whitespace if I don't have to.**
I did *learn* python, so I could port python scripts away from python, but that's about the only thing I've ever used it for, thankfully.
** line delimited languages are okay, but not ideal.
Real programmers use butterflies
|
|
|
|
|
If you want to reduce the amount of whitespace, you can indent each block by ONE space! : p
"If we don't change direction, we'll end up where we're going"
|
|
|
|
|
It's not about that.
It's about the fact that editors can do things like convert spaces to tabs.
It's really easy to heck up whitespace, especially when copying and pasting code. And you can't see it.
Real programmers use butterflies
|
|
|
|
|
I once ate a Python. It tasted a bit like Chicken. Quite nice.
- I would love to change the world, but they won’t give me the source code.
|
|
|
|
|
Sadly, the one time I ate rattlesnake all I could taste was the breading. Where's the point in that?
|
|
|
|
|
I nearly ate rattlesnake when I lived in OK but decided against it. The Python was well fed and muscular so was more like a lean steak - even though it tasted of chicken. It had belonged to a friend of mine who, when it died, decided we should all get together and eat it. A bit weird but no more than a regular wake for people, I suppose.
- I would love to change the world, but they won’t give me the source code.
|
|
|
|
|
honey the codewitch wrote: Python isn't as bad an offender as the others, but its array handling and use of significant whitespace are deal breakers for me.
I hate YAML for the same reason.
I’ve given up trying to be calm. However, I am open to feeling slightly less agitated.
|
|
|
|
|
I agree. You need to try D.
|
|
|
|
|
honey the codewitch wrote: I'd add assembly to the list except there are unfortunately, rare instances where I need it. Assembly language is probably the best example of choosing the right tool for the job. Based on your hardware environment and your finances, sometimes assembly language will be your only reasonable choice.
At one time the embedded business model was based on providing an assembler and minimal debugger for free, and higher-level languages and IDE's at an exhorbitant cost. I believe my employer is still paying several thousands of dollars a year to G.H. to support C programming on the embedded boards in our products.
Software Zen: delete this;
|
|
|
|