|
Doesn't VB allow multiple statements on a "line" ?
|
|
|
|
|
It might, and it theoretically at least allows one statement to span multiple lines but doing so is messy.
It's better than the situation with Python which is why I'll still grudgingly use it if the need arises (thankfully it really hasn't).
Real programmers use butterflies
|
|
|
|
|
Putting an _ (underscore) at the end of the line is messy? The flip side of this is you don't need semi-colons to terminate statements.
|
|
|
|
|
And we know that it's much too much trouble to type a semicolon.
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
The underscore requires two keypresses, while a semicolon takes one (on most keyboards). Factor in the notion in C-style languages that there are fewer statements than lines, and therefore semicolons win.
(just stirring the pot here )
Software Zen: delete this;
|
|
|
|
|
Well, you can always fake it: Python Humor | Python.org[^] It's really just one extra character at the start and end of a {} block!
|
|
|
|
|
I quite like it, and any decent editor* will manage the indentation for you.
*In fact VSCode does it even without the Python extension installed.
|
|
|
|
|
I'm targeting it for code generation tools, and it creates interesting problems.
I just now found out that it has a maximum line length as well. I think I can manage that but I may have to build my WordWrappingTextWriter after all. Plus that gets weird because Python uses continuation syntax for that - parentheses and then something else in another case.
Anyway, targeting Python isn't for the faint of heart because of this.
I stand by my issues with it, even if it is making my generated code beautifully formatted.
Real programmers use butterflies
|
|
|
|
|
I think the problem for those of us used to C type languages is just getting our heads round the use of indentation rather than braces and semi-colons. Once your brain accepts that it does get easier. And TBH it is a rather useful system for many tasks. I have played with a number of the third-party libraries and you can do some really cool stuff without too much difficulty.
|
|
|
|
|
Nah. I have technical problems with it.
1. I can *see* the delimiters in my source.
2. Editors don't munge hard delimiters like they do whitespace (converting spaces to tabs and vice versa for example
3. Transport protocols and different encodings won't generally mess with hard delimiters. Going from unicode whitespace like non-breaking spaces to something non-unicode gets weird fast.
The bottom line is there is no hard guarantee that the whitespace I put in is the whitespace that will come out on the end and no easy visual way to check it.
I ran into a similar problem just the other day with MS's sql parser.
Real programmers use butterflies
|
|
|
|
|
... I'm not sure what's more critical:
a.) Greta Thunberg
b.) Climate
c.) Corona
modified 3-Dec-21 21:01pm.
|
|
|
|
|
Coffee, bacon, and alcohol.
"the debugger doesn't tell me anything because this code compiles just fine" - random QA comment
"Facebook is where you tell lies to your friends. Twitter is where you tell the truth to strangers." - chriselst
"I don't drink any more... then again, I don't drink any less." - Mike Mullikins uncle
|
|
|
|
|
All of the above equally weighted?
|
|
|
|
|
a) Sex
b) Drugs (luckily coffee can be counted)
c) Rock 'n roll
GCS d--(d-) s-/++ a C++++ U+++ P- L+@ E-- W++ N+ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t+ 5? X R+++ tv-- b+(+++) DI+++ D++ G e++ h--- r+++ y+++* Weapons extension: ma- k++ F+2 X
|
|
|
|
|
a) Sex
b) Drugs (luckily coffee can be counted)
c) Rock 'n roll Handel's Water Music
|
|
|
|
|
(c) is related to (a) because some of the pieces would be a great soundtrack for rabbit porn.
|
|
|
|
|
wrote: a.) Greta Thunberg
Misguided autistic teenager who's been used and abused by the climate change hysterics.
wrote: b.) Climate
Been changing for 4 billion years. Solar activity is the direct correlation and cause, not carbon. The simple proof for this is that not a single carbon based model has accurately predicted historical numbers.
wrote: c.) Corona
A virus that is 99.9% survivable for anyone who has yet to reach human life expectancy (CDC statistics)
========
All three have been used by the power elite to take more an more control and freedom from the proletariat.
|
|
|
|
|
Oh look, another self-credentialed omni-scientist here to tell everyone how things really are.
|
|
|
|
|
Actually someone who does his own research looking for the raw numbers and ignoring the media and hype machine.
|
|
|
|
|
Of course you did.
And because you know everything about every scientific discipline there is, your totally unbiased internet research is equivalent to the expertise of people who have dedicated their careers to this stuff.
How lucky we are to have you in our presence.
|
|
|
|
|
Depends if Corona is the virus or the beer.
|
|
|
|
|
|
Sales driven tech-speak?
The less you need, the more you have.
Even a blind squirrel gets a nut...occasionally.
JaxCoder.com
|
|
|
|
|
Maybe, but in the world of computer technology you should not belittle forecasts of the future!
Get me coffee and no one gets hurt!
|
|
|
|
|
Cp-Coder wrote: My neurons are smoking!
I'd like to know what that guy Woolley is smoking. He's living in la la land.
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|