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

>mfw a 10 year old can write better code than 90% of the fags

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: 125
Thread images: 13

>mfw a 10 year old can write better code than 90% of the fags on this board
>mfw no face
>>
Why would I bother learning how to write code?
>>
>uses language that parses indent
>uninitialised local variable s
>input function uses ; as a separator
>while and func don't use enclosing parentheses but if does
>no closing parenthesis at the end
Excuse me for having learned sensible languages.
>>
I'm on /a/ of course I don't know how to do anything
>>
At least I'm not a virgin
>>
>>145243953
yeah but I kick his ass
>>
>>145243953

What language is that supposed to be? C? C++? I'm not actually sure, because I don't see any semicolons at the end of any of the lines. And then there's shit like 'endwhile'. I'm guessing it might be PHP, but again, the structure is all wrong. And what the fuck is with the weird assembly line numbers on the side? That ain't how it works.

It's a cute attempt but it's not programming.
>>
>>145243953
That shit won't even compile
>>
>>145244461
How is s uninitialized? Literally initialized on the first line of code. It's a float.


Anyway OP I learned to code when I was 12 and that code you posted looks like a retard made the language. Suck me.
>>
>>145243953
>digimon fan projects insecurity
>>
>>145244768
I think a lot of BASIC variants used such "line" numbers?
>>
>>145245042
Also while might use a parenthesis, but because there's only one line it's not necessary. And there is a closing parenthesis around the one statement that uses it.

>>145244768
Nope, PHP ends each line with semicolons and also looks fucking NOTHING like that. Looks a lot closer to a traditional OOP language than PHP.
>>
>>145245177

Possibly, but that sure as hell isn't BASIC. It's some bastard programming language that won't ever work.
>>
>>145245177
Looks so silly to have what is clearly a higher level language have those line numbers. You'd just code that shit in a notepad.
>>
>>145244768
What exactly does this program do?
The context for this is that the guy is analyzing the program found written on the walls the inside of a huge ass battery which makes a whole factory operational
>>
>>145245177
Once upon a time BASIC used line numbers as GOTO and GOSUB targets. More modern implementations use labels for GOTO and actual sub/function definition syntax.
>>
>>145245437

It appears to be a function that draws a fractal on a screen. So... completely useless for a battery.
>>
But can he block?
>>
>>145245163
Honestly, the Digimon fanbase was even more autistic than MLPfags
I can't believe that whole "are you a believer" shit actually happened
>>
File: 1470067295624.jpg (2MB, 6000x3000px) Image search: [Google]
1470067295624.jpg
2MB, 6000x3000px
this is how shitty /a/ fags code and try and fit in on /g/

stop crossboarding faggots
>>
>>145245647

Bitch I am literally at Microsoft right now, programming shit.
>>
>>145245647
there are people who think coding requires skill outside of enterprise-scale design and competitive coding
I just... I don't know
>>
>>145245523
He's apparently writing this in order to decipher the mysterious code written on the wall
Does that make any sense?
>>
>>145245042
>Suck me
Huh? This is a Christain board.

How much you charge?
>>
Just started learning Ruby so they probably could.
>>
>>145245611
>more autistic
>"are you a believer"

Bamco know this and that they have it going for them. All they have to do is keep pulling the right heartstrings and rake in the money.
>>
>>145245647
I'm never going to fit in. I don't have your surly bitch attitude.
>>
>>145245813

Not in the slightest. It literally draws fractals, if it worked, which it does not.
>>
File: 1470263560191.webm (2MB, 1280x720px) Image search: [Google]
1470263560191.webm
2MB, 1280x720px
>>145245647
>6 monitors with 2 vertical

wait a minute, that setup
>>
>>145246420
>same screen positions
>taskbar, steam and 4chan in same screens
Damn.
>>
>>145245042
>How is s uninitialized? Literally initialized on the first line of code. It's a float.

Not him, but in some languages (C/++), it's good practice to assign the variable to an initial value (like 'float s = 0.0;'). Otherwise, it's possible that 's' will be created with some fucked up values, screwing things up down the line.
>>
>>145245042
Stop talking like you know shit when you can't even differentiate between initialization and declaration.
>>
>>145246942
it's not just "good practice", you're supposed to do do it if you're gonna start incrementing it from zero because C and C++ won't do this for you.
They were designed during a time when implicit variable initialization was seen as wasteful.
>>
>>145244768
It's not like there arent text editors or use that display line numbers.

Do you do everything in notepad?
>>
You guys are actually stupid as fuck. You just fixed this kids homework for him.
>>
>>145249798
i do everything in nano, it's basically the linux equivalent
>>
>>145243953
That's alright, we have sysadmin.
>>
>>145249600
I see. I've only taken one C++ programming course, so I wasn't aware of any other useful reasons to initialize. The only times where I've incremented a variable explicitly from zero were in for-loops, but we generally declare/initialize the variable in the local scope: for (int i = 0; i < blah; ++i).
>>
what's going on in this thread?
>>
File: 1469660695023.png (509KB, 692x720px) Image search: [Google]
1469660695023.png
509KB, 692x720px
>>145250012
>not using emacs for everything
>>
>>145250000
That's actually from an anime
>>
>>145250161
Why are all programming classes this obtuse and wordy?
It reinforces bad habits and takes all the fun out of programming.

I took a java class once and it killed my interest in programming until I learned C from a book.
Then suddenly, every bizarre java concept made sense.
Schools are shit for programming in general.
>>
>more than 90% of /a/ doesn't know how to do something that isn't considered to be basic/standard needs
OP is, as always, a faggot.
>>
>>145250382
>Why are all programming classes this obtuse and wordy?
Because most of them are designed so anyone can understand and pass them, not just those with a knack for it.
>>
>>145250382
I don't quite follow. I wrote pretty much the simplest for-loop I could think of, and I can't see what 'bad habit' comes from it.
>>
>>145250012

>nano

Why, it's awful. use something better like vim, emacs or just a standard text editor. Nano is just plain awful.
>>
>>145243953
Well koshiro is a genius.
>>
>>145250288
My nigga, I can't wait for emacs 25 to get the browser so I can do literally everything including browsing the web and post on /a/ in emacs.
>>
>>145250891
What's wrong with nano?
Are you dependent on babby-mode shit like autocomplete or something?

It's not like nano is devoid of features, you get bracket matching, regex-based syntax highlighting, search+replace, cutbuffer, etc.
>>
>>145251054
>What's wrong with nano?

It makes you look like a pleb that can't use a decent text editor like vim or emacs. I bet your co-workers give you funny looks when they see you using it and talk about you behind your back.
>>
>>145251054
Nano is for anons who want to feel smug they're not using notepad. It's great if you want to make a quick edit, but it's just notepad with syntax highlighting and line numbering, use a proper editor like vim or emacs.
>>
Is swift language worth learning? I am an amateur programmer using C# atm but want to get into iOS.
>>
File: 1434265128347.jpg (102KB, 369x390px) Image search: [Google]
1434265128347.jpg
102KB, 369x390px
>>145250956
>>145250288
Not using Butterflies to deflect incoming cosmic rays and strike the drive platter
>>Pleb
>>
>>145251123
I bet you spend more time ricing your editor and installing plugins than actually writing code.

>>145251126
vim is designed for people who type on homerow
the nav keys are purposefully non-standard shit like ghjk or whatever.

I don't type homerow, plus, I already have nano's shortcuts muscle memoried.
you might as well be asking me to relearn how to type
>>
Damn I always wanted to learn how to code to create my own applications. What should I do first? Learn advanced maths or something like that?
>>
>>145251205
>learning anything related to apple

Fuck off, back to your shithole.
>>
>>145251350
math can be learned, you just need basic arithmetic and maybe some trig if you want to generate 2D shapes programatically
3D graphics requires a decent base in linear algebra

most programming is basically CRUD shit and this requires no math at all
>>
>>145251205

Just learn Java, everyone loves Java right now.
>>
>>145251456
I hate Java.
>>
>>145251350
Depends on the application and the language. Math above a high school level isn't really necessary for a lot of what you'll do starting out.
>>
>>145251456
Is your name pajeet?
Only diploma mill indians enjoy java.
They were taught to write it on paper and never even touched a computer until they were imported wholesale into the IT industry.
>>
Digimon is written in Go
BTFO pokemon go
>>
>>145251456
I mean, is there any guide for dummies? I was pretty average in maths and there was this nerdy guy programming cool stuff in his laptop years ago.

I would like to program applications in iOS for example, but seems like comments like >>145251401 makes me believe programming for Apple is not a good idea.
>>
>>145251819
>believing shitposters
Just do whatever you want. Any "guide for dummies" isn't going to help you much in the long run, it's better to just go balls deep and see what you're capable of. There's nothing to offer here that you can't find on google.
>>
>>145251819
You're locking yourself into a developer ecosystem that's actively hostile to it's developers and open source in general.

You're not allowed to run unsigned apps on iOS devices without purchasing a $99/year developer license that allows you to run non-app store apps on your devices for testing.

This is something that android lets you do for free and freely encourages using the android SDK and adb.
>>
>>145251819
First google some tutorials. I dont know shit bout apple, but I've heard Swift is the new shit right now.

For windows go C++ or C#. Screw Java
>>
>>145251819
1. Choose your language based on what you want to do. Android uses Java so for mobile software you'll need it. For desktops Python and C/++ will serve for almost all purposes. For web development you'll need PHP and markup languages.

2. Google "language_name for dummies".

3. Install software and start coding shit. You can copypaste errors and questions into google and it'll give you the tailored answer on stackoverflow.
>>
>>145251981
>I've heard Swift is the new shit right now.
I've been doing some Swift programming and it's pretty neat.
>>
>>145251940
>>145251972
>>145251981

Oh guys dont ruin it. Let him go into iOS. I probably wont see it, but feels good when someone fell for these apple faggets.
>>
>>145245647
I rather have /a/ crossboarders than the cancerous /v/ermin polluting /g/ right now.
>>
>>145252028
>For web development you'll need PHP
What kind of a shithole did you crawl out of?
>>
If I knew how to write code I wouldn't be a NEET.
>>
>>145252155
Yes you would.
>>
>>145252155
You act like you cannot be a NEET and programmer at the same time. Make it a hobby of yours or something, have fun with it.
>>
>>145251429
I see, I thought you needed high skills in maths to be a programmer because this nerdy guy told me its better not to be a programmer or program at all if your math skills is not outstanding.

Yeah, the nerdy guy was top notch in my class
>>
>>145252155
Plenty of NEETs write code, who do you think maintains Linux programs?
>>
File: 1447175161508.png (1MB, 1702x2471px) Image search: [Google]
1447175161508.png
1MB, 1702x2471px
I thought /a/ loved to program?
>>
>>145252275
/a/ does, /a/ and /g/ are good friends. /g/ is called techloli/g/y for a reason.
>>
>>145252240
I sucked at maths, but for programming you only need basic operations and logic to create apps.

You see those subnormals called youtubers releasing their cheap ass games and apps? If those mongrels can do it, why you cant?
Its not easy, but its not hard either.
>>
>>145243953
Post his desktop
>>
>>145252155
learning to program wont change anything.
>>
>>145252380
>its not easy
>its not hard

Then what is it?

How long did you take to learn programming? Weeks? Months? Years?
>>
>>145252460
It took me about 6 months of self-study until it finally clicked with me.
>>
>>145252460
Different anon, but you get what you put into it anon. If you practice very little, it'll take you forever to learn it.
>>
>>145252460
3 weeks and I already knew the basics. 2 months and I already could create apps.
>>
>>145252155
Just do it, Only annoying thing is is finding a language to start out with that you can get accustomed to.
>>
File: 1462436390003.png (799KB, 727x1048px) Image search: [Google]
1462436390003.png
799KB, 727x1048px
>>
>>145252460

Learning to program is easy, writing algorithms and writing good efficient program code is much harder.

If you want to really test yourself try:

https://projecteuler.net/archives

a lot of the problems have an obvious "brute force" solution, but that solution will take hours maybe days to compute an answer, you need to implement a better more efficient solution to get to an answer in a reasonable amount of time. I've only managed to do about 10 of the questions so far, but it's good fun.
>>
>>145252460
Dunno what kind of programmers >>145252510
and
>>145252533
are, but it will take some time. Anyone saying you can learn it in 6 months or even weeks is fucking lying and should cut their balls off for misinforming.

Guide for dummies.
First: Pick the language you want to learn and look up their pros and cons.
Second: Pick your IDE and learn what the fuck you can do with it. (For example, I use netbeans and Eclipse to program in Java).
Third: Start programing logic stuff before going into apps.
Lastly: Nver fucking stop practicing. Create shitty stuff like a calculator or whatever but never stop practicing. A colleague forgot how to program already after living 5 years in a shit 3rd world country and not programming at all.

And thats it.
>>
>>145253012
But I really dont unserstand the pros and cons of each language.
>>
>>145253012
>Anyone saying you can learn it in 6 months or even weeks is fucking lying and should cut their balls off for misinforming.

The guy asked how long it takes to learn "programming".

If you want to get technical you will never learn "programming"completely, but 6 months is a fair estimate for how long it takes to get into a programmer's "mindset", how to use variables, functions and be capable of both identifying problems and knowing where to look to find solutions.

Programming in its purest form is problem solving. If you know how to split a problem into smaller chunks until you get something you can manage with your current knowledge, then you're already set in my opinion.
>>
>>145253243
Languages are just tools, the syntax can be learned in a day because they're almost all the same.
The only difference is the scope of what you'e doing.
Are you flipping bits at the CPU register level or are you working over an incredibly abstracted API designed to retrieve data from some website?

What can't be learned in a day is the fundamentals of programming because it takes time learning how to solve a problem programatically.
>>
>>145253243
Then fuck off and go back to your shithole.
>>
>>145253340

Damn I just wanted to create something like an app or a game like Flaping Bird.

>>145253341
Ruuuude
>>
>>145252980
These seem like pretty basic things you can do with the basic math operators and loops which are good to know well but seem more like math solving than programming.

I'd say programming is more about structure i.e. creating good and scalable solutions and learning to interact with already existing stuff.

>>145253243
The basic stuff is a lot of the same in each language. Just pick C++ or Java and go with it. Once you learn one it's not hard to pick another. Java is like easy version where you have no control over anything and it runs like shit. C++ is where you actually need to dive deeper and manage memory and stuff.
>>
I'm going into engineering major and though it's not required, I feel like learning programming would help getting ahead.

What language should I learn? I guess C and C++ would be good to do shit with arduino? I also heard that PHP is a good language to start learning with.
>>
>>145253417
Programming to make simple games is easier if you use programs like Gamemaker or Unity. I'd look up tutorials on the one you pick to make the game you want.
>>
>>145253708
What about something like an online store or e commerce?
>>
>>145253501

They are basic things you can do with simple math operators and for loops, but for many of the problems that approach will mean you're waiting days for your code to finish executing to give you an answer, the point is to create a solution that is efficient and can solve the problem in minutes which is a challenge and does teach you good programming skills. Though some of the stuff is far too mathematical for my taste.
>>
>>145243953
Did you mean to post on /g/, retard?
>>
>>145254004
Most people on /a/ post on /g/ also.
>>
Can we go back to anime stuff please? Not all of /a/ are programmers or care about it.

kthxbai
>>
File: K&R watashi kininarimasu.jpg (475KB, 852x973px) Image search: [Google]
K&R watashi kininarimasu.jpg
475KB, 852x973px
>>145254508
but anime and programming go hand in hand
>>
>>145250248
>>145254004
I also would like to know how I ended up on /g/.
>>
File: 1468742793539.jpg (519KB, 1280x720px) Image search: [Google]
1468742793539.jpg
519KB, 1280x720px
>>145254508
>Not all of /a/ are programmers or care about it
IIE CHIGAIMASU
>>
>>145254508
Where the fuck do you think your shitty VNs come from?
>>
>>145255380
VNs require no programming if you use a prebuilt engine framework.
your entire game is just text and domain-specific scripting that tells the engine to load a specific sprite after pressing A
>>
>>145246420
>>145246766
Who's suppossed to be that guy? Unfamiliar with /g/
>>
>>145255671
apprentice sysadmin
he used to trip until he got bullied
supposedly he moved in with his sister and became a neet after his wife commited suicide because she had a miscarriage
>>
>>145255746
thanks
>>
File: apprentice sysadmin twintails.jpg (576KB, 1500x982px) Image search: [Google]
apprentice sysadmin twintails.jpg
576KB, 1500x982px
>>145255798
also you're not allowed to make fun of him because people will call you heartless and a newfag even though nobody is sure if his backstory is true or not
>>
>>145246420
>tfw poorfag who can't ever achieve a setup that autistic

kill me
>>
>>145243953
>>>/g/
>>
Learning to program is useful if you have any plans or inspiration strikes you. I took a semester of C and C++ each just last year and while I can say I'm pretty familiar with the basics of those languages now and glad to be so, I have no clue what to do with that knowledge beyond assigned tasks.
>>
>>145255923
>i don't know how to write things that weren't explicitly taught to me

you didn't learn programming then, you just learned to swing a hammer
a programming language is just a tool, like a hammer
you still have to know how to build a house to get anything done
>>
>>145255867
>nobody is sure if his backstory is true or not
Everyone knows it's fucking bullshit. This is the sort of melodrama a 14-year-old would invent to garner some interest.
>>
>/a/ - computers and coding

thanks /a/
>>
>>145243953
> While s(1 or s) = 2

What did they mean by this?
>>
>>145256203
>while s<1 or s>= 2
>>
>>145256409
Why are you using an assignment command to establish a while loop? What is actually being assigned? You can't assign a constant, and you can't float an array index without blowing something up.

It's wrong. It's horribly horribly wrong.
>>
>>145256021
He's too cool for lies
>>
>>145256497
That's budy waiting for a user input which needs to be in constraints.
>>
>>145243953
I'm a botanist, why would I learn computer programming?
>>
File: 1470440205316.jpg (4MB, 4800x6912px) Image search: [Google]
1470440205316.jpg
4MB, 4800x6912px
>>145255746
sysadmin is olev
>>
>>145243953
hopefully he grows out of it before its too late
Thread posts: 125
Thread images: 13


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