r/javascript • • Jul 28 '15

I'm all in.

Post image
746 Upvotes

120 comments sorted by

View all comments

Show parent comments

7

u/moh_kohn Jul 29 '15

Learn C. It's much simpler than either and will open your eyes to memory management.

7

u/Auxx Jul 29 '15

Assembler for x86 is easier and will open eyes on everything inside a PC.

15

u/mariox19 Jul 29 '15

Until you've coded a to-do list app using nothing but an abacus, you don't know anything.

7

u/greyfade Jul 29 '15

I made my to-do list app with a slide rule and a compass.

7

u/[deleted] Jul 29 '15

Noobs, my to-do list app consists of pen and paper.

1

u/frenris Oct 02 '15

Actually though, C is both simpler to learn than C++/Java and gives you a better awareness of what the machine is doing. This really isn't a "real programmers use butteflies moment."

1

u/greyfade Jul 29 '15

x86 is an Eldritch Horror (as anyone who has tried to write a memory manager can tell you). Only Itanium has a remote chance of scarring your mind more.

MIPS, SPARC, 6502/6510, 65816, 68k, and even ARM are saner, easier to understand CPUs.

1

u/Auxx Jul 29 '15

Yet writing small tools is easy and fun.

7

u/DarkMarmot Jul 29 '15

01010101010111101010101011010101010110101101011010101011101011010101011011110110

1

u/[deleted] Jul 29 '15

Hm. I was thinking the OO part would make it easier as I could make exercises out of reimplementing things I've done in other languages.

But hmmm. Maybe that would break it up more, keeping it a bit more approachable.

3

u/moh_kohn Jul 29 '15

The trouble is that C++ is a big mess, and Java is a sort of mid-level language - it has garbage collection and all that, the main thing that makes it feel lower level than Javascript or Python is that it uses strict types.

C on the other hand is a genuinely low level language. You still have modules and structs, which give you some OOish abilities.

7

u/SockPants Jul 29 '15

I don't know if learning C++ has really helped me with anything other than using C++. I quite like C# though, it seems like a better version of Java.

3

u/philbgarner Jul 29 '15

I quite like C# though, it seems like a better version of Java.

Yeah I got dragged kicking and screaming into learning C#, and actually enjoy it. :P

1

u/vicarofyanks Jul 29 '15

This is me, I was a Java dude, but got some good opportunities working on .net stack, low and behold I love it

3

u/philbgarner Jul 29 '15

.NET doesn't get enough love, it really is great.

That said, I still prefer a LAMP stack for web stuff. :)

1

u/vicarofyanks Jul 29 '15

Totally! It's so versatile and easy to understand for how much power it gives you.

I'm with you on web stuff, it's much faster to spin up a php or node server and be off to the races, whereas .net you've either got to use a template or spend a ton of time getting yourself in a good place. That being said mvc/web api are a joy once you are fully setup

2

u/SockPants Jul 29 '15

Well for PHP you pretty much need a framework unless what you're doing is less than 200 lines of code, and my limited experience with node is that you absolutely need something that imposes some more structure like a framework as well. I still agree php is better for most simple things, but as soon as you think it might become a medium large project I'd rather get out of php and spend the time doing it in something else, if only because debugging is such a pita to get working well.

1

u/vicarofyanks Jul 29 '15

I totally agree, I'm less familiar with PHP, but from my experience with node and PHP it's a lot easier to get something going, but when you really need to build out and do more, there's just no way you can roll vanilla. Hell, most people I know usually mean Node + Express when they talk about spinning up a node server. For anything of decent size, I would much rather work out of .NET with visual studio decked out

-1

u/Drainedsoul Jul 29 '15

C++ is a big mess

Citation needed.

1

u/frenris Oct 02 '15

C would have less parallels. The fact it's missing all sorts of OO parts though is what keeps the language simple. It's much easier to develop an understanding of all the C keywords than in Java. Or god forbid, C++.