[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]

How do I learn how to program?

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: 75
Thread images: 16

File: fHtdkSO.jpg (192KB, 1080x1267px) Image search: [Google]
fHtdkSO.jpg
192KB, 1080x1267px
I have no prior experience and only know basic math.
>>
>>59517786
Buy a book about programming for beginners. I would say a book about C or Java. Then get a book about programming and abstract datatypes. good luck.
>>
>>59517786

Why do you want to program? To impress nerds on 4chan? There are better things to do with your life.

If you do want to learn programming, first figure out what you want to do with the skill, (make a robot, set up an automated light switch, write a web platform), before anything. Once you figure that out, then you can ask the "How"

Without a goal for yourself, programming is terrible, awful, no-good, very bad experience that gets you too frustrated to do even basic shit and you'll give up in frustration at some point.
>>
File: e1NickO.jpg (72KB, 750x750px) Image search: [Google]
e1NickO.jpg
72KB, 750x750px
>>59517879
>programming is terrible, awful, no-good, very bad experience that gets you too frustrated to do even basic shit and you'll give up in frustration at some point.
Care to exlain?
>>
>>59517928

Not much to explain. If you're learning C and you don't know why, and you don't have any reason to, then you won't care about it and you'll have a bad experience.

I don't care to learn how to run a restaurant. I have absolutely no passion for restaurants, why would you expect that I would suddenly greatly enjoy running my own restaurant?

First the guy needs to figure out WHY he wants to learn programming. If he wants to learn how to design a video game, there's no reason to tell him to learn Javascript, and he won't enjoy it because there's no benefit for him
>>
File: cMgJkde.jpg (75KB, 750x937px) Image search: [Google]
cMgJkde.jpg
75KB, 750x937px
>>59517957
Great point.

What if I want to make a(n) website or app and I want to make money out of it(entrepreneur?), what should I learn?
>>
>>59518023
KodewithKlossy

This will teach you to make an ebsite
>>
>>59517786
>>59517878
>>59517879
>>59517928
>>59517957
>>59518023
>>59518037
http://4chan-science.wikia.com/wiki/Computer_Science_and_Engineering
>>
>>59517786
>open the Google
>type 'programming tutorial'
>>
File: aCJ2lnY.jpg (78KB, 640x640px) Image search: [Google]
aCJ2lnY.jpg
78KB, 640x640px
>>59518180
I-it c-c-ca-can't be th-hat easy...!
>>
Who is this dumb titcow?
>>
>>59518365
Elizabeth Anne
Snapchat Account: ohgeelizzyp
>>
File: Kappa.webm (778KB, 480x480px) Image search: [Google]
Kappa.webm
778KB, 480x480px
>>59518365
>dumb titcow
>titcow
>tit
>>
>>59517786
i will recommend a great beginners book if you tell me who this is
>>
>>59518619
Are you mentally retarded or just a fucking idiot?
>>
>>59517879
i think anon has a point
if you don't have a goal, you won't go anywhere
what do you want to do, OP?
>>
>>59518023
a programming language. it doesn't matter that much what you start with but imo you'd be subjecting yourself to a lot of unnecessary frustration by starting with C. maybe start with Python or Java or C++.
>>
>>59517786
If you didn't start when you were a kid you might as well just not bother t b h baka desu senpai-sen-pai
>>
File: PcCw3il.jpg (73KB, 750x865px) Image search: [Google]
PcCw3il.jpg
73KB, 750x865px
>>59518736
>bother t b h baka desu senpai-sen-pai
What is this gibberish?
>>
>>59517786
this>>59518736 tbqhwyfamily
if your background doesn't imply
>being born into a poor family
>dad bought you a computer but no games
>also gave you a book to learn how to make your own games by programming
>won 2 awards by the age of six
>was in charge for minimum 10 years for a Microsoft caliber company
>made 3 revolutionary OS
>gave a presentation at TEDx about solving world hunger

the prerequisite of all this is being an indian also
>>
>>59518770

Wow i want to creampie her so hard until i fill those tits with my milk.
>>
File: XgsS1rA.jpg (112KB, 437x795px) Image search: [Google]
XgsS1rA.jpg
112KB, 437x795px
>>59518846
>i fill those tits with my milk.
Like to see you try,kek!
>>
File: BONERENGAGED!!!.gif (894KB, 300x167px) Image search: [Google]
BONERENGAGED!!!.gif
894KB, 300x167px
>>59517786
>>59517928
>>59518023
>>59518340
>>59518558
>>59518770
>>59518867
WEEEW LAAAADS!!!!!
>>
What do you want to achieve?
>>
Program things that have already been done. Don't try to make the thing you are trying to program better. Just do it for experience. The only way to learn. Using interactive coding sites work but only teach you the very basics.
>>
>>59518113
Thanks anon that is very helpful.
>>
>>59518558
attention whoring is such a sadistic and depressing disease.
>>
Write down steps in order that you would do to accomplish something that you do regularly. Note any steps that could be repeated. Or any places where you would change what you would do based on unknown events.

Do this for 3 or 6 different activities that you perform, an example would be going to get groceries, or showering... If you can think through something like, make sure there is a fresh bar of soap, if not replace it. Or think about where the soap is if it needs to be replaced think about where the replacement soap is, how your body is going to move to replace it and if there is packaging, all things have to be accounted for for the step to happen.

Then think about how you would make a machine to do one of the steps in something of your choosing, or think about spatially what has to happen in sequence to accomplish it.

This is an analogy for writing a program, only the steps are instructions given to the computer to perform a task. Programming is giving the computer commands like it is your personal slave or employee, that will replace the soap in your bathroom, only it needs exact instructions, like a machine or robot, you can't just say: "replace the soap" its very dumb it doesn't know what soap is, or the bathroom, it only knows the movements and locations at best of what needs to happen, so you have to tell it everything.
>>
>>59517786
Don't bother.
>>
>>59520115
Programming is counting, reseting a count, changing something at a specific count, changing other things based on other counting while in side a main counter.

People crossing through a gate, at 100 people close the gate, if it is an odd number in the count, person 1,3,5... they will receive a free hat once through the gate.

If you can represent this in some form using numbers or letters by writing a program to indicate which people received free hats, and which did not, you will be well on your way.
>>
>>59518558
There is nothing wrong with titcows. Every harem should have one lovely who's defining feature are her enormous tits.
>>
>>59520199
If the person received a free hat, ask their name, if it begins with the letter "B" then they also get a free T-Shirt... Sort of the beginning of database programming... If that person was also born in March they don't receive a T-Shirt.
>>
>>59517786
So you want to learn programming?

Pick a starting language. For beginners, there are generally two recommended "programming families" that you can choose to start learning:
-Dynamically typed/interpreted programming languages, such as: Python, Perl, Ruby
-Statically typed/compiled programming languages, such as: C, C++, C#

These are amongst the most popular languages in use worldwide, including 4 from the top 5. Both approaches are perfectly fine, and well-documented.
-Dynamically typed programming may be a bit more flexible, convenient, and forgiving. It is more popular in academia.
-Statically typed programming is a bit more suited for making general applications. It is more popular in industries.

Cannot decide? Flip a coin.

If you choose statically typed/compiled programming, you may want to start with C, then pick up C++. C is very well documented, and teaches many universal programming concepts. C++ is based on C, and adds new concepts. Sources:
For C:
The C Programming Language (K&R)
C Primer Plus (Prata)
http://www.cprogramming.com/tutorial/c-tutorial.html
http://www.learn-c.org/

For C++:
http://www.learncpp.com/
http://www.cplusplus.com/doc/tutorial/
http://www.cprogramming.com/tutorial/c++-tutorial.html
http://en.cppreference.com/
https://isocpp.org/faq

If you choose dynamically typed/interpreted programming, you may want to start with Python. It is very easy to pick up. Here are some good sources:
http://www.learnpython.org/
http://www.codecademy.com/en/tracks/python

>BUT I WANT MORE SOURCES!
Read: https://wiki.installgentoo.com/index.php/Programming_resources

>BUT I WANNA START WITH [language x] INSTEAD!
Sure, if you like. But the languages above are considered good for beginners.

>BUT I WANNA MAKE A COOL WEBSITE!
Learn HTML, CSS, and Javascript.

>BUT I WANNA MAKE iPHONE GAMES!
Learn Objective C and/or Swift.

>BUT I WANNA MAKE ANDROID GAMES!
Learn Java.

>BUT I WANNA MAKE PC GAMES!
Learn patience.
>>
File: 1480613864460.gif (624KB, 640x360px) Image search: [Google]
1480613864460.gif
624KB, 640x360px
>>59518558
I have a mighty need to fondle those tits
>>
How would you even attract a woman like this?
She could choose between 99% of all men and get whoever she chooses by just asking.

You'd need to be the cream of the cream of the cream of the crop to even be considered, given the enormous amount of competition.

I wonder what her boyfriend (or man she fucks) looks like, and how much money he has.
>>
>>59521122

Shes probably taken hundreds of dicks.
>>
File: sgc2c_ep050_01.jpg (78KB, 400x300px) Image search: [Google]
sgc2c_ep050_01.jpg
78KB, 400x300px
>>59521122
just b urself bro works for me evrytime
>>
>>59517786
>>59517928
>>59518023

Who is that?
>>
>>59521209
I'd imagine so.
Still wonder how they're like.
>>
>>59517786
does this bitch do porn
>>
>>59517879
This. Always wanted to learn how to program to years and I finally got motivated when I had a goal.

I my case it was Minecraft, back in the day there were limited mods and I learned by using the internet. Today I make a comfy living from programming.
>>
>>59521795
reverse image search lead me to some shitty reddit page, which linked to imgur https://imgur.com/a/rDsrU. Now I wonder how OP got these images from.
>>
>>59521825
its a shame if she made herself that body and doesn't do porn what a waste
>>
>>59517786
who is this germinal terminal
>>
I'm starting to learn programming with smileBASIC.

Is this a colossal mistake?
>>
File: 1406936421652.png (2KB, 154x139px) Image search: [Google]
1406936421652.png
2KB, 154x139px
>>59521852
those fucking tits though
>>
>>59517786
Programming is basically like math except:
>instead of solving equations you invent them
>instead of being defined by generators, sequences of length N are stored in Nx1 matrices called "arrays"
>there's a new kind of mathematical object called a "character" that's just a number except when you write it you don't write it as a number, you write it as the letter that number is in the computer alphabet (text is therefore stored as a sequence of these "characters")
>there can be functions that do other things than just expand to a value; for example, if you have a function f(x), it's entirely possible it could be defined as f(x) = (make the computer beep and then after you do that, substitute x) + 1, so f(7) would equal *BEEP* 8
>>
File: hhmTh1N.jpg (140KB, 832x832px) Image search: [Google]
hhmTh1N.jpg
140KB, 832x832px
>tfw OP doesn't post the best pic there. . .
>>
File: jeb-bush-435.jpg (105KB, 435x580px) Image search: [Google]
jeb-bush-435.jpg
105KB, 435x580px
>>59522561
she's mexican so she'll look like this once she hits 30
>>
>>59522087
No idea what that is, but BASIC is fine for learning. Write some educational programs and then move away and never use it again.
>>
>>59518023
Javascript with a few modern libraries
Python for back-end

That's ez mode entry level.
>>
>>59517786
http://csfieldguide.org.nz/
>>
File: brow.jpg (114KB, 420x420px) Image search: [Google]
brow.jpg
114KB, 420x420px
>>59518340
dem fucking eyebrows, WTF ahaha
>>
>>59523289
???
>>
>tfw no Elizabeth Anne gf
>>
>>59523363

THANKS FOR THE NAME. BRB
>>
>>59521426
Why are you wondering about cocks?
What are you, a faggot?
>>
>>59517786
I'm not gay but Jesus fuck, she has such a hideous face.
>>
>>59521122
Most of the guys who approach her are complete retards with their retarded pick-up lines. Just from being a fucking man and being able to talk to a female will already feel refreshing for her.
>>
What language should you learn if you want your code to interact with real world objects, for example like a raspery pi


what if i wanted to use my phone for cool shit like starting my car or turn on the light outside my house

what sort of programming language would be best suited for this?
>>
>>59523476
>Wonder what kind of features are required to obtain a woman
>That means I'm attracted to those features

>Wonder what kind of powertool is required to do a certain job
>That means I'm attracted to powertools

Also, where did I say anything about cocks?
I was talking about looks and money.

>>59523507
>Most of the guys who approach her are complete retards with their retarded pick-up lines.
How do you know that?
>>
File: cap.png (381KB, 640x553px) Image search: [Google]
cap.png
381KB, 640x553px
>>59517786
you apply your mathematical reasoning skills to programming problems
>>
>>59523289
This is 10/10 in Bongistan
>>
Should I go for Python 2 or 3?
>>
>>59523556
You should never ever ever look at python2, ever. It's already done.
>>
>>59523560
Wrong!
>>
>>59523645
So I should learn Python 2 instead of 3?
>>
>>59523684
Who knows?
This is 4chan.
>>
>>59523684
No, he trollin. Python2 is dead and even the defenders have basically moved on. It only exists for legacy shit.
>>
I started with Java. I used it to make scripts to do shit for me. Eventually I learned Python, then C. I'm quite bad at math as well. That slows things down a lot sometimes, and I'm quite reliant on external sources and calculators to solve pretty basic problems. Fortunately coding's just a fun hobby for me.
>>
>>59523514
anyone?
>>
>>59523684
3

you do it like this
>google "microsoft deb essentials"
>register with a throwaway e-mail if you hate getting emails from microsoft
>when you register you get bunch of 'dev essentials' for free essentially ha!
>among those you'll get Linux Academy for like 3 months free and pluralsight for 3 months free
>go and click on pluralsight, register there
>login to your account go into 'paths' and chose the python path
>there you have 3 stages: beginner, intermediate, and advanced
>go through them one by one and you can easily finish them all within a month let alone 3 months

that's it
>>
>>59523514
>>59525974

>raspery pi

python


>what if i wanted to use my phone for cool shit like starting my car or turn on the light outside my house

ugh idk, you would have to install a raspberry pi on your car for a starting mechanism, somehow have it connected to your phone, maybe through the internet, the new Pies have wifi so technically it could work if it's near your house and connected to your wifi, then you would need to make an app on your phone. You would do that in Java, or swift if it's an iPhone.

Then you would need to make some kind of interaction between the two..

Maybe just wire a raspberry pi to your car and then put in some burner phone to it, so when it gets a text(set it on vibration so teh motor is activated), the raspberry pi can detect that it's sending electricity to the motors and based on that trigger the mechanism for starting the car. Just like terrorists make bombs. Then all you would need to do is send a text to that burner phone every time you wanted to turn on your car

That's all way to complex for a beginner I would say, go through Python courses I talked about here >>59526029

and then you'll know more about what's possible with it, or maybe just find a course specifically for raspberry pi and robotics and follow along
>>
>>59523528
>how do you know that?
I've dated some 9s and 10s. I'm short, unemployed and rarely the most attractive guy in the room.

Those girls are literally whores and they will fuck you as well because you're better than the 20 mouth-breathing betas who've approached her that night and Chad got tired of fucking her. You don't need to be a fucking god to bang a hot girl.
>>
>>59517786
>only know basic math.
As in you don''t know advanced mathematics or you don't know anything at all?
Either way, I would program stuff you do know.
Normally, I would start by having people read a file or something, but if you only know basic math, I would suggest that you start by implementing stuff like that.
A good project would then be to implement a calculator that takes strings as input.
Maybe something that understands something like "2 plus 3"
or "product of 3 and 4".

Either way, make a goal and pick a language that might be relevant for you.
JS for web applications.
C++ for fast desktop applications.
Python for slow desktop applications.
Thread posts: 75
Thread images: 16


[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.