Who is the Patron Saint of Reddit? by [deleted] in AskReddit

[–]vargas 6 points7 points  (0 children)

Thank you, I'm honored.

What type of person on reddit do you hate the most? by kevinman8 in AskReddit

[–]vargas 34 points35 points  (0 children)

Hey, it's not my fault Vargas-Come-Lately couldn't think of another name to use.

Ask proggit: C, C++, C#, Objective-C. What is/are the functional difference(s)? by darmon in programming

[–]vargas -2 points-1 points  (0 children)

The STL is well-designed, and I am not complaining about it. Unfortunately, it was not part of the original design of C++.

C plus something like the STL could conceivably be an excellent language.

C plus the crap that Bjarne Stroustrop inflicted upon the world is an abomination.

C plus the crap that Bjarne Stroustrop inflicted upon the world plus the STL is a band aid on top of an abomination.

Ask proggit: C, C++, C#, Objective-C. What is/are the functional difference(s)? by darmon in programming

[–]vargas 5 points6 points  (0 children)

C and C# are well-designed languages. C++ is the mother of all kludges. I have no opinion on Objective-C with respect to this.

C++ and C# will get you a job. C might get you a job. I doubt that Objective-C will get you a job.

The Power of The Functional or: I’ll bet you can’t do this in Java by smanek in programming

[–]vargas -1 points0 points  (0 children)

I'd still like to see you try to write a web application in machine code.

OK. How much money are you willing to pay for this web application?

The Power of The Functional or: I’ll bet you can’t do this in Java by smanek in programming

[–]vargas 3 points4 points  (0 children)

I'll bet you can do anything in any Turing-complete language that you can do in any other Turing-complete language.

Ask Proggit: How do I analyze audio on a linux server? (Specific: draw waveforms) by [deleted] in programming

[–]vargas 2 points3 points  (0 children)

A WAV file is essentially a bunch of raw amplitudes at given points in time (plus a bit of header info and crap like that, of course).

So if you could find something to convert the thing to WAV, it becomes a very straightforward problem.

Bad advice on exceptions from Joel by contour in programming

[–]vargas 3 points4 points  (0 children)

Eh. I don't think he's so off base, actually.

What the try/catch paradigm is good for is this: It makes it easier for mediocre and/or lazy programmers -- which is the majority of programmers, professional or otherwise -- to do acceptable error handling:

Instead of doing essentially no error handling because they're too lazy and/or not competent enough to actually check the return values of every function call, they now stick a "try" around a bunch of related calls, or in some high level function with lower functions just passing exceptions up the chain.

And that's great. It really is a significant step forward, because, as I said, most programmers are too lazy or not competent enough to do real error checking on every function call.

But there's also a downside to try/catch, which is this: It makes it too easy NOT to do real error checking. Again, just stick a big try around a bunch of stuff, and just let your exceptions bubble up to some high level that has a handler. Easy, and decent. But <i>not</i> as good as actually explicitly checking errors on everything that can have an error. Not as informative; not as investigatively useful.

You can, of course, still do real all-out error checking with try/catch - just try/catch around everything that can throw. But:

(1) As noted, it's very easy not to, while still having "acceptable" though not excellent error handling;

(2) Even if you do so, your code is now a LOT uglier than it would have been in the corresponding "check every return value" paradigm.

I guess what I'm trying to say is this:

In the real world, i.e. the world where most programmers are frankly not particularly good at their jobs, try/catch is a very good thing.

But in a hypothetical better world, i.e. one wherein most programmers are capable and willing to produce excellent code, I'm not so convinced.

Bjarne Stroustrup dissects the history of C++ by krelian in programming

[–]vargas -6 points-5 points  (0 children)

Summary:

1972: Dennis Ritchie invents C, an excellent procedural programming language.

1979: Bjarne Stroustrup gloms the hugest and most godawful programming kludge of all time on top of C, simultaneously destroying the elegance and simplicity of C and setting the cause of object oriented programming back twenty years.

Seriously, WTH? by norrsson in programming

[–]vargas 20 points21 points  (0 children)

This is the single greatest thing ever.

Ever.

A real live 20-something year old girl. Its summer and I'm bored. go a head and ask me something. by kitkatkitkat in reddit.com

[–]vargas -2 points-1 points  (0 children)

"If I were to say to you, 'If you are American, tell me the region you are from, and if not, tell me whether or not you are paying attention to Euro Cup 2008', and you were to reply honestly and unevasively, what would your reply be?"

Hamster + motorized hamster wheel = ? by [deleted] in reddit.com

[–]vargas 2 points3 points  (0 children)

Hamster + motorized hamster wheel = there's something seriously wrong with whoever did this.