- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
Admin
[quote user="frits"
Reading is fundamental. When two things are the same, there is no ambiguity. [/quote]
Strictly speaking, no. But anybody who cares to can construct two expressions in some propositional calculus (or in two related species of propositional calculus) that evaluate to the same thing, but are not obviously identical. They might not be ambiguous - each evaluates unambiguously to the same unambiguous expression - but the the syntax in which they are expressed does in fact matter greatly to comprehensibility.
If two programs, one in C# and VB, generate the same intermediate code, there is no ambiguity, but one might be easier to write than the other, and one might be easier to read than the other. I think that was the point of the quoted comment - the word ambiguity was not used strictly, but we're not so pedantic that that should matter, are we?
(I haven't had occasion to use any of the .net products, so I've got no dog in the fight - I'm just trying to keep the squabbling on track)
Admin
Either way, I can relate, having been in similar situations myself. Also, I agree with you that the craftsman analogy fails in this case (it tends to do so frequently when applied to programming).
Admin
Admin
If the one demonstrates a point about the issue in question - which, if you'll recall, was whether there is a fundamental difference in the capacities of VB and C# - and has a typo, and the other has no typos but not only fails to make any point about that issue, but doesn't even do what the "corrected" code was meant to do, then I'd say that the one with the typo was the better example.
Clearly, "Some Guy" understands something about the underlying framework, and he was able to make his point. Your point seems to be that you don't get the point. But there's still time to actually say something useful, if you want, the day is still young.
Admin
Admin
I started on an Apple II in about 1980. My first home computer was also a VIC-20, but I had the 16K ram expansion. That gives me a good two inches on you. Length and circumference, buddy.
Admin
C#:
Your right, C# is easier than VB!
Admin
I started on an Apple II in about 1980. My first home computer was also a VIC-20, but I had the 16K ram expansion. That gives me a good two inches on you. Length and circumference, buddy.
(whoops, it just isn't the same without quoting the original thread.)
Admin
Wait...
Admin
Nope, you're still useless. Keep trying, though. Eventually you'll come up with something worth saying.
Hint: if you think the point of the original code is to return the value of "junk" then you've missed it.
Admin
Properties are TRWTF, am I right or am I right?
Admin
Admin
I skipped the C64 and got the C128 instead. Schwing!
Admin
Ruby comes from (and is mostly associated with) Unix-land, which shields it from the type of hate that VB gets. The type of moronic point-and-click "developers" that VB attracts wouldn't know Unix if they tripped over a csh at the beach.
Also, I like how you used both "its" and "it's" in the same way in your two sentences there. Makes it so you're sure to be 50% right.
Admin
You would expect MS to have taken the golden opportunity to kill VB when .NET came out, but they didn't want to lose the VB code monkeys. The () working as both the array pointer and a function comes from the fact that VB didn't use the C style syntax because BASIC didn't have C-style functions. Bolting on functions made the syntax grow ugly.
For GUI stuff, Foxpro was much better than VB back in the days of VB4. Too bad that MS didn't push Foxpro as well as they should've done, instead pushing VB.
The VB language has no real defense. It is a beefed-up version of BASIC, which was never intended to be used for anything other than home computing, mostly for beginners. QuickBASIC and its Windows-ized version, VB were uncalled for.
Admin
I recall paying $120 for the 16KB RAM expansion for my VIC-20. So memory is worth about about $8 per KB. At that rate, the 2 GB of mmemory on my current laptop are worth $16 million! I'm rich!
Admin
Admin
I'm no fan of VB (obligatory disclaimer), but all this talk about how proerties are dangerous because they can be abused ... Well, here's an exercise for the reader: Name a feature of any language, that cannot possibly be used in a way that creates a difficult-to-maintain program.
I recall the time an associate of mine wrote something like this in C++:
By eliding most of the code I've made the error obvious, but after she asked for my help, I think the two of us spent a couple of hours trying to figure out the problem.
Even as plain a feature as semi-colon can be abused.
Admin
Admin
I just know that someone's bound to 1-UP all of these comments and claim to have programmed on a PDP-11, or having used FORTRAN.
Admin
What is the longest / most useful (actually does something, for various values of something) Perl program that can be written using no letters in the executable code? (The shebang line, filename, command line etc. don't count.)
To get us started:
perl -e '@{[]}=(0..99999999)'
will help you measure the adequacy of your hardware. (You've been warned...)
Admin
Admin
I can't claim to have programmed on a PDP-11, but I do recall my dad signing me in to his account so I could play adventure and crime and the like. I still can't be arsed with the games they're making today, but larn is good fun.
(My first attempts at programming were in fact trying to write a zork-like game in BASIC - I was about 9, and had no idea what I was doing, so it was a hopeless job, but I felt pretty smart while I was trying to do it!)
Telnet into twenex.org if you want to get that retro rush. Remember: ^Q to continue scrolling in TOPS-20.
Admin
First program was on a Texas Instruments programmable calculator. I think it had some 300 or 400 "locations" which could be used to store either an instruction or data.
When I upgraded to an Atari 800 with cassette recorder for your software library, it was like having a supercomputer! I even had room to write my own driver for the external RS232 interface to the 300 baud acoustic modem!
If you can't whistle into a modem and get the remote mainframe to respond, tuck your dick back into your pants in shame.
Admin
When talking about the shortcomings of Pascal we must recall the times in which that language was invented as a teaching tool.
It was fabulous at the time (1970) when the other options were COBOL and FORTRAN. C was not to show up for another 2 years.
There were some other options, but not widely used or horrible: SNOBOL, RPG, Simula67, PL/1, Lisp.
Admin
Admin
For the love of God... neither example will compile. The original example will yield a "not all code paths return a value" compiler error. You have to return something if junk != "1".
Admin
http://www.amazon.com/Basic-BASIC-Introduction-Programming-programming/dp/0810451069
(Sorry, I could only find the 1978 reprint, not the original version I learned on.)
Admin
Exactly. I do the following all the time:
private string _foo = null;
public string Foo { get { return _foo ?? (_foo = "whatever"); } }
Do something that pretty in VB...
Admin
Are you saying Steve's mother's is larger than yours?
Just asking...
Admin
Once again, Alex, I have to wonder: of all the things to hate about PHP, why do you always harp on variable variables, which aren't that different (conceptually) from a pointer, and aren't even unique to PHP?
Admin
x = SomeObject.SomeProperty
or
SomeObject.SomeProperty = x
Minus the semicolon at the end of the statements, the syntax is identical. The only difference between VB.NET and C# syntax is the fact that VB.NET has the concept of indexed properties, a carrythrough (throwback, if you will) from older versions of VB. Basically it was meant to allow a property to act like an array, and it is this functionality that was totally abused in the article.
What exactly is the "superior" syntax of C#? Merely the fact that it doesn't include the functionality described above?
Admin
Admin
TRWTF is how many posters in these comments are using 'VB' and 'VB.NET' interchangeably.
Admin
In VB you also cannot call methods for bit shifting. XOR etc
Admin
How many inches is that? :-)
Admin
So, in essence, you can still run it interpreted on Windows, but not on Linux or Macs.
Admin
Admin
Admin
Admin
Admin
Admin
Admin
That's a couple of orders of magnitude more retarded than the current banter between the language camps.
Admin
100 PRINT "shup up" : goto 100
This is how I did it on qbasic :)
Admin
"No, a good craftsman uses the crappy tools he's dealt to build good ones, then moves the fuck on with his life."
Admin
:D
Admin
Admin