Programming's Foul Language
-
Drop the semi-colon? And be forced _ to resort to VB's _ horrible style of _ line continuations!?!? No thanks. Though the case sensitivity... I wouldn't have to deal with code where people name the private variables the same as the exposed properties, with just case differences... Or better yet, gems like:
int num = Num + NUM;
Thankfully, I've never actually seen a line that bad, but imagine a program written like that... There's something you can't do in VB.
Proud to have finally moved to the A-Ark. Which one are you in? Developer, Author (Guardians of Xen)
Ian Shlasko wrote:
Drop the semi-colon? And be forced _ to resort to VB's _ horrible style of _ line continuations!?!?
Of course with the release of Visual Studio 2010, VB will be getting implicit line continuation for most areas :-) Thanks, Seth Rowe [MVP]
-
Really? I loved checked exceptions when I was programming in Java. I have the backing of at least one more highly-respected CPian. :)
Cheers, Vikram. (Proud to have finally cracked a CCC!)
Me too. When they are used properly.
Daniel Vaughan Blog: DanielVaughan.Orpius.com
-
I agree with that, despite knowing that at Assembly level, that's exactly what your code will do.
-
Throws, as in the Java notation :thumbsdown:
If the post was helpful, please vote, eh! Current activities: Book: Devils by Fyodor Dostoyevsky Project: Hospital Automation, final stage Learning: Image analysis, LINQ Now and forever, defiant to the end. What is Multiple Sclerosis[^]?
This is the only thing about JAVA that I miss wish to be in C#. This is very useful when you're using other people's libraries. You get know what to catch, without needing a very well documented library.
-
This is the only thing about JAVA that I miss wish to be in C#. This is very useful when you're using other people's libraries. You get know what to catch, without needing a very well documented library.
.... right up until something changes in the library and it can throw a new exception at which point the library author has to either break every single app that consumes it, cast the new exception into a different type defeating the purpose of typed exceptions in the first place, or just have every method throw exception from the start defeating the purpose of checked exceptions from the start. X|
The European Way of War: Blow your own continent up. The American Way of War: Go over and help them.
-
I like writing documents. :)
Me too.
Daniel Vaughan Blog: DanielVaughan.Orpius.com
-
Ian Shlasko wrote:
Drop the semi-colon? And be forced _ to resort to VB's _ horrible style of _ line continuations!?!?
Of course with the release of Visual Studio 2010, VB will be getting implicit line continuation for most areas :-) Thanks, Seth Rowe [MVP]
-
something something {
more of that something
}
I know some like this kind of brace style but personally I can't stand it at all. It goes so far that I tend to reformat a piece of code with this brace style before reading it :-D.
____________________________ I didn't know what to put in here.
Yeah there's nothing quite like naming your church
cult
after the name of the authors who weren't able to convince their publisher that reformatting their code like that to save on printing costs wasn't a good idea. :rolleyes:The European Way of War: Blow your own continent up. The American Way of War: Go over and help them.
-
I like writing documents. :)
-
.... right up until something changes in the library and it can throw a new exception at which point the library author has to either break every single app that consumes it, cast the new exception into a different type defeating the purpose of typed exceptions in the first place, or just have every method throw exception from the start defeating the purpose of checked exceptions from the start. X|
The European Way of War: Blow your own continent up. The American Way of War: Go over and help them.
That might happen even if you don't have typed exceptions. And we will always have the option of handling a base exception, which covers all exceptions for cases like this.
-
This is the only thing about JAVA that I miss wish to be in C#. This is very useful when you're using other people's libraries. You get know what to catch, without needing a very well documented library.
You do realize you can mark up which exceptions are thrown in XML comments? I forget if that junk shows up in the intellisense though...
-
Gosub On Error Resume Next
"WPF has many lovers. It's a veritable porn star!" - Josh Smith
As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
Amen. Any language that uses VB6 style exception handling should be outlawed. Gives me a headache every time I try to read it.
-
What programming terms would you consider equivalent to foul language? For example: Legacy Code
Todd Smith
Spagetti code. "Budding" code. "Moulded" code (large sections commented out). Quick fix X|
-
Kidding ? :omg: Coding without it is like using FORTRAN: do not catch anything, or enclose all code in try/catch, just in case ;P
-
What programming terms would you consider equivalent to foul language? For example: Legacy Code
Todd Smith
-
Drop the semi-colon? And be forced _ to resort to VB's _ horrible style of _ line continuations!?!? No thanks. Though the case sensitivity... I wouldn't have to deal with code where people name the private variables the same as the exposed properties, with just case differences... Or better yet, gems like:
int num = Num + NUM;
Thankfully, I've never actually seen a line that bad, but imagine a program written like that... There's something you can't do in VB.
Proud to have finally moved to the A-Ark. Which one are you in? Developer, Author (Guardians of Xen)
GOD, I FUC^N HATE THAT and they do it in textbooks, tutorials, samples --- yeah that's right Microsoft I'm talking to you.... I propose anyone caught doing this gets paper cuts on the tips of all of their digits... that will teach them. (try typing now you sick B@$$+@rd$ I slept last night so i feel good today, try me again in 24 hours I won't be so plucky.
-
Microsoft
-
I agree with that, despite knowing that at Assembly level, that's exactly what your code will do.
-
goto can actually be useful (if used extremely sparingly - so sparingly that I haven't used it in over 10 years!) One example where goto is very helpful is in programming an efficient state-machine. Oh, I know you can do it without gotos by using functions and/or block escapes, but the goto is much more efficient -- and, in the case of a state-machine, actually HELPS understanding of what is going on.... FWIW (getting ready for all the thumbs-down).
-
goto can actually be useful (if used extremely sparingly - so sparingly that I haven't used it in over 10 years!) One example where goto is very helpful is in programming an efficient state-machine. Oh, I know you can do it without gotos by using functions and/or block escapes, but the goto is much more efficient -- and, in the case of a state-machine, actually HELPS understanding of what is going on.... FWIW (getting ready for all the thumbs-down).
Owen37 wrote:
if used extremely sparingly - so sparingly that I haven't used it in over 10 years!)
I guess I'm not saying that they can NEVER be useful, it's just that whenever I've seen it used abused, it had no business in the code and it's always at least a red flag.
Owen37 wrote:
(getting ready for all the thumbs-down).
Not from me. :)