I completely agree with you on C - it's a terrible language. But as a first language, Ruby and Javascript are terrible choices as well - you may have more fun, but you will likely learn how to do everything wrong.https://medium.com/@mindplay/the-problem-with-learning-languages-like-javascript-php-ruby-or-python-first-is-you-can-get-away-7accc689d365 …
-
-
Type hints. A type hint is just an assertion about the the state of the program. Things are much simpler if you state your assumptions - "this parameter will be a number" helps both a person and a computer understand an important pre condition for a function dealing with numbers.
-
But also (speaking to Ruby and JS specifically) just knowing if an object has a method - rather than looking through every line of code in the system to learn if a method was generated and attached somewhere, at some point. It's not simple for a person, at all.
-
As opposed to go, where you have to search the program to look for interface definitions that might apply to your object?
-
Go has problems, it's not my favorite language - but it is a pretty good language for learning, because of its small scope and encouraging you to think about types. (even though the type system is pretty basic.)
-
(Duck typing in a statically typed language is pretty uncommon - not something you find in most strict languages.)
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.