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

Trying to learn programming How the fuck is anyone supposed

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: 161
Thread images: 10

File: wtf.png (58KB, 801x625px) Image search: [Google]
wtf.png
58KB, 801x625px
Trying to learn programming

How the fuck is anyone supposed to understand this horseshit
>>
You might want to pass on c++ as a beginner. Try to pick up a scripting language.
>>
>not learning c before c++
>>
>>58547790

Technical reading is difficult until you learn to associate the symbols presented (in this case abstract syntax) with concepts. It will come eventually. Just break it down and read it out loud substituting words when needed.

Many people will act like they never struggled a day in their life reading code or documentation, but it's something every programmer goes through at some point. Persistence is key.
>>
>>58547790
You need an IQ of at least 130.
>>
>>58547790
java is best to learn basic concepts and syntax and the documentation is simply ebin
>>
>>58547858
ecks dee
>>
>>58547837
C is not a very good intro into templates.

Try HASKALL (for overgeneralized patterns) and COBOL (awkward syntax primer) first. If you survive, you have the dexterity to read and understand Boost header files.
>>
>>58547790
>cppreference.com
>Literally naming your website after your preference for CP

Anyway, if you can't understand it, how will you ever write it?
>>
>trying to learn C++ by reading a reference

kek
>>
>>58548126
>cppreference
>cp preference

i feel they should be reported
the site might hide something
>>
The best programming language learning path is Java, C, C++.
>>
>>58548267
>Java
It gave me PTSD and took my programming motivation far away for a good couple of years.

God bless C. God bless vim and my vim plugins
>>
>>58548383
it's a good hand holding language before you get into C.
>>
c++ documentation is bad, start with java or C# with intellij or visual studio

dont read references, start with small programs and learn as you go from code
>>
>>58547790
What is so hard about that OP? std::begin is a function with 4 overloads. Most of the implementations just call the .begin() function on the passed object, however there is an overload for arrays that just returns the pointer to the beginning. Judging by this, you probably would want to use it in a situation where you are writing a template that can take either an STL container or array.
>>
>>58547790
try Python if you're an absolute beginner
>>
That's like looking at calculus before you learn algebra and wondering how anyone is supposed to learn that shit. Like with literally anything else, start with the very basics and move your way up.
>>
>>58548572
>not being g good at calc right off the bat
>>
>>58548629
>shitposting
>>
>>58548572
>8 character tabs
Kill yourself
>>
>>58548654
Now that's what I call autism.
>>
Learn python first, there are concepts you need to underatand before jumping into C++ syntax which can be confusing, especially templates.
>>
>>58547889
why the FUCK would you want to start learning cobol ever
>>
You need to be a full blown autist with 90th percentile IQ to even THINK about becoming a C/C# programmer
>>
>>58547790
What do you not understand?
>>
>>58547790
>Returns an iterator to the beginning of the given container c or array array
This is truly perplexing stuff.
>>
>>58547790
There are a couple things wrong with your approach.

#1 cppreference is a clusterfuck, use either cplusplus or MSDN

#2 c++ is a shit tier language
>>
>>58548572
>Hello World
>Humongous tabs
You just might be a female.
>>
>>58548748
cppreference is fine for what it is, a reference. It's not the retards guide to C++ programming nor is it meant to be.
>>
>>58548769
>trying so hard to meme
>>
>>58548769
hugmonous what?
is that sexual harassment?
>>
It's an iterator
It iterates through something

How is this hard?
>>
>>58548787
Maybe it's fine for an HTML parser, not the human reader. Cppreference just dumps a bunch of functions onto the page with 0 formatting and calls it a day.
>>
>>58548800
The implication is that any minor coding effort will overflow your tiny notebook screen in a couple of minutes with that setting. That is, you don't actually program.
>>
>>58548800
>If you're simulating what tabs look like at a terminal
Protip: you shouldn't be
>>
>>58548829
Well, that's retarded.
>>
>>58548819
It's not a guide, it's a reference. If you know what you are doing, this is what you want.
>>
>>58547790

Just fucking learn Python.
>>
>>58548875
There are better references, even cplusplus does a much better job of being a reference. for c/cpp.

Maybe it's just that the people behind cppreference didn't take the ugliness of the cpp syntax into account and it became what it is, a fucking clusterfuck.
>>
>sepples
Just learn Java
>>
Learn C.
>>
>>58547832
>You might want to pass on c++ as a beginner.
I never understood this.
C++ is fine as a programming language, even for beginners.
Assuming beginners means no programming experience at all.
The documentation is good, even if OP cannot read.
The things you learn when writing C++ is applicable to all programming languages.
Stuff like namespaces and templates might be too much information to throw at people, but it they have to learn at some point.
And even more important: C++ is one of the best languages when it comes to writing documentation. (what I find a very key aspect of writing good programs).
>>
c# is more comfy.
its perfectly in the middle.

not so low where you'd need to manually manage memory, yet not so high where everything is abstracted from you
>>
>>58549035
so how is that different from C++?
>>
>>58549014
>writing C++ is applicable to all programming languages... namespaces and templates

Maybe most, but not ALL.
>>
>>58548983
This , might want to add some x86 assembly to that and reverse some C programs with a debugger in order to understand how the C code ends up when it gets executed.

The problem is that you are trying to understand OOP shit which it self is not programming but one of the programming methodologies used in creating huge software projects(frankly i think that OOP is shit and should be eradicated but some fags might disagree so i wont go in to that). Just learn the essence of programming with C and asm. Don't get in to java or any other high level scripting languages because they will hinder you if you will want to get better at programming
>>
>>58549111
not person you're replying too, but seems like C++ and C# are different flavors of same thing,
>>
>>58549225
>>58548983(ME)
I should get on some asm as you said. C really helped me get better as a programmer because it forced me to think like how the machine was working especially memory wise. ASM would be just the next step in increasing my understanding of the hardware.
>>
>>58547790
Start with Pascal, you fucking moron. Not fucking C++.
>>
>starting from the shittiest topic
>>
>>58547790
start with something simple

https://jsfiddle.net/00qLh0zu/
>>
File: 1484535018675.jpg (110KB, 588x602px) Image search: [Google]
1484535018675.jpg
110KB, 588x602px
>>58548572
>gerard
>zenbook
>8 space tabs
>>
>>58549246
The whole idea that you should use one language over another is stupid.
You pick a language that is relevant in the field you want to make applications for and start learning from there.

When it comes to "starting languages". There is no good starting language. They all have their quirks you have to adapt to, but none of them are perfect unless you cannot use them in your field.

My CE education went (in terms of programming languages) matlab->asm->C++->C->java->vhdl->R->python.
We mostly work with C++ as we have specific libraries for that stuff, but jumping to another language is never a problem.
>>
>>58547858
I literally have an IQ of 129
Am I fucked?
>>
>>58549111
C# has way more out of the box functionality. C++ lacks basic facilities like converting between data types, so you have to use C from your C++ code.
>>
Go to http://www.cplusplus.com/ instead, it's way easier to understand and has some good examples.
Also, you should start with the basics.
>>
OP, if you're a total noob beginner, I'd honestly recommend starting with visual basic of all things just out of simplicity sake and then move into python. There's some actual comp sci information that you're going to really want to pick up along the way.

I know that everybody is like HURRRGH I WANT TO CODE RIGHT NOW, but it takes time man. Coding is like cooking. Everybody wants to make a delectable feast, but you gotta start small, even if it's with the most basic of recipes, like frying eggs.

The more that you understand what programming is about and the basics overall (compiling, loops, subsequences), the more you can advance your understanding of the field. Beyond that, the more languages you pick up, the easier it gets overall. It's just like learning how to cook. The more dishes and ingredients you know how to utilize properly, the more experience that you have, the easier things get. It's not uncommon for a totally average programmer to be fully/decently fluent in 4 - 5 languages.
>>
https://automatetheboringstuff.com/
>>
>>58548180
lol'd hard.

>>58547790
OP you should learn programming with java or python. Don't listen to anybody saying you otherwise.
>>
>>58547790
http://www.duntemann.com/assembly.html
This might be a hard one to start with but it learns you everything low-level need to know, after that you'll walk into C like a breeze and don't even sweat pointers because you already learned memory management.
>>
>>58548693
A potentially crippling amount of money is still moved with it
>>
>>58549035
>C#

You mean the autisic lovechild of C++ and Java?
>>
vim or emacs?
>>
File: 1484707311198.webm (3MB, 1276x1048px) Image search: [Google]
1484707311198.webm
3MB, 1276x1048px
>>
>using cppreference instead of far superior cplusplus.com

http://www.cplusplus.com/reference/iterator/begin/
>>
>>58552711
C# language features are god-tier
>>
>>58553305
t. Rajeev Mujigondshandii
>>
File: 0027 - iKYzROU.jpg (84KB, 800x600px) Image search: [Google]
0027 - iKYzROU.jpg
84KB, 800x600px
I was bored once and wanted to test my skills. I went ahead and tried to rewrite a lot of the STD library that I used often. Was a good test. Then I went and looked at the actual lib files Microshaft wrote for MSVC and it was interesting to compare.
>>
>>58548572
>return(0);
nigger what the fuck
>>
>>58553367
It's just a meme way of writing return 0, to make it look like a function.
>>
>>58553393
Which is retarded and shows that the author doesn't know that it's a statement and not a function
>>
>>58548748
>#2 c++ is a shit tier language
Someone who has never done programming before.
>>
>>58548572
>printf
>not puts

>>58548693
So you can get a job?

>>58548817
But what does one need it for?

>>58553367
Return was actually a function on PDP-11.
>>
the C++ stdlibs are basically all are overcomplicated for no reason- the only things you really need to know about is pointers, data structures, data types, memory management, interfacing with winapi (sometimes), blah blah
c++ is overly complicated but i love it
>>
>>58553440
>But what does one need it for?
Learn programming from a book, not a fucking reference.
>>
>>58547858
i literally had an IQ of 143 but couldn't code for shit
>>
>>58547790
>trying to learn programming
>trying to interpret the obfuscated disaster that is C++ template metaprogramming before you are a decent programmer

>>58547889
C is a great intro to templates. Just use the preprocessor for templates. You'll learn the basic idea of what a template is, as well as why C++ templates exist.

>>58547865
>best to learn concepts
>have to use OO everywhere before you understand what OO is
>>
>>58553631
lol sure
>>
>>58553631
>had

How many brain cells are you missing now
>>
>>58553775
i'd say 1/3 at least
>>
>>58553465
C doesn't have iterators. You can apparently write a kernel without them, so what actual advantage do they provide?
>>
>>58547790

well right off the bat you can ignore everything if it's a version of c++ you don't use

and it really isn't that hard to understand iterators

google it shitlord
>>
>>58547790
C++ is literally the worst possible beginning language. Just learn Racket Lisp and be done with it. It's way easier to learn a language when you already know how to program, and until then it's best to stick with a highly regular and consistent language that won't trip you up when doing basic shit.
>>
>>58553956
ah yes the good old "i pretend that i read SICP" post
>>
>>58547790
trying to learn programming then write programs. sometimes the theoretical stuff is for further down the road right now just write code, do challenges, think of a project how big or small and start doing it.

once you do this for a few months then maybe that stuff may make a little more sense too you.
>>
>>58548572
PLEASE
what is this font????
>>
>>58553964
I read HtDP and Little Schemer, never got around to SICP. It would've been a good passive-aggressive comment though if I had though.
>>
>>58547790
I started with c++ and then moved on to java but I'm good with computers. I didn't really have a problem and caught on really quick. Java, like others have said coincidentaly, killed my programming motivation to some extent. Now I personally love C, and its what I would recommend you dive into OP. OO is for trannies and scrub lords.
> C + VIM == LIFE;
>>
>>58554044
>Java, like others have said coincidentaly, killed my programming motivation to some extent.
this, i'm doing it at school right now

i didn't really like programming before but now i fucking despise it
>>
>>58549014
>C++ is fine as a programming language, even for beginners.

Some parts of the language are. Templates and other cryptic garbage syntax is not.

And since you get into templates right away with vectors, lists, maps, etc its a pain in the ass for new programmers. Make a typo? Have fun with the resulting error message.

>>58549014
>The documentation is good, even if OP cannot read.
No its not, c++reference is slightly above reading the craptastic standard directly.
>>
File: IMG_1376.png (57KB, 468x709px) Image search: [Google]
IMG_1376.png
57KB, 468x709px
Start at the bottom with us, anon
>>
>>58548572
Colorscheme please my tab-abusing good sir
>>
You've got to have the drive to be a l33t hacker
>>
>>58554236
ron, one of the defaults
>>
>>58547790
>learning how to program
>chooses C++

Please start with something like Python or Javascript.
>>
>>58553726
But it's a fucking object oriented language anon
>>
>>58553427
Except I did and am. C++ is shit tier if you actually want to write readable code, reusable, non-cluster fuck code. C++ syntax is hideous garbage, compilers error and warning messages are almost always obscure and don't actually tell you what's wrong, they just tell you where some shit happened and you're supposed to figure out the rest. Also as I've already said in the thread C++ lacks basic facilities other languages have out of the box. So I'm pretty sure you're the one who's never done any programming or simply wrote code in C++ all his autistic life alone without working with anyone ever.
>>
>>58547790
You should probably start with list and then move on the Python, Java, C, then C++
>>
>Start learning python first

Feh, it's like learning to drive in an automatic.

Learn something like Java first instead. You'll have to type way too much bullshit, but you might pick up what that bullshit means on the way. Then you have an understanding of said bullshit if you move onto a language like python that does most of said bullshit for you.
>>
>>58555072
>it's like learning to drive in an automatic
Which helps you focus on the important parts of driving that allow you to not hit other drivers or obstacles without needing to deal with micromanaging your own car at the same time.
>>
C++ is a shit language.

What the fuck did you expect?

If you want to learn some massive meme language, use Java.
>>
>>58554935
This.

Try Vala instead.
vala uses C as it's IR as well.
>>
>>58547790
whatever you do don't go for Java first, it kills your will to live really fast cause syntax is shit
>>
>>58554935
>compilers error and warning messages are almost always obscure and don't actually tell you what's wrong

Are you fucking stupid or is your only experience with C++ in MSVC? With the notable exception of template errors I've never come across a C++ compiler error that didn't tell me exactly what I was doing wrong in minute detail.
>>
>>58547790
start with Python or C# / Java
>>
>>58555177

Reason to not learn Java:
- JVM

Check on YT Minecraft Java vs C++
>>
>>58547858
>codemonkeys needing high IQ
lol
>>
>>58547858
pajeet plz
>>
>>58549014
C is a much better starting point and with the recent addition of generic selections frankly there is no need to subject oneself to the horrors of c++.
>>
Why do C++ programmers always skip around the fact that C++ has OBJECTIVELY poor readability thanks to the type name before variable name paradigm?
int [10]* a // an int, no wait, ten, actually a pointer thereto, called a
>>
>>58548829
>having more than 3 levels of indentation
Refactor your code, faggot.
>>
>>58556277
oh no, it's retarded
>>
>>58556263
>int [10]* a
First, that's a wrong declaration, the dimension of the array follows the variable name.
Second, C gurus admit they fucked up this part of the language, Go fixed that with the "name [dimension] type" scheme. Anyway, the C language is there to stay that way, it's too late now and there is a method to decipher C variable declarations, using the spiral method: http://c-faq.com/decl/spiral.anderson.html
>>
File: asdf.jpg (93KB, 625x468px) Image search: [Google]
asdf.jpg
93KB, 625x468px
i don't even recognize c++ anymore
>>
>>58556263
>thanks to the type name before variable name paradigm
I suppose you like your adjectives after your nouns too, you fucking third worlder
>>
>>58556903
Are you retarded?
There's only a handful of types and many, many variables in a typical program.

Guess which one you want to come first if you don't want to read redundant information.
>>
>he doesn't have a cp preference over pig disgusting 3d shit
>>
>>58547790
>Trying to learn programming from a technical reference
>>
>>58556773
>First, that's a wrong declaration, the dimension of the array follows the variable name.

If you think that that is wrong declaration you have not seen enough C code.
>>
>>58556277
Stop posting pls.
>>
>>58555940
It doesn't matter which C++ compiler you're using. I'm yet to encounter a C++ compiler that spits out readable error messages.
>I've never come across a C++ compiler error that didn't tell me exactly what I was doing wrong in minute detail
That just means you're yet to produce an error beyond a missing ';'.
>>
>>58553631
Same famalam
>>
>>58547858
but coding is for retards and anyone can do it?
>>
>>58553152
>Delphi

now that's a name I haven't heard in a long time
>>
God damn it OP every single week retards like you want to become codemonkeys and start with C++ and we tell you it's a retarded idea and C is better. Why do you never listen?
>>
Anyone with an IQ above 85 has the capacity to become a decent programmer, with given enough time and effort. And if someone disagrees with this statement, it's safe to assume they aren't a programmer. The hardest part of learning code comes to discipline-- being able to to sit down, focus, and stick through the first 6 weeks of studying & tutorials. After that it becomes fun.

(Also don't fall for the c++ is good for beginners meme... python should be your goto)
>>
>>58547790
>How the fuck is anyone supposed to understand this horseshit

It helps a lot if you have autism, otherwise you may as well give up.
>>
>>58556277
cringeeeee
>>
>>58547790
P Y T H O N
Y
T
H
O
N

stop fucking with C++ as a beginner. You'll give up before it can be useful
>>
>>58557706
>start learning to swim in a bath gang
nah
he should start with JS, shares many things in common with C
>>
Learn Go if you want something easy and powerful.
>>
Not OP but what if im a beginner who knows loops and booleans and has also used programming as a fancy calculator yet doesn't know how to actually make anything?
>>
>>58555177
dont ever java
ever
ever
only jvm I can live with is clojure
dont ever java besides clojure
oh and runescape
but dont java besides that
>>
>>58556168
>Check on YT Minecraft Java vs C++
go back to /v/
>>
>>58557874
memes
>>
>>58557803
That's all you really need to make anything.
>>
If this isn't your first book for learning C++, you're just doing it wrong.

Easy enough for a beginner.
Technically accurate and inclusive enough to actually teach you some useful shit.

Stop fucking this up. It ain't difficult. Just read the damn book, do the coding (type it, no copy/paste. copy/paste is for dullards and pajeets), and you'll be set.
>>
>>58557151
No, dickbrain.

You shouldn't have to read to the end of a line to discern something as vastly important as the type of your variable.

By your logic, why not put the conditional before the 'if' and 'while'?

Why not put the initializers, conditional, and increment in before the 'for'?

You're so fucking stupid, and you think you're so fucking smart, Pajeet.

If you're so smart, why can't you poo in the toilet?
>>
I love it when people start with C++. It shows them how stupid they really are right from the start. We can't have stupid people getting big egos because they can FizzBuzz in Python.
>>
>>58548126
kek
>>
>>58547790
You gotta look at introduction stuff. Lots of websites have an expectation that you know what the concepts of programming are and just teach you there syntax. Correct me if I'm wrong.
>>
>>58559431
*their syntax
>>
>>58556168
Nigga, the language matters fuck all. Fucking notch made millions writing the original game in Java. Language is just a means, not the end goal.
>>
>>58559194
How is it any different from any C++ book? Syntax highlighting? Personally I prefer the primer plus series from C/C++ shit.
>>
>>58547790
learn go bro much cleaner language over all.
cleaner sintax
tells you wich line of code has the error when you complie
for normies
made by Google sama
>>
>>58547790
Just start with Python. It'll teach you some programming fundamentals like

>variables
>data structures
>functions
>classes
>object oriented programming
>iteration (for / while loops)
>etc etc etc

Once you understand this stuff (it's easy, like building with legos) you'll find it easier to tackle obtuse languages
>>
>>58561053 <- listen to him, OP.
>>
>>58561053
Python sucks, go with C and bit of asm if you want to have a real feeling of how computers work.
>>
Bros I'm finding it hard to remember how to do shit in C#

is there a C# cheat sheet or something somewhere I can download to remember basic things like operators.
>>
>>58553972
http://www.marksimonson.com/fonts/view/anonymous-pro
>>
>>58557617
>Anyone with an IQ above 85 has the capacity to become a decent programmer

m8, people with IQ's below 100 can't even do simple algebra.
>>
>>58547790

C. Only answer.
>>
>>58563238
I find that hard to believe. If you said linear algebra I'd be more inclined to believe you but basic algebra no way.
>>
>>58563075
here u go anon
+
adds things
-
subtracts things
*
multiplies things
/
divides things
=
makes something equal
:)
>>
>>58556263

* a pointer to an array of 10 pointers to ints

If you are a brainlet just stick to java
>>
File: haskell-logo.jpg (25KB, 431x172px) Image search: [Google]
haskell-logo.jpg
25KB, 431x172px
>>58547790
don't be a noob op

start with a proper beginners language
>>
>>58554902
Why the hell would you want to use an object oriented language?
>>
>>58547790
>Learning C++ by reading website

Rookie mistake. GET A FUCKING BOOK AND READ IT, THEN ANOTHER AND READ THAT.
>>
>>58547790
Some people are autistic and just get it. Most other normal folks just see autistic bullshit. Meanwhile the autists of the world are being tricked by the rich people to program AI that is designed to put them out of work. Only programmer autists would not see this one coming from a mile away.
>>
>>58553631
Same here, at least 147 and it is like learning math in a foreign language. But most of my IQ goes towards dealing with people and problems, not autistic problems. The key is that you need a 130 IQ and have borderline autism to code.
Thread posts: 161
Thread images: 10


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