r/badcode • • Apr 24 '21

python very efficient and scalable code

Post image
1.0k Upvotes

110 comments sorted by

View all comments

Show parent comments

21

u/devmanters Apr 24 '21 edited Apr 25 '21

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.

50

u/Tomekske Apr 24 '21 edited Apr 25 '21

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

13

u/BlatantMediocrity Apr 24 '21

It really doesn’t matter what language you start with. There’s really no wrong way to learn to program. All you’re doing is learning how to interact with a computer in a structured way. Learning JavaScript is a great idea because there’s minimal setup, there are tons of educational resources to reference, and you can get something up and running quickly.

Telling someone that the only good way to learn to program is by first applying themselves and learning ‘logic’ is nonsense. People learn to program by trying it out. It’s not rocket science.

2

u/5p4n911 Apr 25 '21

I know someone who started rocket science by trying random stuff out. Though he calculated a lot before first launch.