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
My first language was Java and I think that while it suffers from the same types of problems as C#, it suffers way less. Not nearly as much worrying about nullables or delegates or operator overloading or weird syntax-breaky statements like LINQ. Java is much more barebones and I think that helps make it somewhat more learnable. As always tho I'm biased bc I dig Java
I'm opposite, but it's probably cause I learned C# as my first language and Java in college. Honestly, there's so many cases that I can write a lot cleaner and sorter code in C# than in Java. I also like being able to use 'var' as well.
But overall I just find it easier to read. For example, using the random class to spawn a number between say 55 and 121. Assuming we have the import statements in both in Java it would be
Random rng = new Random();
rng.nextInt(67)+55;
while in C#:
var rng = new Random();
rng.Next(55, 122);
I just find that a lot easier to read personally and it's not only the Random class, but a lot of methods in C# that just feel cleaner to read. But each their own.
I am a Java guy and for me it's the other way around. If I see some Java code, I could probably guess what it does even without comments (rng.nextInt() returns a random int). With C# I have to look up the documentation because rng.Next() could return basically anything. Also the incoherent wrapper class naming (lowercase int instead of Integer and stuff) and the C# NeverRememberHowThisCaseIsCalled() case methods always messed up my Java code and the Java camelCase() methods messed up my C# code when I programmed C# in class for a few months.
101
u/Big16th Apr 24 '21
I wish I knew how to code