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

I want to learn programming. Is Python a good choice for a newbie?

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 77
Thread images: 6

File: python-logo.png (82KB, 601x203px) Image search: [Google]
python-logo.png
82KB, 601x203px
I want to learn programming. Is Python a good choice for a newbie?
>>
Yes. It forces you to learn good indentation habits
>>
>>61153444
It's alright
>>
>>61153444
honestly, I would recommend learning the basics of C for a week or two (until you understand control structures, arrays, pointers)

C is the closest to a real "computer's language", Python is more productive but also more distant from the hardware
>>
>>61153589
fuck off c brainlet
go jerk off your pointers
>>
>>61153444
One of the best, honestly.
>>
>>61153444
Julia fag
>>
>>61153444
No, please start with Scheme and read SICP instead. Python will only teach you bad practices and make you focus more on the syntax than the content.
>>
>>61153444
no learn perl
>>
what about python vs ruby on rails?
>>
File: love_you_bad_boy.jpg (4KB, 160x200px) Image search: [Google]
love_you_bad_boy.jpg
4KB, 160x200px
Pascal is best
>>
You came to wrong place to have a concise answer, boy. You will leave here crying and crawling.
>>
>>61153715

This desu.

Lisp & C.
>>
Unironically, yes to python. It will teach you the basics without busting your balls for doing something wrong. If you want a better idea of what tge language is doing to the computer, read about how python does things behind your back and rewrite your python code into C in a similar manner
>>
Python is fine
>>
>>61153632
Real interaction with hardware is completely hidden from you in Python. Python is written in C.
For learning purposes it's important to learn the basics of C otherwise you can't be a programmer.
>>
Yes my man, just go with "Automate the boring stuff with python".
>>
>>61155086
>Real interaction with hardware is completely hidden from you in Python.
Good. It's also hidden from you in C and beginners have other things to worry about than branch prediction misses and bulk allocation and other stuff most C programmers get wrong.
>>
>>61155127
Beginners should learn that it's not fucking magic, that things happen in memory in a certain way. Python is a useful scripting language but programming should start with C.
>>
>>61155121
/thread
>>
>>61155164
>Beginners should learn that it's not fucking magic, that things happen in memory in a certain way.
You can't actually see what happens in memory in C. You just have a better guess. Nobody belives its magic.
>>
>>61155164
t.mathlet
>>
>>61155164
If you want that, might as well start with ASM
let OP get her feet wet, do some fun projects, get a job, learn C, write some drivers, learn ASM, realize that FORTH > C, and all that stuff by herself.

Don't rush things anon, these things, take time you know?
>>
>>61155187
>Nobody belives its magic.
Well, dynamically typed languages cannot be interpreted in any other way if you're a beginner.

Let OP learn what a fucking int is you POS.
>>
It doesn't fucking matter jesus christ just learn whatever the fuck you are actually going to use.
If you later find that you want to learn a different language, do that.
It's not like learning a 'bad' or 'difficult' language first is going to render you incapable of learning anything else.
>>
>>61155297
What about bad habits though?
A guy who starts with webdev shit isn't going to be as competent as someone who starts with systems engineering.
>>
>>61155208
Like there aren't enough C tutorials for beginners that are very easy to follow. Starting with ASM would be context free as far as learning programming but learning what it is and looking at examples of ASM while learning the basics of C is also very useful.
>>
>>61153589
>a week or two
a month at least
>>
>>61155355
Do you have any particular resource in mind?
>>
>>61155217
>Let OP learn what a fucking int is you POS.
You don't learn that in C, either.
>>
>>61153444
Among the three most popular scripting languages for beginners:
Python is good to learn good habits, Ruby gives you more freedom, Perl is the most fun but can quickly become a clusterfuck
It depends on what you want to do.
>>
File: 9ce.png (107KB, 557x605px) Image search: [Google]
9ce.png
107KB, 557x605px
>>61153444
Do the Nand2Tetris course first, only then head onto Python, which is an OK language for beginners. N2T will teach you the entirety of how computers actually work, and will allow you to think about your programming much more clearly.

It's not like you couldn't cobble together tictactoe or some shit, or even understand how algorithm and data structures complexities work without doing N2T first, but the in-depth understanding of the basics makes your later grasp of more advanced concepts(which high-level prog. languages like Python are) much more comprehensive. You will honestly understand how shit works and what happens inside, instead of just learning how to cobble together for loops.
>>
I hope it's good because that's the next step in my plan after learning HTML, CSS, JS, PHP and WordPress.
>>
>>61153444
yes, kys
>>
>>61153826
Well thats more geared towards web development.

>less ruby jobs than python
>more ruby on rails jobs than django/flask

So python is a better choice as it leaves open more programing jobs unless you really want to go into web development in which case ruby and ruby on rails would be a better choice. I use python and django for web development and it works great for me , theres just less job opportunities for django though.
>>
>>61155977
Wasn't RoR killed by node?
Is it even worth it learning RoR nowadays?
>>
>>61153444
Learning any of them is better than thinking about it.
>>
>>61156160
>Wasn't RoR killed by node?
No.
>Is it even worth it learning RoR nowadays?
Depends on your area.
>>
File: 1426124797324.png (5KB, 194x205px)
1426124797324.png
5KB, 194x205px
>>61155121
Amazing book, literally got me into programming projects and the way of thought that goes into it.
>>
>>61156204
>No.
But it's becoming less and less popular.
>>
>>61156229
It merely got rid of the web hipsters/code artisans/sjw/macfagging starbuckos.
Good riddance.
>>
>>61156257
These guys moved on to node?
>>
What are the most important languages to know for /cybersec/?
Aside from C, bash and SQL of course.
>>
Why do people post shit like this. you couldn't be bothered to google it and figure it out for yourself?
>>
>>61156473
I see those fags use a lot of Python
>>
>>61157057
Perl is probably more popular in the infosec community
>>
>>61153509
int x=4,y=6;
if(x<y)
{
cout<<"EVERY CURLY BRACKET REQUIRES IT'S OWN GODDAMN LINE YOU OLD FUCKS";
}
>>
>>61157565
Maybe in the 90s.

Perl is unmaintainable and unreadable
>>
>>61157637
Yet it's still popular.
>>
>>61157612
DISGUSTING
I
S
G
UNREADABLE
S
T
I
N
G
>>
>>61157650
Society advances one funeral at a time
>>
>>61157733
Perl isn't going to die anytime soon, though
>>
File: perl.png (23KB, 852x478px) Image search: [Google]
perl.png
23KB, 852x478px
>>61157740
>>
>>61157784
>implying this means shit
There's a reason why it's called the duct tape of the Internet. It's everywhere, and even if it's not hyped up by web dev babies it's still omnipresent.
>>
File: perl2.png (29KB, 694x542px) Image search: [Google]
perl2.png
29KB, 694x542px
>>61157807
COBOL is present everywhere too, but would you call it "alive"? Are there any <40yo in the language community?
>>
>>61157835
COBOL and Perl aren't used for the same things, though.
Ruby's popularity has been decreasing. Is it dead?
>>
What python book should I read?
>>
>>61154056
KeK
>>
>>61157846
for me, it is.
>>
>>61157849
>What python book should I read?
Why read a book ever
Just learn online especially with phython there's plenty of resources
>>
>>61153444
No. Learn a functional language like scheme or OCaml before moving on to oop
>>
>>61157885
just fuck off, please
come when You >= 21 yo || YourIQ >= 79
>>
>>61158780
who cares about the order in which you learn things
>>
>>61158834
Functional languages typically aren't useful for production level code, but the things you'll learn using them will make you a much better programmer when you move on to languages that are actually used in industry. They force you to pick up good habits.
>>
>>61158954
sure, but I meant you can acquire that knowledge after learning other languages. It doesn't really matter.
also, there aren't many languages that actually make you pick up bad habits.
>>
That's the worst way to learn programming.

Start with Haskell or scheme, then move on to C and then learn a little assembler to understand how the C code maps to the hardware.

Finally throw all of that out and learn C++ which is the end game language. Be ware of Rusty idiots who will try to trap you into a training wheel language.
>>
>>61153444
Consider the fact that python is what tween girls at kode kamp learn and you should have an obvious answer.
>>
>>61159031
>>61159058
>being an elitist
learning one language or another isn't going to make you a bad programmer. it especially doesn't matter which one you start with, stop spreading this meme.
the "worst way" to learn programming is to worry which first language you should learn and never end up doing shit
>>
>>61156473
Depends on what area of /cybersec/ you want to get into.

If you'd like to focus on web exploitation, you should know JavaScript, PHP and SQL. Also, Python helps for that area since you'll likely be building quick scripts to help you audit web applications or protocols (Scapy is awesome).

For binary exploitation stuff, x86/64 Assembly is pretty important, as is C/C++, bash and a scripting language of your choice (Ruby/Python/Perl). For government jobs, I see Java asked for a lot so that might be useful to know as well.

Hope my answer helped a bit, if you want to know what employers are looking for you should check job postings for the cybersec positions you're interested in because they will often list programming languages.
>>
>>61159086
I'm not an elitist I'm speaking from experience. When I was 12, 2 decades ago, I learnt QBASIC and thought it's awesome and productive. The same thing people think of python today. Python is not much different but does away with end/next and replaces it with white space.

Had I used a less fun language like Haskell or scheme to learn I would have spent less time stuck in my QBASIC phase.
>>
>>61159266
Python can be useful for some stuff, therefore it's not a waste of time
You can start with a scripting language, a functional language, or whatever you want it won't change much if you have drive to learn
>>
>>61155473
For learning assembly I've been reading
Assembly Language Step-by-Step: Programming with Linux, 3rd Edition by Jeff Duntemann.

It starts off by going over the very basics of computing and slowly builds on those foundations. It can be a slog to get through that initial part but luckily the author keeps things easy to understand and you'll be thankful later on when you get to actually programming assembly that you took the time to learn the fundamentals of computer architecture, memory management, etc.
>>
>>61153444
Racket
>>
>>61159086
>the "worst way" to learn programming is to worry which first language you should learn and never end up doing shit
This. Analysis paralysis is the real killer here.
>>
>>61159257
I'm mainly interested in network security. So probably your first suggestion.
Thanks, I'll look around.
>>
>>61159366
>tfw have been suffering from analysis paralysis for 3 years now

help
>>
>>61159373
Learn any language
Python, Perl, Ruby, C, Java, C++, Lisp, Scheme, Haskell, OCaml, Lua, JavaScript, C#, Fortran, ASM, Erlang, Scala, Clojure, Rust, Go
It really doesn't fucking matter. I started with Ruby yet I didn't end up a starbucks webdev. Learn what you want, need or like.
Thread posts: 77
Thread images: 6


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

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
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.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.