Honestly, it isn't hard. Go follow a tutorial on writing some JavaScript, you need essentially no tooling and can write some happy little functions fairly quickly! It's a bit of a rabbit hole, but feel free to PM me if you have questions!
Edit: This has gotten a ton of traction!! Kudos to the guy who just said "No."
There are a lot of opinions floating around. Unless you are jumping the gun to go straight to university for programming, don't start with C. I primarily program in C++, Python, and JavaScript (specifically Nodejs).
Both JavaScript and Python are excellent for beginners. All these people with a ton of experience programming forget how unforgiving C#, Java, etc. Can be for someone totally green. I am talking about writing your first loops, hello world. Writing a script that runs infinitely and prints that your best friend is an idiot to send them a video of over social media. That is the kind of stuff that gets people to ease into it.
Regardless my offer still stands to help if you like, and I hope these goons haven't scared you off at the "choose a language to learn" step.
No, if he wants to learn how to code he should investigate non Web languages. They're super inconsistent especially with javascript callback hell. As a starter he should focus on variables types, basic logic and some oop principles. I'd suggest C# and python. Ideally I'd suggest C but most beginners will lose interest very quickly
Kotlin is based on, and interoperable with Java, gets rid of some weaknesses/annoying things and and adds A LOT of stuff. key things:
strong, inferred, static typing and with explicit nullability (Int/Int?) and null-safe operators (nullableVariable?.foo()/nullableButNotNull!!.bar()). That's a big one imo, brings more compile time safety
A bit more FP while remaining OO. Lambda functions are often inlined by the compiler for better performance (someArray.forEach {} -> for-int).
Data classes. One keyword for a POJO one-liner. Just adding var/val makes constructor args a variable. data class User(val id: UUID, var userName: String) There's also the object keyword for Singletons with implicit getInstance()
Less verbosity. String templates("Welcome, $userName"). Implicit getters/setters. extends/implements -> :. when for both switch and if-else-if-else-if-else. Default arguments. Named arguments. Coroutines. async-await. Extensions. internal modifier (public, but only within the same module)
101
u/Big16th Apr 24 '21
I wish I knew how to code