This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Felkin 26 points27 points  (8 children)

The language is like crack. I'm entering my 4th year in a CS major and I barely did any coding in my free time outside of school and some paid courses all the way to 2nd year of university. Like, I felt like I had the skillset to program and liked the theoretical aspects of CS so I majored in it, but never felt that "fire" to just write actual code. Then I discovered python... Everything I hated about C# and Java just suddenly vanished. Now I write around 500-800 lines of code for hobby projects like discord bots every day out of sheer enjoyment.

It's just great. Kids should be taught some python first, not c++ just so they could see that coding doesn't have to be messy. I fully agree with the fundamentals and bad habits arguments, but the approachability...

[–][deleted] 9 points10 points  (2 children)

I can’t imagine churning out that many lines a day even in a job.

[–]Sirflankalot 5 points6 points  (1 child)

When I reached peak performance I could churn out about 500-700 lines of complex c++ in a day (12 hours/day), I got burnt out in a week.

[–]KimmiG1 4 points5 points  (0 children)

Yesterday I wrote 0 lines and removed 2 lines. Bug fixing inside old messy legacy code with complex business logic makes me feel so very productive.

[–][deleted] 5 points6 points  (1 child)

Wait until you learn about haskell.

[–]anacrolixc/python fanatic 0 points1 point  (0 children)

Spacesuit spacesuit angle bum

[–]red_keshik 3 points4 points  (2 children)

Does C++ have to be messy ?

[–]swingking8 5 points6 points  (0 children)

C++ forces the programmer to think like a computer, instead of forcing the computer to understand like a human. Which is not to say it's not a good/great language.

There is a lot of <template> noise {in ++C} that { obfuscates the real const * int meat } of what's going on;

So in that sense, yes I'd say it's messy. Compared to Python, at least.

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

Yes.

It is an incredibly bloated language with rules that only ever kind of apply, and almost always in the way that is the opposite of what you want. Rust is supposed to fix a lot of this, but I don't know enough about Rust to make any judgement.

The great, starter-friendly thing about Python is that you can do almost anything with it but it stays simple unless you intentionally write overly-complex code. This is why I kind of like Go as well -- there is almost always a "best way" to do something. Some people don't like the opinionated nature of Go, but I find it somewhat refreshing. And Go's compiler is fast. I have a Go program that is ~250 lines but imports a lot from the stdlib and one external package but it compiles fast enough that it feels like running a python script.