[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y ] [Home]
4chanarchives logo
Should I learn C or python?
Images are sometimes not shown due to bandwidth/network limitations. Refreshing the page usually helps.

You are currently reading a thread in /g/ - Technology

Thread replies: 60
Thread images: 7
File: 1454811947765.jpg (32 KB, 416x629) Image search: [Google]
1454811947765.jpg
32 KB, 416x629
Should I learn C or python?
>>
>>54068500
>>
>>54068500
Why do you want to learn programming anon?

This is important to answer your question.
>>
>>54068500
Learn both.
>>
learn an api, not a language.
>>
>>54068516
I want to learn programming as a hobby.
>>
>>54068500
Python.

The amount of people that fall in to the "C is best first language" meme is pretty ridiculous. If you want to do anything practical, go with Python. C has much more specific uses, and you can learn it if you really need it. But you probably wont.
>>
>>54068534
Yes but what do you want to program in your spare time?
>>
>>54068534
Try http://programarcadegames.com/
>>
>>54068542
What about C++?
>>
>>54068555
fuck it it's not for beginners

Beginner-tier languages: javascript, python
>>
>>54068550
I dunno. Something what comes in my mind. Maybe just normal programs for desktop.
>>
Flip a coin
>>
>>54068500
1. ask in dpt
2. asking "what programming language you should learn" is such a useless question
3. learn how to program and the language is irrelevant
4. if you want to learn how computers work and deal with memory learn c, otherwise python is fine
5. don't accept "magic", find out what things are actually doing instead of accepting that they just work.
>>
If you don't plant to live from programming python.

If you are planning to do any serious programming, C.
>>
>>54068555
Seconding what the other guy said, C++ isn't particularly well suited for beginners. In fact, I try and help with people's programming problems on a few different forums and one of the most common things I've seen is "I'm getting back in to programming because I first tried to learn C++ and it was too hard".
>>
>>54068587
seems like an outdated mentality.

really depends on what you're making a living doing. also, java is much more viable for employment than C.
>>
>>54068555
C++ is like C with extra safety and a bunch of extra features.

There is no reason to use C over C++ unless there is no C++ compiler on your target platform (which probably wont happen to OP) or if you want to provide bindings to other languages (which OP probably wont care about).

>>54068569
>>54068589
Please stop the C++ is not for beginners meme.
C++ was my first language. It's not that hard. Neither are pointers (which can mostly be avoided these days). It's just easier to make mistakes if you're forgetful. But you'll learn a lot more about how computers work underneath.

>>54068575
>Maybe just normal programs for desktop
Then go for Python. If you're using Windows it might even be better to learn C#.
>>
>>54068626
I'm using ubuntu. I can learn other programming languages later. Python seems pretty easy.
>>
>>54068587
Yeah, because Youtube, Eve, Reddit, Spotify, parts of Google etc are not serious and only C programs are. I forgot.


>>54068626
>There is no reason to use C over C++ unless there is no C++ compiler on your target platform
That's where you let me know you're a barely functioning retard whose opinion should be disregarded.
>>
>>54068691
>That's where you let me know you're a barely functioning retard whose opinion should be disregarded.
What a compelling counter argument you have there.
>>
>>54068626
I have written some code in Asm,Verilog, C, C++, D, Pascal, Java, Perl, Ruby Matlab/Octave, Lua, ML, Scheme, Common Lisp and JavaScript.

My opinion is that C++ is not for beginners. I'd advise OP-kun to pick up Javascript/CAnvas and make a game
>>
File: 1459464534451.jpg (37 KB, 348x342) Image search: [Google]
1459464534451.jpg
37 KB, 348x342
>>54068500
C of course desu. How is that even a question?
>>
>>54068626
>No reason to learn C over C++
I agree, as long as he actually just wants to do it as a hobby, but I'd argue that ANSI C gives a lot deeper understanding of programming than C++.
As well as a bit more flexibility.
>>
>>54068500
Try to compile this game http://pastebin.com/AcmcNzMX
>>
>>54068754
you don't need to bother with memory management in this day and age.
>>
File: 1459798107228.png (278 KB, 706x412) Image search: [Google]
1459798107228.png
278 KB, 706x412
>>54068797
>i'm stupid
>>
>>54068500
Python.
>>
>>54068742
Printing "hello world" doesn't count as coding.
>>
>>54068500
Are hikage and kaede the only sane characters in non non biyori
>>
File: tumblr_mgtlrrSTzN1qanuvko1_500.gif (445 KB, 500x281) Image search: [Google]
tumblr_mgtlrrSTzN1qanuvko1_500.gif
445 KB, 500x281
>>54068826
no bully.
>>
Python is a horrible language with a natural tendency to blow up in the users face and is certainly one of the worst choices of all. It's unsuitable for anything but quick and dirty throwaway hacks. Learn C, Java, Lisp, anything. But do yourself and the world a favor and keep your distance from Python.
>>
>>54068797

You don't need to bother with manual memory management like pointers, but you absolutely need to understand memory management regardless of what language you work in - whether it's x86 ASM or JavaScript. Garbage collection helps clean up garbage, it does nothing to prevent memory leaks.
>>
>>54068500
Learn concepts not a language, both are very similar btw.
>>
Racket
>>
>>54070203
lua
>>
>>54068742
>written some code
so you're a complete jack of all trades then?

what the fuck is the point, retard? so you can brag about how many different hello worlds you can whip up in 5 minutes?

you're not a programmer and should leave this thread
>>
C for programs, python for scripts.
>>
>>54068742
>code
>in verilog

fuck off
>>
Python. Oh yes, please use python for everything, I love slow software with a fuckload of import leftpad dependencies in some clusterfuck in /usr.

Python is a scripting langauge. It's for scripts. Simple programming done fast that you will optimize for serious publication.

Also, javascript is for webpages, and webpages are not local software. Don't make anymore godawful shit like atom either.
>>
>>54070806
>import leftpad dependencies
That was nodejs you dumbfuck, and unlike nodejs, the package has to be installed in your global or virtual environment, it doesn't have to pollute /usr
>>
Both. Python+C are a perfect team.
>>
>>54071122
This. If emulator programming, C is perfect for the intensive part (the emulator) and Python is perfect for quickly getting an assembler and compiler to translate your code to the emus instructions. Among other uses, plus if you're primarily Python, you can extend it with C
>>
File: 1459154272345.png (718 KB, 728x720) Image search: [Google]
1459154272345.png
718 KB, 728x720
>>54069532
no
>>
>>54070757
Well you may call it "hardware description". I have built a 8-bit and a 16-bit CPU in verilog that were used in a FPGA project.
>>
>>54071122
Python + C is called C++ retard.

+

> Python is shit, slow and a clusterfuck.
> C is for reinventing the wheel.

C# or C++ is where it's at.

And WHAT LANGUAGE YOU LEARN DOESNT MATTER

OOP = OOP
AN ARRAY IS AN ARRAY
A FOR LOOP IS A FOR LOOP
A FUNCTION IS A FUNCTION

Get what I mean?

If you need to ask what language you need to learn you will not write more then 20 lines ever.
>>
>>54073406
Literally nobody uses arrays outside of academia.
>>
>>54073473
Why not?
>>
>>54073473
.. Ever heard about DSP? Sampling? Everything math intensive uses Arrays fuckface
>>
>>54068500
C
>>
File: 1457053684454.jpg (26 KB, 498x412) Image search: [Google]
1457053684454.jpg
26 KB, 498x412
Why do people pretend like programming is some hard to learn skill? It's easy to learn, hard to master.

Fuck all the "this is a good beginning language", every mainstream well supported language is piss easy to learn.

As to your question OP, learn both you lazy fuck. The classic C book by Kernighan and Ritchie can be read in a day if you grind through it. Python can be learned in a few hours and then you can look up libraries that you need as you go along.
>>
Turing is the best language to start with

any canadians here back me up
>>
>>54074625
Suck my dick, mathfag.
>>54074198
Because there are containers. There's no reason to use arrays unless you're writing something really simple, like a uni programming assignment.
>>
C, unless you are literally retarded.
>>
>>54075130
Stfu pajeet
>>
>>54068500

Learn Pascal.
>>
Both great, used for dif things.Recomend C first.
>>
>>54068500
HolyC
>>
Hijacking the thread, should i learn python 2.7 or 3.X ?
>>
>>54068500
Python
Thread replies: 60
Thread images: 7

banner
banner
[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y] [Home]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com, send takedown notices to them.
This is a 4chan archive - all of the content originated from them. If you need IP information for a Poster - you need to contact them. This website shows only archived content.