r/ProgrammingLanguages • • Mar 01 '20

What's your favorite programming language? Why?

What's your favorite programming language? Why?

146 Upvotes

237 comments sorted by

View all comments

Show parent comments

6

u/SV-97 Mar 02 '20

Oof. I wrote a small stack based language in a few languages at one point (haskell, python, rust and C) and the C one was 1262 loc, in contrast to the other three coming in at 98 (Haskell), 94 (Python) and 157 (Rust). The fact that you have to implement Vectors, LinkedLists, HashMaps etc. in C yourself before you can really do anything makes the experience not exactly great (And it means you'll spend quite a bit of time in valgrind (: )

5

u/coderstephen riptide Mar 02 '20

Valgrind is pretty awesome though even when you wish you didn't need it.

2

u/SV-97 Mar 02 '20

Yep it's certainly a nice tool

2

u/Soupeeee Mar 02 '20

The lack of generic types in C is really why I stopped programming in it: you really shouldn't need to re-invent the wheel in every program you write.

2

u/SV-97 Mar 02 '20

I just wrote everything for void *. Gives you cancer since it's essentially untyped C but it's better than writing the same shit over and over for all types