r/programming • • May 08 '15

Five programming problems every Software Engineer should be able to solve in less than 1 hour

https://blog.svpino.com/2015/05/07/five-programming-problems-every-software-engineer-should-be-able-to-solve-in-less-than-1-hour
2.5k Upvotes

2.1k comments sorted by

View all comments

279

u/doodly1234 May 08 '15

Some guy posts a blog and suddenly I have stopped calling myself a Software engineer :)

235

u/[deleted] May 08 '15

Suddenly? We're averaging about 90 squillion "nobody can code for shit but me lol fizzbuzz" posts a week these days.

27

u/tequila13 May 08 '15

These days? It's been going on since the Internet started to spread.

36

u/[deleted] May 08 '15

Internet? It's a verbatim quote from Ada Lovelace.

39

u/grunscga May 08 '15

Yeah, but when she said it, it was literally true...

(also, I'm enjoying the mental image of Ada Lovelace saying "lol fizzbuzz")

2

u/[deleted] May 08 '15

And before the internet, it was passed around on 5.25" floppy disks.

4

u/[deleted] May 08 '15

I'll see your 5.25 inch floppy disc and raise you reel to reel tape.

2

u/BurningCactusRage May 08 '15

I call your raise and add a series of vacuum tubes to it

0

u/[deleted] May 08 '15

[deleted]

3

u/[deleted] May 08 '15

If you can't then you deserve to be unemployed forever and die in a ditch because I can, and what's more I blog blog blog.

59

u/Eckish May 08 '15

Well, if I were splitting hairs, none of these problems demonstrate software engineering. They are in the realm of computer science.

The industry has trended to labeling generic programmers as software engineers, but the field is much broader than that.

0

u/[deleted] May 08 '15

[deleted]

2

u/Eckish May 08 '15

True. He didn't actually put an emphasis on time complexity or the like.

4

u/Rosco09 May 08 '15

So is the difference between computer science and programming is time/space complexity analysis?

Problems 4 and 5 are definitely computer science questions. The first 3 are programming basics in my opinion.... Brute force on those will give you the answers. The fibonacci question is a little tricky if you dont understand why your numbers go negative.

4

u/Eckish May 08 '15

In an academic sense, the implementation is programming. Analyzing the characteristics of the implementation is science. Matching practical applications with implementations that have optional characteristics is engineering.

At least, that's how I see it.

1

u/Rosco09 May 08 '15

I can get on board with that line of thinking. I still say 4 and 5 require more knowledge than "how to program" though.

→ More replies (2)

2

u/sk8king May 08 '15

Interesting. At first I thought "negative?", but I didn't really have a clue as to how big the numbers had gotten by the 100th term.

2

u/salgat May 08 '15

I think the point was the same as the fizzbuzz test; if you can't do rudimentary programming, then how the hell are you a software engineer?

4

u/Eckish May 08 '15

You are also confusing software engineer with programmer. There are plenty of software engineers that can't code or can barely code in modern languages. There's a lot more to software than the code.

If all you know is the code, then I'd turn around and ask how you can call yourself an engineer?

4

u/cluelessmanatee May 08 '15

Sorry, but I would never trust a software engineer that couldn't program competently.

→ More replies (13)

2

u/dethkrieg May 08 '15

Even people posting solutions and discussion in the comments are being condescending.

2

u/Vystril May 08 '15

Why? I think those are all 10 minutes tops (apart from maybe the last one, but that's a math/algorithms problem, not a software engineering problem). I think this would be the bare minimum I'd want in an entry level software engineer. Hell, this is the bare minimum of what I'd want out of a Computer Science 1 course. None of them even require object oriented programming.

1

u/MattBlumTheNuProject May 08 '15

Right? Apparently int and float are the things that really matter.

-3

u/[deleted] May 08 '15

You actually can't do most of these? I took a grade 11 computer science and I think I have a pretty good handle on the first 4.

→ More replies (1)
→ More replies (1)