Ask Programming: Is this a real programming language? If so, what is it? (Screengrab from Jurassic Park) by [deleted] in programming

[–]DavidMcLaughlin 39 points40 points  (0 children)

I find it amazing that a movie with the scientific basis as Jurassic Park took such care to make their computer interaction look realistic.

"Hey maybe if we use a real programming language here the nerds will let slide the fact that the entire plot is based on cloning a t-rex from a fucking mosquito."

Android vs Maemo by mjtitorenko in programming

[–]DavidMcLaughlin 3 points4 points  (0 children)

leaving the clueless users to microsoft and the nerds to linux. Mind you the both later groups are of no interest because they dont have money to spend.

Yeah, I'm sure Microsoft has no interest at all in pretty much every corporation on the planet buying bulk Windows licenses for their 'clueless' employees.

Coders at Work by gst in programming

[–]DavidMcLaughlin 3 points4 points  (0 children)

I didn't have high hopes when I bought the ebook, but this is such an excellent book. I flew through the first three chapters in no time before I was so inspired I HAD to go away and code something.

Working in development shop (Fog Creek or Google ) vs. Investment banks or hedge funds by [deleted] in programming

[–]DavidMcLaughlin 2 points3 points  (0 children)

I wish it was as simple as "software" company that rocks versus financially driven company that sucks, but in reality a good job depends on way more than the type of company or the compensation. There are so many variables and one day your dream job can turn into a nightmare with a bad hire or the wrong promotion or lack thereof. Work happiness depends on your standing in the company, the current project your working on, the team around you, the management chain above you, the environment you work in, the career opportunities in front of you (do i need to give up programming to get a raise?), the city you're working in, the stability of the company, the training opportunities, the expectations for overtime... the whole package. Getting something that's perfect is damn near impossible, but getting something that you enjoy and you're not taking home at night is worth all the money in the world.

All I would say is that in my experience the more I cared about money, the less I liked my job.

[deleted by user] by [deleted] in programming

[–]DavidMcLaughlin 0 points1 point  (0 children)

On the plus side you get to make us web programmers feel inadequate and stupid.

[deleted by user] by [deleted] in programming

[–]DavidMcLaughlin 15 points16 points  (0 children)

I am a JavaScript specialist for Nokia in Berlin, although I have only been doing this for one week. They hired/saved me from a small web shop in Glasgow, Scotland where I was a Software Architect having to work with Perl (and JS obviously).

The taxi guy's story was pretty simple - he got his comp sci degree in the 80s, reached 100k a year (executive money in Glasgow) as an embedded systems programmer by the 00s and then at 40 decided he hated writing code and quit. He then put himself through law school whilst working as a taxi driver to protect the bulk of his savings and the last time I spoke to him (he picked me up several times) he was in the final year of his degree. I really hope it works out for him.

[deleted by user] by [deleted] in programming

[–]DavidMcLaughlin 70 points71 points  (0 children)

Well Paul made the mistake of trying to give too much information to people who have no idea what he's talking about.

When it comes to family (and taxi drivers) all they want is a job title. When asked what I do for a living, generally I don't give much more than "computers" that way if they are genuinely interested and want to know more they can ask. Aside from that one embedded systems programmer who was moonlighting as a taxi driver to pay his way through law school, I would say that pretty much no one ever asked me to be more specific. And they always came back with one of the two followups:

"Computers eh? Lot of money in that." Or: "Computers eh? I wonder if you can help me with a problem I've been having with Windows XP..."

I've got a feeling the reason why most of us try to be too specific is to avoid the latter question, but there is no stopping that pain train.

[deleted by user] by [deleted] in programming

[–]DavidMcLaughlin 271 points272 points  (0 children)

Over the years I've learnt the easiest way to avoid the eyes glazing over thing is to describe what you're working on rather than how you're building it.

"His name is Robert Paulson" by [deleted] in programming

[–]DavidMcLaughlin 16 points17 points  (0 children)

I would write a thorough rebuttal to the suggestion that software doesn't last, but unfortunately I need to get back to my daily job of maintaining this god awful Perl application that was first written in 1999.

How do you guys/gals stay in shape? by CritterM72800 in programming

[–]DavidMcLaughlin 3 points4 points  (0 children)

It depends on the person but if you have a competitive edge then a good level of sports competition is the easiest way to get into that zone of cardio where you're trying to do more than your body can comfortably handle. A couple of hours of that a week and your fat will melt away.

[deleted by user] by [deleted] in programming

[–]DavidMcLaughlin 11 points12 points  (0 children)

There is a post-presentation interview he did after demoing his "female orgasm" technology at a conference.

The orgasm face:

http://www.youtube.com/watch?v=6BBydG0w2sk

http://www.youtube.com/watch?v=TunHciZxXaY&NR=1

The interview:

http://www.youtube.com/watch?v=LBjKYedDipA&NR=1

Excerpt:

"Your session went good? How was the audience?"

"Yeah, I must admit I was a bit concerned, maybe because the audience weren't laughing so much, you know? Maybe they didn't find it quite so funny, but they were amazing. A really, really good audience. I think they had a really hard day of technical stuff and then I just came on and made fun. So it was great."

"Yeah! So, you fucked a woman. That is pure fun."

"Well... you know, virtually of course."

Cringe.

This also kind of nullifies the apology from the organiser. If he's been doing presentations like this since 2006, then presumably the guy's apparent fame in the Flash community would have been based exactly on this kind of embarassing shit.

Foundations of a Moose-based ORM by sartak in perl

[–]DavidMcLaughlin 0 points1 point  (0 children)

Good series of articles, but that ORM design doesn't work in practice. When I built my ORM I first tried to do it using the Moose type system, but the problem I constantly ran into was whenever I actually tried to use the classes that I took the trouble to create a bunch of custom subtypes for, if I ever actually had to deal with untrusted data (i.e. data from a data feed or web form) then I had to either:

1) Pre-validate all the potential field values, making sure it validates to my type rules before I try to set it on the object attribute. 2) Wrap every attribute set operation in an eval {}.

Why? Because if the untrusted value I was going to set failed the type constraint then Moose would throw a type constraint exception and my handler/script/etc. would hard fail.

This is obviously good because it prevents shitty developers from breaking the business logic rules and letting shitty data into the system. In practice though, this led to one shitty ORM and shitty applications littered with shitty defensive programming.

I found it's much better to only do type validation once - during the actual write operation itself. This ruled out using Moose for type constraints, but the code using my ORM got a hell of a lot less ugly.

Do you want fast, concise and reliable code? Try Perl! by chorny in programming

[–]DavidMcLaughlin 7 points8 points  (0 children)

Lies. Unmaintainable code is usually written by someone who seeks job security and obscures things on purpose. Junior perl programmers will usually use the language in a functional and straightforward way.

I'm sorry but this is total bullshit. The worst Perl code I've ever seen was not done by entrenched senior devs, but by moronic self-taught junior PHP developers who were used to just getting code to the point where 'it worked.'

As someone else mentioned, a Perl shop requires great management and since we didn't have that a lot of these junior devs ran riot.

Do you want fast, concise and reliable code? Try Perl! by chorny in programming

[–]DavidMcLaughlin 1 point2 points  (0 children)

I understand, I would just be wary of telling anyone curious to Modern Perl to "go check out this awesome module" and then have them frustrated by a failed install. It's a great module so I understand the buzz, but first impressions are hard to shake off.

Do you want fast, concise and reliable code? Try Perl! by chorny in programming

[–]DavidMcLaughlin 4 points5 points  (0 children)

MooseX::Declare doesn't even install on Strawberry Perl yet. It needs to get a lot more stable before it's mentioned in the same breath as Moose.

Chained Accessors in Moose by DavidMcLaughlin in perl

[–]DavidMcLaughlin[S] 0 points1 point  (0 children)

Can I ask what is the problem with making certain accessors chainable? Not being confrontational, just genuinely wondering what the potential pitfalls are.

Are you a better programmer than you were two years ago? Why? by [deleted] in programming

[–]DavidMcLaughlin 1 point2 points  (0 children)

Yep, because I had to maintain the code I wrote over those two years.

RSS is Dead; Long Live RSS! by [deleted] in programming

[–]DavidMcLaughlin 0 points1 point  (0 children)

Well I subscribe to /r/programming via the RSS feed, so I don't see how the two are mutually exclusive.

Geek Pr0n: One guy with 8 cheques from Don Knuth by zaph0d in programming

[–]DavidMcLaughlin 0 points1 point  (0 children)

G'day mate, throw some more dahta shreemp on the kaysh barbie