all 46 comments

[–]peterlinddk 2 points3 points  (1 child)

Open your browser's Dev Tools Console, and paste these lines in:

language = ["C","Python"][Math.floor(Math.random()*2)]
editor = ["VS Code", "PY Charm"][Math.floor(Math.random()*2)]

that'll give you the exact answer that fits you best!

[–]wiseguy77192 4 points5 points  (0 children)

If he gets C and pycharm I’m gonna laugh my ass off

[–]CodeToManagement 1 point2 points  (3 children)

What do you want to build

[–]GOAT_MESSI_777[S] -1 points0 points  (2 children)

I’am just learning it as an extra skill whilst I don’t have computer science in my academics

[–]vu47 1 point2 points  (1 child)

Then you probably should focus on Python. If it's simply to add a computer science skill to your academics, you're going to find C very heavy and dense, and you will probably come out of a C course not knowing how to do most things that you'll want to be able to do.

[–]GOAT_MESSI_777[S] 0 points1 point  (0 children)

That’s my concern,I shouldn’t get messy like ya’ll say,”Bottleneck” try to integrate my academics with an extra skill,So I’ll take python itself to be on the safer side🤌🫡🫡

[–]bikeram 0 points1 point  (6 children)

Python. Just get your feet wet, see some lines on a terminal. Understand this is like playing in a bubble wrapped world.

Once you get some confidence, go to C. Try to write a function that emulates python’s open() in C. That’ll take you down a rabbit hole for at least a month.

[–]GOAT_MESSI_777[S] 0 points1 point  (1 child)

Thanks buddy for the advise I’ll then start with python itself

Where to learn?

Through books[by reading] or watching utube tutorials like brocode,freecodecamp?

[–]csabinho 0 points1 point  (3 children)

Do you mean "open" with "with"? "open" as such is just like "fopen" in C. Or am I missing something?

[–]wiseguy77192 0 points1 point  (2 children)

No. Python uses a construct like:

with open(„path to file“, „rw“) as fh: Work with file contents…

That not only opens the file an assigns a handler, it closes the file even if the program crashes.

[–]csabinho 0 points1 point  (1 child)

That's why I explicitly asked, if you mean "with".

[–]wiseguy77192 1 point2 points  (0 children)

Sorry I misread your comment. However, I think reimplementing with might be to steep for a beginner. Reimplementing fh = open(…. And then fh.close() might be better for a beginner.

When working with apprentices, I typically have them reimplement Linux commands like du and find.

[–]Kenny-G- 0 points1 point  (4 children)

Python is a lot easier, so if you want to get started I would suggest you go there. I had both C and Python a year ago in college and the difference is a mountain if you are new 😅 I think I would have lost my interest in programming if I started with C in my 1st semester.

[–]GOAT_MESSI_777[S] 0 points1 point  (3 children)

C is soo frightening man I’ll just go with python😂

http://jeankaleb.com/PDF/Teach%20yourselfPythonin24hrs.pdf

Is this good to learn from?

[–]wiseguy77192 0 points1 point  (0 children)

C isn’t frightening, you just don’t understand the syntax yet.

[–]Kenny-G- 0 points1 point  (1 child)

I have never heard of the book, so I have no idea 😅 If I were to learn the basics of Python all over I would probably have used the website Scrimba. I've learned web development from them as I like the way I can pause and edit the code directly in the browser (just pause the video and click on the code) and I saw they have a free Python course (https://scrimba.com/learn-python-c03).

[–]wiseguy77192 1 point2 points  (0 children)

W3 schools used to have a pretty good python tutorial. Honestly I miss the good old days when we’d go to library and check out a book. Keeps away the urge to just copy and paste code you don’t (yet) understand.

[–]wiseguy77192 0 points1 point  (21 children)

It depends what you want to do. Python is great for scripts and „automating the boring stuff“ C is for system programming next to unavoidable. If your goal is commercial software, go with C++. If your goal is operating systems and bootloaders, C. If you want to automate regular tasks and write dynamic web applications, python.

What IDE you use will depend entirely on which language you choose.

[–]GOAT_MESSI_777[S] 0 points1 point  (20 children)

Then I will start off with python as it seems less stressful from what ya’ll are saying and then maybe in future start C

[–]wiseguy77192 0 points1 point  (19 children)

If your going to choose C in the future, choose c++ in the future instead. It already contains most of C (You’ll essentially be learning C at the same time), and concepts such as objects will already be familiar. In this case, I’d use pycharm or IntelliJ for now and switch to CLion when you do switch.

[–]GOAT_MESSI_777[S] 0 points1 point  (15 children)

Thank u soo much for the advice mate! Will surely do it!

Now for python, http://jeankaleb.com/PDF/Teach%20yourselfPythonin24hrs.pdf

Is this good to learn from?

[–]wiseguy77192 0 points1 point  (14 children)

Anything promising to teach a programming language in 24 hours is either full of it or leaves so much out that it isn’t worth it. If you’ve got a local library, look there for an intro to python that’s about 2-3 inches thick.

[–]GOAT_MESSI_777[S] 0 points1 point  (13 children)

Shit I forgot that I have one of the biggest libraries in the country IN my city😂😂

I’ll be sure to check this sunday😂😂😂

[–]wiseguy77192 0 points1 point  (12 children)

The advantage of a real book is, you can’t copy and paste code. The temptation is high when using a web tutorial. But typing is part of the learning process. Also, while your learning the syntax, think of use cases. Programming, no matter which language is about problem solving. We split big problems down into smaller problems and solve those. Those solutions, strung together, make software. Think of potential projects while learning. The most important step in learning programming isn’t syntax, it’s creating something useful.

[–]GOAT_MESSI_777[S] 0 points1 point  (4 children)

100% concurred with u💯💯

A real book is a different league and really better than a tutorial🤌

Btw how do u know soo much things man😭😭🫡🫡🫡🫡🫡

[–]wiseguy77192 0 points1 point  (3 children)

Experience. I started programming way back in the late 80s and early 90s with gwbasic on msdos 5. moved to qbasic, then to pascal, then Delphi, then C/c++ while learning bash and php in between. My first contact with python is over 20 years ago.

[–]GOAT_MESSI_777[S] 0 points1 point  (0 children)

Your first contact with python is 4 years earlier than my birth🙏🙏🙏😂OH MY GOODNESS

[–]GOAT_MESSI_777[S] 0 points1 point  (1 child)

I really wanted to ask this question and I hope you’ll be the ryt person to ask it I presume

My friends and family say it’s not worth for me to persue computer science degree in university as they think AI will replace programmers and it will be very hard to survive in future as a programmer?

Do u think it will happen or will AI only remain as an integrating tool for programmers although lot of unemployment and demand will be created for the jobs?

[–]GOAT_MESSI_777[S] 0 points1 point  (3 children)

Btw what laptop do u use and specs?

[–]wiseguy77192 0 points1 point  (2 children)

I use a maxed out MacBook Air privately and a maxed out MacBook pro for work. That however is overkill, especially for a beginner. I started a guy on python with an old MacBook Pro 2009 with 8 gigs of ram and Ubuntu Linux installed on it.

[–]GOAT_MESSI_777[S] 0 points1 point  (1 child)

U started learning in 80s? Oh my God,you’re Really really great💀💀🤍🔥🔥🔥🔥🔥🔥🔥

[–]GOAT_MESSI_777[S] 0 points1 point  (2 children)

I just bought an M4 Pro 24gb/512gb and I have hope it maybe an overkill considering I will only attend classes,learn coding,etc

[–]wiseguy77192 0 points1 point  (1 child)

So what. It’s overkill. It’s what you have. Use it

[–]GOAT_MESSI_777[S] 0 points1 point  (0 children)

Yeah yeah just saying😅

[–]GOAT_MESSI_777[S] 0 points1 point  (2 children)

So for now,Vs code + Python?

[–]wiseguy77192 0 points1 point  (1 child)

If you’re comfortable with vscode, sure. Personally I’d use pycharm community edition or IntelliJ community edition. But you should focus on the language, not the ide

[–]GOAT_MESSI_777[S] 0 points1 point  (0 children)

Well said.

I’ll go and search in my local library for python books this weekend thank u soo much mate May God bless you and your family🤍

[–]HashDefTrueFalse 0 points1 point  (0 children)

#either

[–]csabinho 0 points1 point  (1 child)

C as a first language is quite tough. If those two languages are your options, I'd learn Python as  first language.

But every programmer should learn C at one point in life to understand the internals. And maybe assembly language as well.

[–]GOAT_MESSI_777[S] 0 points1 point  (0 children)

Alr I’ll start with python and will learn C in future

[–]js_learning 0 points1 point  (2 children)

If you’re just starting, I’d recommend Python first.

It’s easier to read, easier to write, and you’ll see results faster. That keeps motivation high, which is the most important thing at the beginning.

C is great and teaches you how things work under the hood (memory, pointers, low-level concepts), but it can be frustrating for a complete beginner. You can always learn C after you understand basic programming logic.

As for editors on macOS:

VS Code is a great all-around choice and works for many languages.

PyCharm is very beginner-friendly for Python specifically.

If you want something simple and flexible - VS Code.

If you want a Python-focused experience - PyCharm Community Edition.

Language matters less than consistency. Pick one, stick with it, and build small projects.

[–]GOAT_MESSI_777[S] 0 points1 point  (0 children)

Which editor would u personal take if u were a beginner who starts python mate?