News for hackers. Stuff that matters.
Re:Why do so few people major in computer science? (2017) by netsharc on Saturday March 21, 2020 @09:20AM (#22646303)
A CS prof of mine said studying CS to later do programming is like studying architecture to later be a house builder. I find it an apt comparison.
Re:Why do so few people major in computer science? (2017) by musicale on Saturday March 21, 2020 @09:49AM (#22646443)
Many (FAANG and other) companies interview with algorithm puzzles that are fairly well aligned with undergraduate algorithms courses. Perhaps one purpose of such interviews is to select people based on how recently they took an undergraduate algorithms course or equivalent.
Re:Why do so few people major in computer science? (2017) by Ragib_Zaman on Saturday March 21, 2020 @12:49PM (#22647818)
It's brilliant really. How else would you select for people straight out of school (age), with the time (few commitments and probably no dependents) and willingness (willing to jump through arbitrary hoops before you're even their boss) to grind all variations of the interview problems, all while maintaining plausible deniability to discriminating in these ways?

As someone who graduated recently and is going through this process right now - I always thought I would be set because I'm a decent problem solver, aced all my algorithms and data structures classes and generally could solve most interview style problems I came across. I've learned that this is not enough. An organic problem solving process might involve trying several promising approaches, or starting with a suboptimal algorithm and realising improvements to it, and then you might figure out an optimal solution. In many of these interviews the time constraints can be absurd, you basically have to have done the questions or variants of them recently to be able to write down the optimal solution in your first iteration.

Today my friend had a first round online screening from Atlassian - 5 questions in 90 minutes, and none of them were trivial warm up level questions. Compound this with the fact that it's often harder to solve problems and think creatively when you're under time pressure in an interview, and you realise that your only option is to do 200+ Leetcode problems and just hope your interview overlaps with those problems.

Re:Why do so few people major in computer science? (2017) by fredley on Saturday March 21, 2020 @09:51AM (#22646452)
This is the only reason I can think of for still using this interview technique.
Re:Why do so few people major in computer science? (2017) by username90 on Saturday March 21, 2020 @10:39AM (#22646773)
They use it since it correlates better to later performance review scores than anything else they have tried.
Re:Why do so few people major in computer science? (2017) by jedberg on Saturday March 21, 2020 @01:37PM (#22648193)
The only way they could know that is if they occasionally hired someone who failed the interview to see if they also fail at the job.
Re:Why do so few people major in computer science? (2017) by bloomer on Saturday March 21, 2020 @11:37AM (#22647247)
The test they use to select employees correlates with their rating of employees is pretty circular. Any arbitrary test will do that.
Re:Why do so few people major in computer science? (2017) by jedberg on Saturday March 21, 2020 @10:02AM (#22646519)
Maybe so, but I'd still rather have my house built by someone who studied architecture, because they will have unique insights in the moment that others would miss.

Also you get a better house if the architect who designed it also builds it.

And eventually the house builder gets enough experience to become a much more useful architect because they know what's actually possible and what is purely academic.

Re:Why do so few people major in computer science? (2017) by viklove on Saturday March 21, 2020 @05:00PM (#22650054)
I think the point the original commenter is missing, is that in tech the architect and the builder is usually (almost always) the same person. We don't have the same separation between architects and carpenters that the construction industry does.
Re:Why do so few people major in computer science? (2017) by aNoob7000 on Saturday March 21, 2020 @09:53AM (#22646467)
This comparison is absolutely correct. I've been in the computer field for over 20 years with a CS degree, and never really needed it.

Most businesses only care about making money. Unless your unique algorithmn costs less to implement and can make money right away, you are out of luck.

Hell, all the stuff you learn at school about algorithms and faster ways of doing work, has been negated by hardware advances that mask poor coding practices.

Go get an information systems degree, learn to code, and make money. The world is going to need coders and IT people for a very long time.

Re:Why do so few people major in computer science? (2017) by saagarjha on Saturday March 21, 2020 @10:40AM (#22646779)
> all the stuff you learn at school about algorithms and faster ways of doing work, has been negated by hardware advances that mask poor coding practices

Sometimes it isn’t, and we end up with Electron on the desktop :(

Re:Why do so few people major in computer science? (2017) by scarface74 on Saturday March 21, 2020 @10:04AM (#22646537)
All business only care about making money.

Well, that or getting acquired....

Re:Why do so few people major in computer science? (2017) by saagarjha on Saturday March 21, 2020 @10:40AM (#22646781)
That’s just a roundabout way of making money.
Re:Why do so few people major in computer science? (2017) by fredley on Saturday March 21, 2020 @09:50AM (#22646449)
This is extremely dismissive. You don't want to live in a world where none of the people building things have CS degrees.
Re:Why do so few people major in computer science? (2017) by mettamage on Saturday March 21, 2020 @10:53AM (#22646881)
Side story: this is even true for pentesting (disclaimer: not a pentester, I was helping a friend to break into the career). The most recognized certification (OSCP) is about killing CVE's and dodging rabbit holes, that's it.

What I did on hackthebox.eu recently was:

<technobabble>

reverse engineering x64 assembly into C (silly, I should've used Ghidra instead). Then I started exploiting the heap by poisoning the t-cache, with that I could overwrite the GOT (getting an arbitrary read/write). Leak libc's base address bypassing ASLR, then using return to libc to exploit the thing (a ROP technique).

</technobabble>

Most of these things I learned during my CS master and it's apparently overkill for something like OSCP. More importantly, not all skills overlap. Dodging rabbit holes is not something you learn well. Understanding how to reverse engineer a binary has not much merit when it comes to finding a CVE and using metasploit, or some script on Github. Dodging rabbit holes and being fast at finding the right CVE's and using them properly to exploit a target are skills in their own right.

Re:Why do so few people major in computer science? (2017) by readyoubestbook on Saturday March 21, 2020 @09:48AM (#22646437)
In part I agree, and of course I am biased since I studied CS but my goal is to be a house builder for a while and then have enough experience to be a proper architect. That's when the CS background should help again. So, study to be an architect, be a house builder for a couple of years and then be a properly educated and experienced architect from there on out?
Re:Why do so few people major in computer science? (2017) by czbond on Saturday March 21, 2020 @09:55AM (#22646474)
I wholly agree with this. I loved the mind bending nature of complex CS problems, including Algos & Automata. Yet coding is a snore fest for more than a few days.

I felt like I went from a forward looking, enlightening major - to become where you end up in the details worrying about semantics. CS is mind expanding; coding is specialist mind numbing boredom.

Re:Why do so few people major in computer science? (2017) by Nursie on Saturday March 21, 2020 @10:03AM (#22646531)
I'm not sure it's that apt... maybe it is, so long as you grant that architrctural study can help you design and build better houses.

Sure, you can get the knowledge in other ways, and sure, some of the houses built by people who haven't studied architecture are great too.

Some aren't though, and their builders could have benefitted from a bit of theory ahead of time.

It's almost more like the relationship between materials science and hoise building - it can enable you to do a better job.

For those saying you've never been helped by your CS degree, I think you either took a bad degree or you'be been stuck in un-taxing work. You've seriously never bothered thinking about, say, algorithmic complexity? Or other topics that should have been covered?

Re:Why do so few people major in computer science? (2017) by jasode on Saturday March 21, 2020 @10:32AM (#22646721)
>For those saying you've never been helped by your CS degree, [...] You've seriously never bothered thinking about, say, algorithmic complexity?

There are lots of successful working programmers that will never need to deal with "algorithmic complexity" because "programming" encompasses a very wide spectrum of skills. I attempted to explain a rough categorization of 2 groups:

https://news.ycombinator.com/item?id=12079697

So yes, a programmer in group 1 -- let's say a 30-year veteran of COBOL -- can conceivably never have to make a decision about designing an algorithm & data structure to be O(n) vs O(log n) because he works at a higher abstraction level using COBOL. His domain of work doesn't need to deal with low-level things like raw pointers to linked-lists in C/C++ where Big-O complexity is considered when engineering a custom b-tree from scratch.

The programmers in group 1 are not any "worse" than group 2. They just do a different type of programming.

Re:Why do so few people major in computer science? (2017) by ThrowawayR2 on Saturday March 21, 2020 @10:55AM (#22646896)
> "...let's say a 30-year veteran of COBOL..."

That would be around the era of the Intel 80486 processor. All of us cared a hell of a lot about both algorithmic and data structure efficiency back then since computers were so feeble compared to today's systems; people who didn't couldn't produce programs that functioned properly.

Re:Why do so few people major in computer science? (2017) by jasode on Saturday March 21, 2020 @11:02AM (#22646948)
>the era of the Intel 80486 processor. All of us cared a hell of a lot about both algorithmic and data structure efficiency back then since computers were so feeble compared to today's systems;

In the ancient 1990s, A COBOL programmer writing "green screen" terminal apps to hit a database on an IBM 360 mainframe doesn't deploy to 80486 desktop pcs.

Even today, if you type "COBOL programmer" into monster.com to search for jobs, most of the results will be programming work for mainframe environments instead of targeting consumer computers like iOS/Android/Windows/macOS/etc.

Re:Why do so few people major in computer science? (2017) by scarface74 on Saturday March 21, 2020 @11:45AM (#22647312)
In the 90s, I wrote C and Fortran for DEC VAX and Stratus VOS mainframes. Even then our major concerns weren’t “algorithmic complexity” and being able to reverse a binary tree on the whiteboard.
Re:Why do so few people major in computer science? (2017) by Nursie on Saturday March 21, 2020 @03:45PM (#22649349)
You don't need to reverse a binary tree on a whiteboard, but you should have some idea of the complexity of what you're writing, or you'll write crap. Even in a CRUD context.
Re:Why do so few people major in computer science? (2017) by scarface74 on Saturday March 21, 2020 @11:44AM (#22647303)
A 486 was more than powerful enough to run most workloads at the time even in high level languages without too much optimization. Anyone who thinks a 486 was “feeble” didn’t spend time optimizing assembly on a 1Mhz 65C02 by doing as much zero page memory access as possible to save a clock cycle.
Re:Why do so few people major in computer science? (2017) by clarry on Saturday March 21, 2020 @10:52AM (#22646868)
And, on the flip side, you don't need a goddamn degree to think about algorithmic complexity. It's pretty basic stuff at the level most developers ever get to care about it.
Re:Why do so few people major in computer science? (2017) by Nursie on Saturday March 21, 2020 @03:40PM (#22649301)
You don't need a "goddamn" degree to learn any single thing you can learn on a degree, and this applies to pretty much any degree you can think of, the books are available, as is online research.

The point is during a degree you are lead to some topics and guided through them.

Re:Why do so few people major in computer science? (2017) by Nursie on Saturday March 21, 2020 @03:41PM (#22649310)
If your COBOL veteran hasn't got at least some grasp of complexity, he's a pretty poor programmer. In fact that applies regardless of the language.
Re:Why do so few people major in computer science? (2017) by Merrill on Saturday March 21, 2020 @10:47AM (#22646826)
I worked in a building designed by one of the great architects. The roof leaked.

I ran into a guy responsible for roof repair for company buildings on a flight. He said, "the greater the architect; the worse the roof leaks."

Re:Why do so few people major in computer science? (2017) by scarface74 on Saturday March 21, 2020 @10:02AM (#22646524)
And that’s the issue. For most people college isn’t about “being a better citizen of the world”. It’s about getting a job. There are relatively few positions for pure “computer scientists”. There is also a reason (as stated in the article) that many companies outside of Silicon Valley won’t hire new college graduates. Many of them are basically useless as developers.
Re:Why do so few people major in computer science? (2017) by dominotw on Saturday March 21, 2020 @09:46AM (#22646430)
except house builders aren't required to licensed architects to get a job as a house builder.
Re:Why do so few people major in computer science? (2017) by perceptronas on Saturday March 21, 2020 @10:45AM (#22646810)
If you only need to glue code (house building) - no degree (or same self taught CS knowledge) is okay. However, most business problems will require some design choices beyond 3rd party vendor offers. Be it a library API design, software system architecture or something similar
Re:Why do so few people major in computer science? (2017) by caymanjim on Saturday March 21, 2020 @10:54AM (#22646890)
Undergraduate CS courses do not teach library API design or software system architecture.
Re:Why do so few people major in computer science? (2017) by perceptronas on Saturday March 21, 2020 @12:27PM (#22647645)
they do that by teaching fundamentals - problem solutions(thinking) with algos and their use cases, math, how to make/read a engineering chart, what is involved in IT systems and etc. You cannot skip those things. They need to be learned to design good APIs and software systems.