Serial threads for Ponychan's various subcommunities

Search /gala/ threads

Name  
Email  
Subject  
Message  
File     
Password  (for post and file deletion)

File 140838480692.png - (259.24KB , 1131x1130 , DJ-+-Nerd.png )
1515896 No. 1515896
printf "Welcome to the Coders' Thread";


This is the first edition of this thread. It's for anyone who can code, in any language (including that TI-84/83 programming stuff). Visitors are also very welcome!

First: Introductions.
How long you'e been coding, and languages that you use.


Me: About 10 years
Languages: HTML, CSS, Java (and script), PHP, C, Obj-C, Python, Swift (not so fluent yet).

Last edited at Mon, Aug 18th, 2014 11:07

Unspoiler all text  • Expand all images  • Reveal spoilers
>> No. 1515998
File 140838790303.png - (413.76KB , 401x429 , Vamos, amigos.png )
1515998
I've never been much of a coder, so I guess I count as a visitor here.

Though I'm not against this thread, I have to mention that you're far from the first man to have created a serial on /gala/ without having made sure on forehand that there's an explicit audience that will post in it. I've seen serial threads about movies, comics, random remarks, and such vanish within a week.

Though I acknowledge that it's a bit early for me to cry wolf after fifty minutes, my biggest advice as somepony to have created the slowest or second-slowest continual community on /gala/: If you can't base it off an existing serial from /oat/ or /chat/, then make agreements with site friends and topic-knowledgeables, or possibly even E-mail friends, about creating a serial that multiple people has agreed to post in together.

Last edited at Mon, Aug 18th, 2014 11:52

>> No. 1516006
>>1515998
It's not exactly supposed to be all that fast. A lot of people have actually asked for a /code/ or something like it, so I figure that if I make a thread, it has somewhere to be.

Last edited at Mon, Aug 18th, 2014 11:57

>> No. 1516019
File 140838866841.png - (471.38KB , 824x844 , Trotting and spotting.png )
1516019
>>1516006
>A lot of people have actually asked for a /code/ or something like it, so I figure that if I make a thread, it has somewhere to be.
Okay, then it looks like everything is prepared. I was just wondering or something like that.

I'll wish you good luck onwards with this thread!
>> No. 1516027
File 140838892227.png - (1.70MB , 2000x2000 , 132999403033.png )
1516027
I've been coding for a decade too. On web platforms HTML, CSS, JavaScript, PHP, Python, including experience handling Apache and Nginx webservers, as well as Ruby/Ruby on Rails.

Other than that though, the only language I use to create personal scripts and various Do-It-Yourself applications is Python. For serious large and complex programs and software, my favorite language by far is C++. I am fluent with other languages like Java, Visual Basic, Pascal and whatnot, but I don't ever use them.

>>1516006
I wish we had a sort of /code/ board, but alas.

Last edited at Mon, Aug 18th, 2014 12:09

>> No. 1516030
File 140838894094.png - (207.43KB , 1280x764 , DJ-+-I'mGame!.png )
1516030
>>1516019
Thank you. You're free to chill here any time you want.
>> No. 1516032
File 140838931231.png - (262.28KB , 900x557 , Lyra_249.png )
1516032
C++, Some C, Python, LUA, PHP, HTML, CSS, JS, PHP

Fun fun.
Currently writing a game in C++, working on getting something along the lines of php in the code that works as a http 1.1 server that I just found, fixed up and got running.

Fun.

What do we do in this thread?
>> No. 1516034
File 140838938585.jpg - (264.65KB , 1077x1300 , Lyra_1008.jpg )
1516034
>>1516032
Oh, and I've been coding for around 3 years.
Didn't notice that part, sorry.
>> No. 1516037
C++ and just now picking up Assembly.
>> No. 1516039
File 140838955239.png - (234.30KB , 1600x1251 , Lyra_213.png )
1516039
>>1516037
>Assembly
I want pics from your journey to hell if you decide to come back
>> No. 1516040
File 140838955494.png - (182.33KB , 854x936 , DJ-+-Comeon!.png )
1516040
>>1516027
Cooleo. I haven't used python for a whole bunch of things. Any mini projects and stuff I usually do in javascript so I can share it if need be.

>>1516032
LUA? Wow, never used that before.

As for what we do here. we discuss code, any projects that we're working on, different things that we can do with it, ask for help n stuff.

Basically anything really. We don't even have to talk about code.
>> No. 1516042
File 140838963663.png - (71.79KB , 217x274 , Lyra_874.png )
1516042
>>1516040
Lua isn't really something I liked though. It reminds me too much of pascal.

Hm, I see.
>> No. 1516044
File 140838970911.png - (47.84KB , 273x436 , DJ-+-Cooleo.png )
1516044
>>1516037
>>1516039
Assembly is very useful if you know how not to screw everything up.

I can read it depending on the processor, but write? Not quite yet.
>> No. 1516045
File 140838978440.png - (241.03KB , 466x465 , 132981393814.png )
1516045
>>1516032
Hey, I haven't met someone else who knows how to use Lua in a long long time, or that it's one of their languages. I used to work on a project that uses Lua for all its scripts, it was some fun times, even if the language itself wasn't that interesting.

What kind of game are you making?

>>1516040
JavaScript? For system scripts? Or am I misunderstanding you?
>> No. 1516046
File 140838978889.png - (269.03KB , 837x474 , Lyra_468.png )
1516046
>>1516044
To be honest, I always thought that it's one of the cooler things out there that actually have any uses.
The thing is, I don't know how could one go about using assembly
>> No. 1516049
File 140838984845.png - (211.97KB , 900x795 , 132476308372.png )
1516049
>>1516046
A lot of coders have no use for it. But for example, if you wish to disassemble an application for whatever reason - debugging, for example, or if you're a black hat, cracking - it's essential.
>> No. 1516051
>>1516046
Microprocessors.
>> No. 1516053
File 140838993584.png - (258.14KB , 654x957 , DJ-+-BlushOhYeah.png )
1516053
>>1516045
Not system scripts of course. Those I do a bash or something, depends on the OS. More like for small code experiments or tools.

>>1516046
Well, if you ever want to create a programming language, you'll need to know assembly. Also, it is useful for optimization and stuff when you don't trust the compiler to be as efficient as possible. >>1516049
this too.

Last edited at Mon, Aug 18th, 2014 12:26

>> No. 1516057
File 140839010056.png - (9.89KB , 617x596 , Lyra_1013.png )
1516057
>>1516045
It was easy enough to pick up and code in, nothing special, nothing too interesting either.

It's, well, a 2D top-view MMO.
The catch is, it's supposed to be fully configureable.
So, you get the executable, all the dlls and stuff required to run it, set up your "world" with xml files (at least, xml for now since I have a nice parser and some experience with it), create "user" files, upload them somewhere and there you go.

Basically create your own adventure.
It's called "The Seed" after SwordArt Online.

>>1516049
>>1516053
Oh, I see. Well, I kinda knew about those uses though. I guess I just ignored them cuz I wouldn't really bother with this stuff anyway.

>>1516051
Ohh. But would C be sufficient though?
>> No. 1516062
File 140839028356.png - (167.87KB , 586x614 , DJ-+-StandYep(sucks).png )
1516062
>>1516057
> But would C be sufficient though?
Well, the assembly language you use really depends on your processor. C is just a language that is converted to a hex form of assembly through a compiler.
>> No. 1516064
File 140839037040.png - (822.46KB , 1000x912 , Lyra_358.png )
1516064
>>1516062
I figured as much.
>> No. 1516065
File 140839039857.png - (80.09KB , 249x241 , 132500089112.png )
1516065
>>1516053
Yeah, I was confused for a moment, but in hindsight I realize I also listed Python in the web section. I use it mostly as an aid to PHP scripts. Most often as addendum to scripts I have no hand in making that are too complex / used to change too much.

You should probably try making bots or stuff like that, that's what I mostly use Python for. For example, right now in my IDE I have three Python scripts in editing. One I use to save my browser tabs - sometimes during crash all my tabs (hundreds) are lost for some reason, and Firefox can't finish writing the sessionstore.js, so it's truncated. But it's still located in sessionstore.bk, so I just use Python to read that file and open all the tabs in it. What is usually lost is stuff like personal tab history, which I don't care for at all.

Another I use to read certain Database Container files, I'm developing an editor so that my colleagues can edit them in mass, and the third one is a Ponychan bot. I used to use it to make a daily reminder to /mlp/ every time there was a daily reminder here on /oat/.

Python has tons of uses, and it's a very fun and cool language! You should find excuses to use it more if you don't already.

>>1516057
That sounds cool! You should probably make seeding / random generation a part of it, just for a lick of irony.
>> No. 1516066
File 140839048227.jpg - (55.26KB , 1000x1000 , Lyra_601.jpg )
1516066
>>1516065
It's gonna have bits that'll be random.
You know, I can't put in too much of that stuff, that'd just be mean.
>> No. 1516067
File 140839077149.png - (178.49KB , 900x982 , DJ-+-Yeah.png )
1516067
>>1516065
Awesome, I'll try that out. I should really learn more python first though.

>>1516065
>>1516066
As for randomizing things, I once had this idea for an infinitely expandable world for console games. Basically everything from the ground to houses and building are generated via seeds that are based on coordinates and the main world seed. The resources and textures could be very compact, and the world could be saved in a very compact fashion.
>> No. 1516068
File 140839085142.png - (153.57KB , 1700x1600 , Lyra_34.png )
1516068
>>1516067
Doable, but what's the point in something like this, really?
>> No. 1516072
File 140839100411.png - (258.14KB , 654x957 , DJ-+-BlushOhYeah.png )
1516072
>>1516068
Well, one of the problems with some games is that the worlds are limited by the space on the game disk, especially when there are extremely high quality graphics. This would allow entire worlds to be reduced to a set of algorithms, seeds, and resources that would be put together live.

More worlds and levels could be made, saved, and presented.
>> No. 1516074
File 140839116632.png - (471.80KB , 624x573 , Lyra_616.png )
1516074
>>1516072
I know that, but why use something like that?
Games are usually designed with "limited resources" in mind, say, maps and such.
If the product was not designed with the idea of being really open-world as it's prime criteria, what's the point?
>> No. 1516075
File 140839120073.png - (197.26KB , 364x356 , 132904438645.png )
1516075
>>1516072
Depends on what kind of world you're making. If it's something like Minecraft, no problem, and I even think it uses a similar mechanism. You couldn't do something like that however in a tough game like World of Warcraft or Battlefield, because you'll blow up your memory and CPU. You're saving disk space at the cost of processing the seed every time the game loads, rather than processing it once and saving the results on disk.
>> No. 1516077
File 140839141572.png - (31.57KB , 945x945 , DJ-,,,-Shrug.png )
1516077
>>1516075
There was always going to be a trade of with the loading time. But with parallel processing, and the limited speed of character movement, it can be loaded while the character is moving without using up too much CPU or memory.

>>1516074
It's just an idea that would allow such games to be made.
>> No. 1516081
File 140839150012.png - (48.03KB , 1200x1000 , Lyra_952.png )
1516081
>>1516077
It's a shame it's just an idea.
>> No. 1516087
File 140839161756.png - (47.84KB , 273x436 , DJ-+-Cooleo.png )
1516087
>>1516081
Well the amount of code for implementation would be quite complicated depending on what kind of world, and how it needs to be generated.

Minecraft is perhaps the best implementation of a very simplified version of this idea.
>> No. 1516089
File 140839165412.gif - (147.37KB , 556x405 , Lyra_756.gif )
1516089
>>1516087
But it's in Java...
>> No. 1516093
File 140839180235.png - (103.03KB , 580x541 , DJ-+-ILikeThat.png )
1516093
>>1516089
Oh, you didn't mention Java in your description.

Java is pretty useful I must say. It's also very readable even if you don't write in it.
>> No. 1516101
File 140839197942.png - (760.22KB , 4464x4888 , 513217__safe_solo_vector_lyra_absurd+res_lyra+heartstrings_moustache_moustache+edit.png )
1516101
>>1516093
I don't really know Java, I helped my friend when he had problems coding in it though.

And I meant it as "Ew, Java".

Kinda is, I guess. I don't really like it though
>> No. 1516104
File 140839213913.jpg - (38.37KB , 245x303 , DJ-,,,-watching.jpg )
1516104
>>1516101
Well why not? It's a pretty powerful language despite running on a VM.
>> No. 1516111
File 140839232801.png - (269.03KB , 837x474 , Lyra_468.png )
1516111
>>1516104
Personal preference, I guess.

Don't like the fact that everything's a class. The fact that Android runs it instead of superior C++ that it would be capable of and few more.
Also, Java's performance.
>> No. 1516119
File 140839249056.png - (105.38KB , 440x599 , DJ-+-OhHi!.png )
1516119
>>1516111
Actually, I love object oriented writing. To me at least, it makes a lot more logical sense, and it's easier to organize code without having to worry as much about loops and recurring references.

But it's true, Java's performance and security issues are big minuses. Poor android.
>> No. 1516123
File 140839259851.png - (501.18KB , 655x581 , 132996311468.png )
1516123
>>1516111
>>1516119
I much prefer to work with objects, I write PHP entirely OOP, but I do not like the fact that I am forced to run with multiple classes, files, etc. If I want to make a highly structured segregated system, I prefer to be the judge of whether it is needed or whether it just bogs down development.
>> No. 1516128
File 140839277678.png - (29.42KB , 383x283 , Lyra_490.png )
1516128
>>1516119
>>1516123
I also write 99% of my code according to the whole idea of objects and stuff, it's just that I prefer to have the freedom to choose, you know?
>> No. 1516134
File 140839298028.png - (219.48KB , 512x512 , NyaSheIs.png )
1516134
python for about five years as a tools developer, with some smatterings of c# and mel in there. now I"m looking at ruby/rails/html/etc
>> No. 1516135
File 140839298569.png - (219.36KB , 413x459 , 133024889407.png )
1516135
My biggest problem is design though. I'm so bad at designing a GUI, both in web and personal applications. I always have to go around like a street beggar, begging for designers who can make CSS do magic.

I even worked a bit on an imageboard software for kicks. On the backburner because I could not design a fluid MCP/ACP.
>> No. 1516136
File 140839298851.png - (258.14KB , 654x957 , DJ-+-BlushOhYeah.png )
1516136
>>1516123
>>1516128
Ah, makes sense. Yeah, I'm kind of the same way. That's why I use Obj-C. You can switch from C to C++ to C# to Obj-C without missing a beat. It's fun.
>> No. 1516141
File 140839313801.jpg - (136.35KB , 582x615 , 132572343322.jpg )
1516141
>>1516134
Do you know how to make a live-editor with duplication/efficiency options that doesn't look like a nuclear reactor control panel or a Windows 98 application in Python?
>> No. 1516145
File 140839321869.jpg - (84.68KB , 576x450 , Lyra_569.jpg )
1516145
>>1516134
Nice.

>>1516135
I like the challenge with these things.
Though it usually ends with looking for prepared answers on StackOverflow.

>>1516136
All the C.
Myeh, I'll just stay with C++.
It's the first language I ever touched, and I just prefer it all together...

>>1516141
lol
>> No. 1516147
>>1516141
I do all the GUI stuff in PyQt4. It looks native regardless of platform, if that's what you want to know...
>> No. 1516150
I might check in on here occasionally. I use C# (which I like a lot) and C++ at work, and have dabbled in a lot of languages over the years, including Visual Basic, Object Pascal, MUSHCode, R, Perl, JavaScript and PHP. I don't have any personal projects on the go, though.
>> No. 1516154
File 140839341743.png - (151.88KB , 900x878 , DJ-+-OhYeah!.png )
1516154
>>1516134
Welcome!

>>1516135
>CSS Magic
Oh, how I wish it could do more. Anything that can't be done with CSS... well, usually requires Javascript or is impossible.

>>1516145
>Though it usually ends with looking for prepared answers on StackOverflow.
lol this

>>1516145
>Just C++
Nothin' wrong with tradition, especially if it's useful as it is.
>> No. 1516156
File 140839349982.png - (78.80KB , 512x512 , Targets.png )
1516156
>>1516145
hi Ly.... I feel like I've said hello to you once before... many moons ago. Maybe I'm imagining things....

>>1516154
I followed your link from story.
>> No. 1516157
File 140839350275.jpg - (602.72KB , 800x1066 , DJ-+-Happy.jpg )
1516157
>>1516150
>Object Pascal, MUSHCode, R
Woah... Well welcome to the thread!
>> No. 1516158
>>1516032
ur a nerd
>> No. 1516159
File 140839351984.png - (264.65KB , 462x424 , 132500331282.png )
1516159
>>1516147
I currently use tkinter, but I heard of PyQt. I actually wanted to use wxpython but it has no Python 3 support.

Not entirely sure of the differences between it and PyQt, to be honest this is the first time I've ever developed an editor in Python. I usually leave it to C++, but it has to be lightweight, I can't afford to download a million libraries. What makes PyQt look so... "native"? And does it come with, say, images?
>> No. 1516161
File 140839360115.gif - (40.73KB , 360x360 , Lyra_446.gif )
1516161
>>1516150
Yay, C++ and PHP.

>>1516154
It's my fault that over 2000 people before had problems positioning divs next to each other without using a table!

Yeeeeeeeep.
What's your language of choice?

>>1516156
Yes, we did talk before, I remember you.

>>1516158
And you're gay
>> No. 1516164
>>1516161
no ur gey
>> No. 1516165
File 140839368447.png - (46.32KB , 447x467 , DJ-+-Yesh.png )
1516165
>>1516158
Join us.
>> No. 1516167
File 140839371589.png - (10.63KB , 359x761 , 558428__solo_suggestive_solo+female_breasts_lyra_bipedal_lyra+heartstrings_lyrack_artist-colon-a.png )
1516167
>>1516164
You'd like that, wouldn't you.

>>1516165
He knows matlab!
And Java, I think!
>> No. 1516169
>>1516165
i can make forloops n shit

>>1516167
ew no
>> No. 1516170
File 140839379661.png - (128.84KB , 310x330 , Lyra_38.png )
1516170
>>1516169
You know, I still have that "female orgasm presented by greeny" file on my dropbox.
>> No. 1516172
File 140839382239.png - (325.76KB , 2000x2000 , 132315648418.png )
1516172
>>1516145
>Though it usually ends with looking for prepared answers on StackOverflow.
How I know that feeling. Thank God for SO, or else I'd have spent more time reading ridiculously long articles and documentation than actually coding.

>>1516150
I use mostly C++ and Python at work, but I can't resist the urge to mess sometimes with Python, JavaScript, Ruby and PHP at home. Do you simply not have the time or is your work "enough coding time" so to speak for you?

>>1516154
CSS can do a crapton. I have no problem with JavaScript, and it's even easier with jQuery - oh move this and that here, fade this and appear that, keep this hidden and store whatever. The thing is, a lot of stuff that I use with JavaScript can actually be done with CSS, and is much much more efficient. It also takes me forever to align things with it so that's where most of my frustration comes through.
>> No. 1516173
>>1516170
I will murder you
>> No. 1516174
File 140839385674.jpg - (39.39KB , 512x512 , TheAnswerIsQuadratic.jpg )
1516174
>>1516159
PyQt4 is python bindings around the QT4 C++ libraries. Which can do a lot of things. Since QT4 is platform agnostic, PyQt4 gets to be as well.

I use it extensively since Maya integrated with it and even before Maya could use it.

I know there are libraries in it to code-like syntax highlighting and a friend made a simple python editor in it using that stuff. I'm not familiar with that particular set of things though.

though however you package it up, it'll end up with the qt libraries as well, which are like... 9mb or something.

>>1516161
okay! yay! hi again!
>> No. 1516175
File 140839388786.png - (0.97MB , 945x914 , DJ-+-You'rePrettyCool.png )
1516175
>>1516161
>positioning divs next to each other without using a table!
Bahaha, so true. Though, sometimes a div is how it needs to be. Stupid 'float: left/right;' does so many dumb things that I don't want it to do.

But yeah, even tables have impossible things. Have you ever tried to have one column with a fixed width, and the other take the remaining space horizontally no matter the window size? It's hard. Only Javascript can save me there.
>> No. 1516178
File 140839397843.png - (605.63KB , 900x1125 , Lyra_506.png )
1516178
>>1516172
I don't like SO that much. When I post with a problem there I usually get screamed at...

>>1516173
I would prefer cuddles though

>>1516174
Hai ^^

>>1516175
Actually, it's just float:left + float:left, and I think that alone does the trick.
Oh, that thing
Variable table length... It's doable, you just need to make sure each column has it's size declared to begin with and do something with the table, can't remember what really
>> No. 1516181
File 140839410963.png - (130.58KB , 789x1114 , DJ-+-BowTie.png )
1516181
>>1516178
>Actually, it's just float:left + float:left, and I think that alone does the trick.
Actually for just two divs, one float left is fine. But the issue comes when you want more than one div and certain width and overlap criteria (especially when they are expandable menus).
>> No. 1516184
File 140839418698.png - (392.81KB , 1024x1024 , 602254__safe_solo_lyra_lyra+heartstrings_artist-colon-thezealotnightmare.png )
1516184
>>1516181
Oh.
I'm a bit rusty, I have this project in progress, but I've been way too lazy to just finish it up and stuff.

Yeah, but css can sure be a pain in the ass...
Sigh.
>> No. 1516185
File 140839419845.png - (115.06KB , 366x322 , 132500878338.png )
1516185
>>1516174
Hm, I suppose I can deviate from the standard library and try PyQT4. 9 MB isn't a whole lot, but I guess it's dependent on the size of the editor in its final form. I suppose either way that should be fine, I might give it a go - I haven't made much of the GUI yet, I'm mostly procrastinating while making the templates.

>>1516175
>>1516181
My friend Allan would probably know how to make that work in CSS. He's a wizard.

>>1516178
People there seem friendly, then again I've only ever once posted a really stupid question, but then again people weren't exactly mean. Perhaps it's because it was so stupid. I could not understand why I'm printing a different variable than I thought, and someone pointed out earlier in the algorithm I accidentally compared the wrong variable. I guess when you stare at one class for hours long, you sort of become blind to certain areas.
>> No. 1516191
>>1516185
you can also make use of the qt designer instead coding out the interface. which is super nice. I'm not sure if wx has something similar or not. I've not used it.
>> No. 1516193
File 140839437169.png - (106.39KB , 596x504 , DJ-+-ISeeWhatYouDid.png )
1516193
>>1516185
>when you stare at one class for hours long
You mean when you stare at any code for a long time.

My eyes always get blurry.

As for this Allan, I'd like to see some of his work. Some people are just wizards.

>>1516184
Yeah, even the coolest projects get put off for no reason sometimes.
>> No. 1516199
File 140839443872.png - (213.40KB , 400x474 , Lyra_25.png )
1516199
>>1516185
Maybe I've just hit a weird bunch of people back then or something.

That's just so true, oh my god. The pain this kind of thing causes...

>>1516193
It's actually a thing I was forced to make during my internship.
In PHP.
For free.
A whole website + CMS system, because why not.
>> No. 1516200
File 140839446604.png - (155.14KB , 894x894 , pinkie_pie_grinning_by_sirspikensons.png )
1516200
>>1516191
>qt designer rather than coding out the interface
Tell me that's what I think that is. Could you link to something?
>> No. 1516205
>>1516157
All things I've used a while ago and was never much of an expert in, for sure. Thanks!

>>1516172
Sometimes I have ideas, but it's difficult to get uninterrupted time at home to really get into anything. We do have periods at work when we can work on projects outside of our regular work, though, which helps with getting to try new things.
>> No. 1516208
File 140839458279.png - (163.08KB , 767x738 , DJ-+-Smile.png )
1516208
>>1516199
Ah, an internship for what?
>> No. 1516216
File 140839474974.png - (140.69KB , 501x567 , Lyra_300.png )
1516216
>>1516208
I'm in workschool. It's kinda like highschool, but I have a lot of IT classes.
I had to get an internship as a part of my grading last year
>> No. 1516221
File 140839486066.png - (178.09KB , 910x878 , DJ-+-LetMeSuggestSoemthing.png )
1516221
>>1516216
Oh, cool.

I wish I could do that. Most of the jobs I find, I get hired to be a coder and graphics designer, and end up doing neither of those things. It's somewhat frustrating.
>> No. 1516224
File 140839491259.png - (25.29KB , 192x188 , Lyra_622.png )
1516224
>>1516221
At least you get jobs, that's good.
>> No. 1516226
File 140839492227.png - (187.37KB , 1928x1048 , qt-designer.png )
1516226
>>1516200
i'm not sure about it being separate - except on linux - it's got it's own package install there

but the windows installer, will also install it.

http://www.riverbankcomputing.co.uk/software/pyqt/download
>> No. 1516231
File 140839498629.jpg - (77.06KB , 894x894 , Lyra_614.jpg )
1516231
>>1516226
But that's cheating!
>> No. 1516237
File 140839512438.jpg - (69.03KB , 512x512 , WellNukingTheArticIsCertainlyPossible.jpg )
1516237
>>1516231
pfftt... it gets the job done.
>> No. 1516241
File 140839518432.png - (149.34KB , 836x956 , Lyra_682.png )
1516241
>>1516237
But designing stuff in GTK+ and then recompilling it 400 times is fun!

No?
It's not?
>> No. 1516244
File 140839530395.png - (93.47KB , 512x512 , StupidTable.png )
1516244
>>1516241
>> No. 1516248
File 140839538404.jpg - (94.61KB , 894x855 , Lyra_642.jpg )
1516248
>>1516244
I'm fine with waiting 20 seconds for it to compile again though.
I guess it can be mildly annoying though.
>> No. 1516259
File 140839557807.jpg - (45.37KB , 512x512 , SteamPunkChanglingBattle.jpg )
1516259
>>1516248
python just amounts to restarting the script, but I'd rather work on more interesting things then worry if all my widgets are lined up correctly and move correctly when resized.
>> No. 1516266
File 140839573144.png - (31.72KB , 450x401 , Lyra_151.png )
1516266
>>1516259
Butt widgets.

It can be mildly annoying I guess.
I have bigger problems though, I need to get a GUI library on top of my other library for displaying things!
It's annoying!
>> No. 1516285
File 140839609955.jpg - (31.42KB , 512x512 , SettingLasersToFlowers.jpg )
1516285
>>1516266
sounds like fun!
>> No. 1516303
File 140839664209.jpg - (22.02KB , 368x432 , 132396039133.jpg )
1516303
>>1516248
That's actually what I hate about C++. I guess since I started out with scripting languages rather than compiled ones I never got over the insufferable wait that it takes to compile, especially if the program is pretty intricate.
>> No. 1516304
File 140839664161.png - (278.46KB , 3368x4330 , Lyra_667.png )
1516304
Is there anything else you wanna talk about?
>> No. 1516313
File 140839694364.jpg - (70.66KB , 512x730 , SharkAttacksOnTheMountainSide.jpg )
1516313
>>1516303
pretty much - why is this taking forever! just start already!

>>1516304
I must go forage for food, I will be back later.
>> No. 1516316
>>1516313
while( out ) getFood();
>> No. 1516404
>>1516316
Either getting food causes going in, or you'll be out getting food forever...
>> No. 1516409
File 140840084050.png - (31.87KB , 512x512 , ɹoɟ ƃuıʞooן ǝɹɐ noʎ ǝuıɹǝƃuɐʇ ǝɥʇ ʇou sı sıɥʇ.png )
1516409
I heard there was coding going on here.
>> No. 1516462
File 140840319507.png - (231.46KB , 894x894 , +-+hugs__by_thetechnological-d4x0vxq.png )
1516462
>>1516404
Nah, not if the verification is fundamental to the function getFood(). So what it really might be in a sort of basic form:





while(out):
   if me->needFood() and me->GetMoney() >= to_currency(me->getRequiredMaterial('food', units=true)) + me->averageMoneyUsage(length=week):
      purchaseFood()
   else:
      me->sendEncryptedNotification(type=food, source=bowel, offset=replenish)

Last edited at Mon, Aug 18th, 2014 16:16

>> No. 1516468
File 140840341729.gif - (300.77KB , 230x180 , 132500037104.gif )
1516468
>>1516409
Yes hello, there's not much codestuff here but I'm sure it's a matter of time before a fighting arena is opened where we can battle one another until one of us is declared false about some philosophy or another!
>> No. 1516475
File 140840356197.png - (63.48KB , 512x512 , EwFineGlassWare.png )
1516475
>>1516462
ew, curly brackets
>> No. 1516476
File 140840359796.png - (154.58KB , 829x964 , 133004038358.png )
1516476
>>1516475
I realized I started typing without any idea which language I'm mimicking. Refresh, Pythonized.
>> No. 1516478
File 140840366599.jpg - (44.90KB , 512x775 , ThatsNice.jpg )
1516478
>>1516476
much better
>> No. 1516487
File 140840385268.png - (142.42KB , 331x343 , 132457991589.png )
1516487
>>1516478
I think it was a mix between Python and PHP. It was fairly amusing, and it isn't the first time I completely mixed some languages together when typing cookie-cutter code!
>> No. 1516490
File 140840400138.png - (71.46KB , 512x512 , Your shenanigans scare Tangerine.png )
1516490
>>1516487

>cookie-cutter code


On topic: Done quite a lot of Java, some C++, some C#, some good old Pascal, and some minor random scripting languages and stuff. Also tried to do some Python.

Haven't coded seriously in a while, though.
>> No. 1516491
File 140840404694.png - (145.34KB , 512x512 , ThisDoesntLookRight.png )
1516491
>>1516487
if my scope of languages was bigger, I'd probably do the same
>> No. 1516496
File 140840422248.gif - (291.62KB , 750x720 , 132394703946.gif )
1516496
>>1516490
>Tangerine Cookie
Oh haha woops. Don't you worry, my code doesn't cut people. ^^

Thumbs up for C++! It's a lovely language, although I don't like to use it outside of work, I prefer to mess with other languages and pet projects. The Daily Reminder was particularly fun.
>> No. 1516502
File 140840435844.png - (103.90KB , 512x512 , Tangerine Computer Axey.png )
1516502
>>1516496

C++ lets you do some amazing stuff. That usually ends up in amazing catastrophic failures. Memory leaks everywhere.
>> No. 1516506
File 140840452598.png - (73.01KB , 316x262 , 132559813637.png )
1516506
>>1516502
>memory leaks
Fuck those things. The problem is that when they're a real problem, they're not very obvious. This is why coding in a very object-oriented, segregated manner is key here, so that whenever a new function is added, you can be sure the leak is from there. Or if it took time to find the leak, you can usually find a way to trace it down in a reasonable amount of time.

Usually.
>> No. 1516542
File 140840584953.png - (47.84KB , 273x436 , DJ-+-Cooleo.png )
1516542
>>1516506
>usually...
Yeah.... Memory leaks are bad. I suppose the best way to avoid them is to build good coding habits. Allocate something? write the deallocation where it goes ASAP.

But every once in a while there's the odd code that even advanced coders must look at and go "did I misuse that ownership transition?".
>> No. 1516547
File 140840615708.gif - (13.70KB , 250x232 , ERMAHGERD TANERGENE COKIIE.gif )
1516547
>>1516506
>>1516542

I've actually had Java had bad memory leaks in an enviroment using remoting and reflection. Was a bitch to debug. Eclipse had a few issues hooking to both the server and client virtual machines at the same time.
>> No. 1516552
>>1516502
My favourite C++ problem was indexing off the start of an array due to erroneously decrementing the index too far (not actually my bug, but one I discovered). Nothing could detect the error other than the debug heap, which complained that the allocation had been double-freed. In fact, the allocation header had been corrupted by writing before the start of the array.

>>1516547
Yep, garbage collectors are useful but don't eliminate the possibility of memory leaks. The classic one in C# is leaving event handlers around.

Last edited at Mon, Aug 18th, 2014 17:02

>> No. 1516574
File 140840741184.png - (84.07KB , 512x512 , Tangerine just pooped bricks.png )
1516574
>>1516552

Holy shit that sounds like a nightmare.
>> No. 1516583
File 140840787976.png - (128.11KB , 800x820 , Frickin Adorable Tangy.png )
1516583
Also I think this kind of humor might be appreciated here:

http://devopsreactions.tumblr.com/
http://thecodinglove.com/
>> No. 1516647
File 140841068579.png - (441.01KB , 616x588 , 133027271702.png )
1516647
>>1516583
These are pretty cool, thanks for the links!

http://blog.glaucus.in/wow-javascript-such-good-conventions-much-sense/

This blog article is pretty great too.
>> No. 1516731
File 140841386111.png - (85.52KB , 512x512 , Ey pony-guys, check out this HAMAZING post!.png )
1516731
>>1516647

Adding this classic, too:

https://www.thc.org/root/phun/unmaintain.html
>> No. 1516893
File 140841682658.png - (194.93KB , 512x512 , HorrorOfHorrors.png )
1516893
>>1516583
>>1516647
>>1516731
these are amazing!
>> No. 1517089
File 140842153286.png - (0.98MB , 6286x5333 , dash prepared.png )
1517089
Hello there new serial thread and /p/ad people I haven't talked to in months since /p/ad mysteriously disappeared and I moved to /b/&f, what's up? Javascript ninja reporting in.
>> No. 1517664
File 140845604711.png - (163.08KB , 767x738 , DJ-+-Smile.png )
1517664
>>1517089
Hello, Javascript Ninja! How are you today?

>>1516583
>>1516647
>>1516731
These are hilarious. I loved "Fixing infrastructure deficiencies". It matches perfectly the method I call "duct-tape coding". XD
>> No. 1517895
File 140846720284.png - (766.52KB , 1280x886 , Lyra_535.png )
1517895
>>1516404
That's the joke.



It's a new day at Poneland
>> No. 1518132
File 140848166026.png - (98.67KB , 436x627 , triumphant_spitfire_by_red_pear-d5od0rm.png )
1518132
Hi!

I'm not a huge coder, but I do some program for my research. I use Python and R predominantly, and I also use LaTeX for typesetting papers.
>> No. 1518141
File 140848216413.png - (413.11KB , 1500x1430 , DJ-+-ILikeThatIdea.png )
1518141
>>1518132
Why, hello there!

So your into math, or is that just what you do for work/school?
>> No. 1518146
File 140848257971.jpg - (99.39KB , 900x714 , 135577564075.jpg )
1518146
>>1518141
Hello!

I'm in graduate school. I use Python to write programs for running experiments, and I perform the statistical analysis using R. I'm planning to start learning MATLAB if/when I can get a hold of a licence for it.
>> No. 1518148
File 140848268568.png - (105.38KB , 440x599 , DJ-+-OhHi!.png )
1518148
>>1518146
Oh cool! What do you study?
>> No. 1518160
File 140848309483.png - (228.02KB , 900x1202 , joey_darkmeat__spitfire_sockies_by_zutheskunk-d5dzqba.png )
1518160
>>1518148
Yeah I think so! I study linguistics - the main work I do is looking at how people process aspects of language structure, so it also applies lots of elements of psychology.
>> No. 1518164
File 140848331442.png - (165.76KB , 900x878 , DJ-+-NowThat'sCool.png )
1518164
>>1518160
Awesome!! I speak portuguese too, so I've learned a lot about that from experience.

I would like to talk with you about sometime, but I fear that I do not have the technical vocabulary that you do when it comes to the topic, so I might not communicate well regarding the subject.
>> No. 1518189
File 140848444039.png - (183.17KB , 752x1063 , spitfire_with_shirt_by_baumkuchenpony-d58ocim.png )
1518189
>>1518164
Oh that's cool - some people in our department work on language acquisition. I work more on language processing and psycholinguistics, but it employs a lot of the same information.

I'd like that! I'd be happy to discuss it with you.
>> No. 1518195
File 140848504865.jpg - (602.72KB , 800x1066 , DJ-+-Happy.jpg )
1518195
>>1518189
Oh cool. I think that perhaps the most interesting part of languages is that most of their meaning comes from experience and assumption. Most definitions for words or phrases are never directly taught to the person learning them. They just hear it in context, assume it's definition, and go on using it and redefining the definition as they go through life.

It makes for very interesting debates when it comes to the real definition or meaning of certain points in grammar.

Is there a name for this process?

Last edited at Tue, Aug 19th, 2014 14:51

>> No. 1518234
File 140848656099.png - (392.01KB , 772x1036 , crystal_spitfire_by_theshadowstone-d734zhz.png )
1518234
>>1518195
It's definitely true that the language you produce is not directly taught, and language is infinitely productive, where an infinite amount of novel sentences have the potential to be produced.

How do you mean? Do you mean where people discuss notions of 'correct' usage of language?
>> No. 1518355
>>1518234
I was talking abou how when people are learning a language more than the development of the language, most of the meaning of things is assumed.

For example how people would interpret the meaning of the phrase "Don't go all crazy on me". The meanings of the various parts would be very dependant on interpretation based on experience.

Another simpler example is how, when I was four, I thought that "a couple" meant "a few", not knowing that it really meant just "two". My understanding was based on assumption and experience.

Last edited at Tue, Aug 19th, 2014 16:25

>> No. 1518533
File 140849800474.png - (160.32KB , 794x1006 , spitfire_vector_by_durpy-d48s02u.png )
1518533
>>1518355
Right. What exactly do you mean by 'experience' in this instance? Meaning in language is combinatorial, where the meanings of sentences is produced through the interactions between words governed by syntactic relationships (crudely speaking, word order and word endings). You are right, though, that there are elements going on in that sentence that don't directly appeal to meaning in a combinatorial way, and refer to figurative use, such as 'crazy' and the Prepositional Phrase 'on me'. Linguistics considers one's knowledge of their language to be closely involved with having having the ability to accurately parse sentences and understand their meaning.
>> No. 1519153
File 140853341854.png - (105.38KB , 440x599 , DJ-+-OhHi!.png )
1519153
>>1518533
>What exactly do you mean by 'experience' in this instance?
Well, most of the definitions we learn come from our experience as we grow. It comes from the contexts that we hear the word used in.

For example the word "Fantastic". If you grew up hearing the word only in negative or sarcastic contexts like the following:
>Then he told this fantastic story about elephants.
>This is fantastic. The guy sold me a fake watch!
>Just look at this fantastic car, made of cheap materials.
...then you might assume the definition of "Fantastic" to mean "False, Fictional, A cheap imitation", and when you use it, you'll use it the same way.

You could go a long time without discovering your error because you'll be using it in those contexts and no one will see an issue with it. The issue with it will come when a conflict is seen. You do something cool and someone says, "That was fantastic!" and you get offended because you think they're saying that you faked it.

This happens all the time when learning languages growing up. We assume the definitions of words and the meaning of syntax based on the contexts in which we hear them used, in other words, through experience. No one ever said to us "Fantastic means great." We simply assumed that based on how we heard it used.

This has profound effects on the interpretation of language and how the words come together. It is even responsible for most of the evolution that happens in the usage of words.

One example of something effected commonly by this are the words "thee" and "ye". Most people don't know that "thee" is a formal singular "you", while "ye" is a formal plural "you", as in "you all". People thinking that "ye" means singular "you" comes from either the lack of experience hearing the words "thee" and "ye" in the correct context, or the experience of hearing the words in the incorrect context (something extremely common with those words today).

All of this because of the faulty yet extremely effective method of learning by assumption through experience. I'm not sure if this is studied a lot or even considered in linguistics, but I think it should be because it has massive effects on how we learn, interpret, and use language.

Last edited at Wed, Aug 20th, 2014 04:21

>> No. 1519161
>>1519153
Also, it is very likely that there are words that you and I use incorrectly to this day, but we've never learned that they were incorrect because we've only ever heard or used them in the context that we heard them used in before.

This also applies to syntax, and sentence parsing. On this site here [ell.stackexchange.com], there are people who are learning english, and people helping them out by explaining english to them. In there, you will see multiple, even conflicting, explanations for the very same pieces of grammar posted in the answers. These alternate explanations come because of the assumptive learning process.
>> No. 1519162
File 140853467818.png - (78.62KB , 512x512 , So that's Bitchdancer's special talent!.png )
1519162
>>1519153

>One example of something effected commonly by this are the words "thee" and "ye". Most people don't know that "thee" is a formal singular "you", while "ye" is a formal plural "you", as in "you all". People thinking that "ye" means singular "you" comes from either the lack of experience hearing the words "thee" and "ye" in the correct context, or the experience of hearing the words in the incorrect context (something extremely common with those words today).

I didn't know that, actually.
>> No. 1519169
>>1519162
Hehe, now you do. I only learned that because I learned portuguese, and I discovered in the translations that the formal english terms "Thou" and "Ye" translated respectively to "tu" and "vos".

I also just accidentally used "thee" wrong. "Thee" is the receptive pronoun, "Thou" is the original pronoun.
Ex: "I hurt thee", "Thou hurtest me"

Last edited at Wed, Aug 20th, 2014 04:47

>> No. 1519392
File 140854604006.png - (147.25KB , 1200x724 , Lyra_879.png )
1519392
>> No. 1519894
File 140856883145.jpg - (99.39KB , 900x714 , 135577564075.jpg )
1519894
>>1519153
A lot of what you said is true, and makes up a large section of interest with respect to semantics in language acquisition.

Your example there seems a bit confused, though. Are you supposing that the learner knows or believes that the sentences are sarcastic? If so, the learner may be aware that 'fantastic = fake' is not accurate. Only your middle example resembles 'fantastic' to mean 'fake'; the first and last ones are making different implicatures regarding the meaning of 'fantastic'.

The point you are making is generally accurate though, where speakers may make adjustments to their interpretations of meanings over time. It's worth pointing out, though, that the extent to which this is problematic is shifted largely towards infrequent words. Frequent words are, definitionally, produced more often, which gives speakers more opportunities to understand the meaning(s) of words.

I'm not exactly sure about what you mean by a 'faulty' system of acquisition, though.

There is a lot to be said about the fine-grained differences between similar words, though. For example, on the Stack Exchange page you linked, the top thread is about the difference between 'remote' and 'distant'. Crucially, it is not imperative for a speaker to be able to produce the an accurate isolated definition of the word, but you have an understanding of how it works. This, interestingly, is what makes Machine Translation an interesting topic - translation systems make use of both dictionary definitions and n-gram information from corpuses to attempt to understand the meanings of words. However, for infrequent words, it may be difficult for a translation program to find enough instances of usage to translate in a way that native speakers would find natural. Hence, you could end up with the occasional instance of translation saying something to the effect of 'a distant part of the woods' instead of 'remote'.

Your points about syntax are perhaps more questionable though. Much of what one may believe about the acquisition of syntax depends largely on your own theoretical interpretations of syntactic theory and developmental psychology. Regardless, it's pretty safe to say that you have no conscious access to the syntactic knowledge of your language - some authors, such as Michael Ullman, have argued that morphosyntactic knowledge of one's native or proficient language is represented as unconscious procedural knowledge. It is much harder for people to reflect on their grammatical knowledge, since it is not available for conscious access in the same way that other parts of language might (including words and lexical information, to some extent). One of the goals of syntactic theory is to understand what the structure of syntax and, more generally, syntactic knowledge looks like. Whilst one can argue that syntactic acquisition is 'assumptive', I would make the argument that it is assumptive in a way that is categorically different from the way you mean it in terms of lexical semantic acquisition. The process of language acquisition is very controversial, however, and there are numerous different theories as to how children acquire language - how adults acquire language is a completely different beast, and far less is known about it.
>> No. 1520018
File 140857597431.png - (101.10KB , 503x600 , DJ-+-Milkshake.png )
1520018
>>1519894
>how adults acquire language is a completely different beast, and far less is known about it.
This is very true. You make good points about the learning of vocabulary and syntax, and as you have pointed out, these issues tend to apply more to the rare use instances of vocabulary and syntax.

As for how an adult learns, that is very different indeed, as it is mostly no longer assumptive as it once was. A logical application of learning tools becomes of great assistance, especially when searching for the terms that one will use more frequently (example: a business man will search more for business terms and navigation, while a christian missionary might search out more doctrinally related vocabulary)

>Are you supposing that the learner knows or believes that the sentences are sarcastic?
No, I'm assuming the learner is doing just that, learning.

> the first and last ones are making different implicatures regarding the meaning of 'fantastic'.
They are, but the definition of fake or false would still fit should the learner assume that definition.

>'faulty' system of acquisition
I mean that no one will learn a language "perfectly" even if they are a native. There will always be one or more things that they misuse unintentionally.

This is a fun discussion. :)

>>1519392
Hey Ly! What are you up to?
>> No. 1524342
File 140880327020.png - (172.37KB , 500x500 , 140726817346.png )
1524342
PyQt4 is so much easier to work with! I rewrote all the editor's code into it. Things are moving along much faster now, thanks again for the recommendation!
>> No. 1524354
File 140880389131.png - (258.14KB , 654x957 , DJ-+-BlushOhYeah.png )
1524354
>>1524342
Nice! I love UI designers. It's so much better than using a markup language, or coding them manually.

XCode has a built in tool like that (though it's not as smooth as it could be when it comes to dynamic interface sizes). But oh well, that's why there're updates.
>> No. 1524390
File 140880579668.png - (197.26KB , 364x356 , 132904438645.png )
1524390
>>1524354
Nah, I'm not using Qt Designer. Well, I'm only using it to compile icons and whatnot since that appears to be practically the only way. But coding-wise it's hilariously simple to do what I need with this!
>> No. 1527543
>>1524354
i heard ui desginers; ; are you looking for one?
>> No. 1527544
File 140901764314.jpg - (73.18KB , 512x512 , OutFancyYourFancy.jpg )
1527544
is ui designers really that far removed from the backend code? I've always had to do both.
>> No. 1528065
File 140907997136.gif - (20.50KB , 106x96 , DJ-+-Walk(anim).gif )
1528065
>>1527543
>>1527544
Well, a UI designer is a visual way of producing a UI. You organize the images, buttons, text boxes, etc. and the software writes the UI code for you. It's like those website designers that you don't need to know code to use. It creates the HTML code from what you design.

They are quite useful.
>> No. 1528257
>>1515896
A while but not as often as I like.
C++ and HTML

Sorry if I take a long time to reply to anything. I miss being here on this site and am cutting things out of my day to be here as often as I can.
>> No. 1528298
File 140910207880.jpg - (84.11KB , 379x847 , you-bought-the-wrong-bodywash-motherfucker.jpg )
1528298
>>1527544
Well front-end designin is very much isolated from back-end designing, so that being said, UI designing is largely a front-end thing with the exception of doing ajax requests.
>> No. 1528419
File 140910550798.png - (251.34KB , 512x512 , ThisHereBeAPirateInfestation.png )
1528419
>>1528065
>>1528298
oh that kind of designing. anything I wrote, I'd also have to write the UI for, so wasn't completely aware it was it's own job.
>> No. 1528495
File 140911101994.png - (1.15MB , 1920x1080 , rd-sweet-hug.png )
1528495
>>1528419
Yep. UX, or user-experience design, is fully front-end related though.
>> No. 1528564
File 140911416078.png - (172.37KB , 500x500 , 140726817346.png )
1528564
>>1528495
Yup, exactly. I love my UX designers, even if most of them make terrible algorithms with my template engine that force me to rewrite it. And all the ones in my personal projects don't even know how to use any template engine let alone a custom one.

I don't care though since I love them anyway. I get giddy every time they send me a PSD with a kickass new design.
>> No. 1528993
File 140916503962.png - (27.31KB , 700x700 , Lyra_304.png )
1528993
Exceptions or if-else-into-infinity?
>> No. 1529226
File 140917519678.png - (618.85KB , 1000x1000 , 140726815186.png )
1529226
>>1528993
Exceptions, of course.
>> No. 1529233
File 140917620502.png - (18.67KB , 208x123 , spoiler.png )
1529233
>>1528065
i meant...
nevermind, this it's a coders thread, i need way more time before i can jump into that ; ;
>> No. 1529249
File 140917860693.jpg - (28.99KB , 300x384 , good-luck.jpg )
1529249
>>1529233
It's no big deal really. Unless I'm missing something, it appears you were on the right track only to misinterpret the context of the term "designer" for a visual editor.
>> No. 1529250
File 140917868512.jpg - (38.00KB , 245x303 , DJ-+-simpleSmile.jpg )
1529250
>>1528257
Welcome! Anytime you can post is fine :)

>>1528564
>>1528495
>>1528419
I love doing UX/UI design. As much as I love coding, nothing is as satisfying as making a beautiful design and seeing it come to life with code. It took me a while to design the look I wanted for my site [wallballpro.com], but I got it to look pretty good. It's still a WIP because I'm working on other games, but I think the concept came out well.

>>1528993
I'm not much to work with exceptions because I like to keep my code simple and direct enough that it doesn't need to depend on possibly non-existant variables, and other error prone coding conventions. I would only use exceptions for things outside my direct control such as communication with a server or client, and other things that depend on sketchy variables like internet connectivity.
>> No. 1529253
File 140917892788.png - (156.27KB , 985x812 , 134487943574.png )
1529253
>>1529250
The thing about exceptions though is that you can throw your own. It's not just about technical errors, you can throw anything, and at the same time, at the highest level block you can just catch the rest, making it very, very, very smooth and maintain DRY standards.
>> No. 1529259
File 140917930152.png - (31.57KB , 945x945 , DJ-,,,-Shrug.png )
1529259
>>1529253
Yeah, but most of the time, I don't expect my code to have anything in it that would require that. Being that I'm mostly self taught, I've come up with my own standards and protocols that work pretty well with the languages I use without having to refer to the more complex capabilities of the language.

But you do have a good point. It is smoother, it's just a little more that needs to be understood and organized for code reading.
>> No. 1529384
File 140918673831.png - (148.24KB , 2560x1436 , aaaa.png )
1529384
>>1529249
then you say that someone that makes assets for UIs isn't an designer? ; ; ok
>> No. 1529400
on second tought, i'll aways be chained to coders wishes, don't i? i tought it was an cooperative thing ; ;
>> No. 1529413
File 140918810442.png - (31.57KB , 945x945 , DJ-,,,-Shrug.png )
1529413
>>1529384
>>1529400
Well, you can design the interface, and tell coders what you want it to do if you have an idea. I have a friend that did that and now owns a 7 million user social network. He just designed it, and told a few coders what he wanted it to do.
>> No. 1529429
File 140919080851.png - (127.32KB , 1923x1084 , spoiler.png )
1529429
>>1529413
u srs about the 7mil page?
well, i do have some ideas, but i doubt people would want to work with them
>> No. 1529961
File 140923137414.png - (75.94KB , 352x450 , DJ-+-Crown2.png )
1529961
>>1529429
Totally serious.

Dude, that looks kinda like a Super Smash Bros menu. :D
>> No. 1530513
>>1529961
>sonic 2006
>> No. 1531221
File 140932776546.png - (448.24KB , 600x700 , 131415696975.png )
1531221
>>1515896
Anyone here have any experience in Visual Basic? I'm taking a class on it and everything is going right over my head.
>> No. 1532643
File 140938148969.png - (360.49KB , 500x650 , 140727293387.png )
1532643
>>1531221
I can't say I ever coded in VB, but... it's VB. I should be able to with just looking at a block. What's the matter?
>> No. 1532763
File 140939778448.png - (83.63KB , 366x390 , Derperine Cookie.png )
1532763
>>1531221
>>1532643

I have none. Visual Basic was kind of taboo when I was studying.
>> No. 1532782
File 140939850940.png - (227.33KB , 900x885 , Lyra_518.png )
1532782
Using libraries to read/process config files or going with your own implementation?
>> No. 1532785
File 140939859772.gif - (13.70KB , 250x232 , ERMAHGERD TANERGENE COKIIE.gif )
1532785
>>1532782

Depends on the context of the project, I'd say.
>> No. 1532788
File 140939864503.png - (40.23KB , 390x341 , Lyra_381.png )
1532788
>>1532785
Eh, fair enough.

What's up?
>> No. 1532803
File 140939936576.png - (86.98KB , 512x512 , Tangerine Computer Yay.png )
1532803
>>1532788

Not much! I woke up like an hour ago and remembered this thread was a thing!
>> No. 1533304
File 140942267845.png - (160.01KB , 900x836 , DJ-+-DanceReady.png )
1533304
>>1531221
Can't really say I have. I just know that some of the things it does are very strange, for example the boolean value true is equal to -1... that's weird.

Sorry I couldn't help.

>>1532782
My own, though if it is something a little more complex, I'll go with the library package. I always like working with the things that I wrote because I understand exactly what it does and why.
>> No. 1534171
File 140949607341.png - (285.91KB , 600x800 , 131559332178.png )
1534171
>>1532643
I have a class on it and everything is going right over my head. I don't understand any of it. I don't have a lick of sense when it comes to understanding coding or programming and no website is really all too helpful.

I had a class last semester on the basics of programming and I -really- tried my hardest to learn just the super basics but I had to resort to cheating or else I would have made an F and gotten yelled at.

Last edited at Sun, Aug 31st, 2014 07:44

>> No. 1534177
File 140949648874.png - (23.39KB , 743x529 , killme.png )
1534177
>>1534171
Programming is logic. Give the middle finger to anyone who tells you it's about math, because at your level it's not, so as long as you have a brain you'll eventually understand, so don't sweat it.

Your statements all come down to a knowledge of the limitations of your langauge's inherent programming logic, and your knowledge is limited to how many books you've read on the subject, or in the modern era, how many times have you searched a question about it. Chances are, if you don't know how to do something, if you describe it in a search query and include the language you're going to find someone with the same "silly" question as you.

Are you having issues with the basics? Like what is a statement, expression, etc? Or something less fundamental, such understanding how statements work or the language itself?
>> No. 1534193
File 140949721226.png - (265.64KB , 600x695 , 131586523591.png )
1534193
>>1534177
I'm having trouble understanding from the very beginning. Like, is a statement the super fundamental basics? What is that and what does it do?
>> No. 1534195
File 140949815255.png - (35.00KB , 928x611 , and so in programmerland, trial and error is breakfast, lunch and dinner.png )
1534195
>>1534193
Concern yourself with only these two names for now. As far as you're concerned, they're the only types.

A statement can be seen as a command.

An expression can be seen as a calculation.

There are, of course, certain mixtures, but concern yourself right now with them as standalones. I will not name these different types as they really only confuse things. You're going to have to understand though that just because A = B is a statement in one language, does not mean it is necessarily a pure statement in another.

For example, generally considered a statement:
print 'hello world'

And a generally considered expression:
A + B

The first prints 'hello world' to the screen, and the second calculates something. An expression is usually a set of programming directives that return something. You input A, input B, and C is returned. In mathematics, this would just be 1 + 2 = 3. In programming, however, consider the following:

data = ReturnMinusOne(5) // returns 4

On one hand, you just calculated something, but on the other hand this is an assignment, which is generally considered a statement. This combination forms what is known as an expression statement, which frankly most lines are. The usage of the words 'expression' and 'statement' are nearly purely for theoretical debate, and you will find little use of them as presented while coding.

If you could help me out here and tell me what is it that they tried to teach you and that you didn't understand, I could perhaps be of more help!

Last edited at Sun, Aug 31st, 2014 08:16

>> No. 1534197
File 140949840176.png - (757.33KB , 873x900 , 54735 - artist-crookedtrees blood maid pinkamena_diane_pie plot.png )
1534197
>>1534195
>If you could help me out here and tell me what is it that they tried to teach you and that you didn't understand


Like, what does this mean?

data = ReturnMinusOne(5) // returns 4

What do all the different parts of that mean and do?
>> No. 1534238
File 140950119818.png - (50.95KB , 200x200 , 140726800873.png )
1534238
>>1534197
Okay, so that line is composed of two words and what is known as an "operator."

The first, "data", is a name of a variable. It is an arbitrary name that is only slightly limited - languages have "keywords", so many of those keywords are forbidden to use by user-named items.

The = sign is known as an assignment operator. It takes the expression on the right and copies it to the object on the left.

Finally, ReturnMinusOne(5) is a hypothetical function call. and each language defines its functions differently. What you can know about it is its name and that it takes one argument. Arguments are data that is passed to the function to be used, take for example this function in PHP:

function ReturnMinusOne($num)
{
     return $num - 1;
}

Or say, Python:

def ReturnMinusOne(num):
     return num - 1

num here is a nickname for the first argument passed to the function. Theoretically you could have five, twenty, or a hundred arguments. You can call functions in most languages by writing their name, and in brackets typing their arguments (if any).

So, for example I want to take your name, Chocolate-Mint Swirl, and get how many characters are in it.

Function GetLength(ByVal name As String) As Integer
     Dim count As Integer = 0
     For Each c As Char In name
          count += 1
     Next
     Return count
End Function

This might seem complicated, but if you look closely it isn't, actually most of it is just something I didn't get into, which is types.

Every piece of data has some kind of type. For example, your name, "Chocolate-Mint Swirl", is a string. What is a string? As it implies, it is literally a string of the type char. Just char, char, char, char, together, which forms this new type.

But what is a char? A char is any single character. C, h, o, c, o, etc, each is a char. However note that it can also be many others, such as a digit.

Now an integer is a whole number. Say, 1935, that would be an integer. It could also be a -1935, but never 1935.3, or 1935.9 or 1935.0. That would be a float.

So now that we have types out of the way, let's see the function:

Let's look at the first line:
Function GetLength(ByVal name As String) As Integer


The first word, 'Function', is a keyword. It means that the next word is going to be the name of the function.

'GetLength' is the function name, and must be immediately succeeded by (), following 'As (Type)'.

'As (Type)', say, 'As Integer', or 'As String', it means that this function returns a variable of that type. It is necessary in many languages to declare what type does a function return, what type does a variable hold, etc.

Dim count As Integer = 0


Now, 'Dim' is another keyword, consider it like 'function' except it declares a variable. A variable, as you may remember, is just a container for some data. So the variable count is declared by dim As an Integer that is assigned 0.


For Each c As Char In name
     count += 1
Next


Now this is an interesting block. This is called a loop - what it does is repeat itself over and over until a certain condition is meant. This one is known as a for each loop, and it will repeat over a container until it went over everything.

The first word, 'For Each' is the key word here that declares the start of a for each loop. The next part,c As Char is a temporary variable containing a single character, and I'll get to it in a bit. In is another keyword, which means the next word (name) is the variable you want to loop over.

So, since a string is composed of many chars, we can loop over each individual char! Cool right? Each time a variable loops over itself, it is known as an iteration. Each iteration of the for each loop assigns (=) the next char in Name as the new C. So, if we have this for example:

For Each c As Char In 'HELLO'
count += 1
Next

It is really just:

Dim c As Char = 'H'
count += 1
Dim c As Char = 'E'
count += 1
Dim c as Char = 'L'
count += 1
Dim c as Char = 'L'
count += 1
Dim c as Char = 'O'

That's really it! You'll note that we don't actually do anything in 'c'. It's simply a requirement of the for each loop to assign it to something, but in this case we don't really care about it.

You end the For Each loop with the key word 'Next', and finally tell the program that the end of the function is here with the key word 'End Function'

Questions?
>> No. 1534247
File 140950154481.png - (358.09KB , 800x800 , 140727357090.png )
1534247
Oh and sorry, I forgot to explain the argument in the function.

ByVal name As String


the ByVal keyword is similar to Dim, that it declares a container. However, ByVal is special in that it doesn't declare a variable - that is to say, a container that changes - but rather a constant. It means that, once assigned, you cannot change the contents. 'name' here will forever be 'Chocolate-Mint Swirl', or at least, 'forever' being until the end of the function.

Why? Since at the end of the function, each container - name, count, c - are all destroyed, deleted from memory. When the function is called once more, name, count and so on are all new containers, even if they have the same name.

Last edited at Sun, Aug 31st, 2014 09:14

>> No. 1534257
File 140950183435.png - (174.23KB , 600x680 , 131454903686.png )
1534257
>>1534238
I don't think I comprehend enough to be able to ask any questions about that post...
>> No. 1534261
File 140950201895.png - (330.12KB , 650x650 , 140727310921.png )
1534261
>>1534257
Unsurprising since you responded so fast. Take it slowly and try to digest the information slowly. The first few steps in programming are always the hardest. You don't want to know how many months did I procrastinate finishing my first programming book and getting into programming because it was so confusing.

Just only focus on what's on the table. Don't pester yourself with complications like how would I make this file or run it or how does it work or how exactly do I call it or whatever. Forget about that stuff. First by step. The first one is that you understand what is contained in the function, i.e., "does it make sense?"
>> No. 1534266
File 140950222311.png - (132.61KB , 248x334 , 140727939993.png )
1534266
>>1534261
Just remember that you aren't expected to write a completely different function after seeing only this, even if it relies on the same principles. You only really understand it enough to be truly innovative about it after you see a hundred functions. The core idea in my example isn't to teach you programming in 30 minutes, which is impossible, but to teach you the principles. In practice, you will learn how to apply them, and so you will remember them better, but the idea is that you can see that it makes sense tonight, you will sleep on it, ponder it the next day, and when you get to class you'll look for similarities and you will be one function closer to grasping the subject!
>> No. 1534271
File 140950250522.png - (429.72KB , 596x699 , 132164481028.png )
1534271
>>1534266
How do you get interested and motivated in focusing so much on programming?
>> No. 1534281
File 140950288520.png - (366.81KB , 650x800 , 140726768224.png )
1534281
>>1534271
It actually started as a bluff. A programmer gains full server access and disclosure rights, so I was always envious of them in the various gaming communities and the like I was in. So one day I was asked if I knew how to program - I was trying to get into JavaScript at the time without effort - but I bluffed and said yes, talked very abstractly about some concepts I only knew 1/6th.

Fast forward two months, I am asked to help make some feature. I can't say I can't because I was pretty sure it was simple, and even if it wasn't, I didn't want to come off as a novice, so I immediately ran back to my book and poured over it for two weeks until I somehow managed to scrape together the feature with some help from the internet.

Passed the delay off as me being busy. Asked for another feature, I made that too after a week or so, and then all of a sudden I'm asked to be the official programmer. I'm like, "Oh my god what am I getting myself into" and luckily they didn't see it in my face. I said sure, was forced to learn C++ and PHP, I started having fun at my spare time making personal scripts like crawlers and bots, then my own applications, and barely three years later before I know it my career becomes programming!
>> No. 1534287
File 140950308010.png - (591.52KB , 1200x1000 , 93jzqi6yirr4.png )
1534287
>>1534281
> "Oh my god what am I getting myself into"
My entire college schooling can be summed up by that sentence.
>> No. 1534292
File 140950334047.png - (76.97KB , 250x250 , 140726812206.png )
1534292
>>1534271
So in short, I mean, with enough passion for grades you can learn how to program Visual Basic, but if you truly want to know how to program, you need to be passionate about something else too, or you'll come out of the university not knowing how to make even a fizzbuzz, which apparently most programming applicants out of college can't do.

>>1534287
Just be passionate about something I guess. Offer to your friends to make something for them to make their life easier. If you have much use for stuff like Excel which can incorporate Visual Basic, you can be passionate there too. I'd say it's just a matter of being passionate about making something out of it. Without the Force passion, life programming cannot exist.

I don't say this to demotivate you, but to actually motivate you to find something to be passionate about, so that this time in college will not be wasted!
>> No. 1534304
File 140950399540.jpg - (42.49KB , 400x400 , tumblr_mc169vMk1v1reol70o2_400.jpg )
1534304
>>1534292
>with enough passion for grades you can learn how to program Visual Basic

Good enough for me, if I at least get some sort of degree I won't be a total loser for life, right? ...right?
>> No. 1534307
File 140950421140.png - (372.71KB , 900x800 , 140726833579.png )
1534307
>>1534304
Hey, don't be like that. Despite what those hooded prehistoric-thinkers say, pride, envy and ambition are your best tools to being the best you can be.
>> No. 1535717
File 140958415128.png - (320.69KB , 567x935 , 137077969012.png )
1535717
>>1534307
Well, are there any cheats or work-arounds to learn coding easier?
>> No. 1535720
File 140958433012.png - (555.95KB , 900x900 , 140726836392.png )
1535720
>>1535717
I'm afraid the only thing you can do is Google a lot. Most questions of how to do X or what is Y can just be Googled, and usually StackOverflow has most of the detailed answers on the matter, and those answers are often much less "technotalk" than documentation.
>> No. 1535731
File 140958503497.jpg - (284.51KB , 1000x1000 , 1350566238446.jpg )
1535731
>>1535720
I have the textbook but it never explains things in detail and is basically just "This here is a thing and it does stuff." So I might as well drop the class and write it off as a waste of money. So let's hope Systems Analysis goes better.
>> No. 1535754
File 140958909745.png - (350.44KB , 700x700 , 140726789866.png )
1535754
>>1535731
Let me help you, what's it talking about that you don't understand?
>> No. 1536557
File 140965050163.png - (8.35KB , 1040x296 , leak.png )
1536557
SUPER secret concept art for part of a page in a highly classified project I'm in LEAKED get it while IT'S HOT
>> No. 1536777
File 140967382174.jpg - (38.00KB , 245x303 , DJ-+-simpleSmile.jpg )
1536777
>>1534281
Lol, that's how it starts. The "Oh crap they expect me to actually do this! Quick! Learning teim!!" moments. ;P

>>1534271
Get excited about the things it can do! One of the things that motivated me was when I was walkin' through my house thinking "I wish I had an app that could do x." My next thought was "Oh wait, why don't I just program one?"

I knew only a little bit about iOS programming, but I jumped in and within a week I had a very useful utility app (thanks mostly to internet folk).

Find something you want and try to make it. You'll find that creating things is much more fun than it looks.

>>1535717
Not really. Coding is simple if you look at it right.

If you know what a variable is, and what a function is, you've got most of programming down already. The rest is learning to interact with these functions and variables. Like "How do I make this equal to that?"
this = that;
Aha!

Start with the basics and build up from there.

>>1535731
Nah, don't give up. You got this. Just because the book is bad at teaching doesn't mean you can't learn. We can help if you need it.
>> No. 1536890
File 140968469095.gif - (87.38KB , 643x504 , fwip.gif )
1536890
Tempted to get back into Android coding. Should probably update those live wallpapers I made back in the day.

Does anyone have any experience with the newfangled Android Studio Beta Google is pushing so much lately? Is it as useable than Eclipse with ADT right now?
>> No. 1536907
File 140968509596.png - (638.48KB , 1080x1080 , 140726827948.png )
1536907
>>1536890
Not a clue. Sorry!
>> No. 1537323
File 140970552470.png - (66.52KB , 512x512 , SmileSmileSmile.png )
1537323
>>1536890
is android a pain? I have thought of looking into it.
>> No. 1539945
File 140994836862.png - (83.44KB , 813x797 , DJ-,,,-I'm Thinking.png )
1539945
>>1536890
I've tried android programming before, but I didn't get too far with it.

The variable screen size kills me as a programmer. It's truly a horrible thing to experience. Though, if you manage it, all the better for ya.

So... yeah, no, I dunno.
>> No. 1560151
File 141139304945.jpg - (13.04KB , 360x305 , twilight_smile.jpg )
1560151
I've coded for about 10 years. I prefer C, but I also use Python, Korn Shell, and Go.

I like writing statically-linked Linux programs.
>> No. 1562289
File 141150302331.png - (106.39KB , 596x504 , DJ-+-ISeeWhatYouDid.png )
1562289
>>1560151
You write linux programs? That's awesome. What tools do you use?
>> No. 1563291
>>1560151
How are you liking Go so far?
>> No. 1563306
File 141157502812.png - (153.72KB , 500x500 , twilight_happy2.png )
1563306
>>1562289
I use gcc and plain makefiles since I only target one platform. Windows-specific code gets its own file wrapped in
#ifdef WIN32
.

Last edited at Wed, Sep 24th, 2014 09:10

>> No. 1563327
File 141157572330.png - (98.27KB , 326x321 , twilight_grin2.png )
1563327
>>1563291
I love Go. I once tried writing a Ponyville exploration game, with text-based graphics like Angband. Within a week, the game was finished. Its source code was very small, too.
>> No. 1564281
File 141161688090.png - (184.19KB , 512x512 , Guardian.png )
1564281
>>1563327
That does sound like fun. I need to get some time to give the language a try, but there is a lot on my plate at the moment. Do you have any suggestions on where to start with the language or just read the documentation?
>> No. 1564374
File 141161862943.png - (163.76KB , 447x484 , 88.png )
1564374
>>1535731
I have a lot of experience with Visual Basic! I would be happy to help you out whenever you need it.
>> No. 1564742
File 141164919339.png - (170.63KB , 894x894 , twilight_starswirl.png )
1564742
>>1564281
I recommend playing the tour and browsing the package list:
http://tour.golang.org/
http://golang.org/pkg/
>> No. 1564800
File 141165185087.png - (137.51KB , 372x365 , my faggot dog.png )
1564800
>>1560151
>>1563327
>>1564742
>Go
My
fuckin'
nigga

I'm actually working on my own imageboard server entirely written in Go
http://gochan.lunachan.net/

It can act as a standalone server, use nginx as a proxy so you can host other stuff, or it can be set to use FastCGI instead of being standalone
>> No. 1564802
>>1515896
are there any decent places to learn how to code on the internet?
>> No. 1564805
File 141165404680.png - (76.64KB , 249x349 , 76.png )
1564805
>>1564802
That depends on the language, which one are you planning on learning?
>> No. 1564809
File 141165698931.png - (260.85KB , 945x945 , DJ-+-BassIndeed.png )
1564809
>>1564802
See this: >>1564805

Also, the language you choose depends on what you want to program for.

Examples:
Web programing: HTML, CSS, Javascript, PHP, etc.
Computer applications: Java, C, C++, C#, Objective-C, Swift
Android: Java
iOS: Objective-C, C, C++, C#, Swift
etc. etc. etc.

There are also perl, python, Go, visual BASIC, and others.

Last edited at Thu, Sep 25th, 2014 07:56

>> No. 1565870
File 141171261684.jpg - (17.99KB , 500x355 , IMG951272.jpg )
1565870
>>1564802
If you've ever used IRC, I don't know if it'll be any help, but I started and stopped and restarted trying to learn how to program until I came across an IRC bot while I was starting to mess with IRC. I got my start programming writing plugins for it. It's also how I met Lunachan's sysadmin, a really good friend of mine now

>>1564809
>There are also perl, python, Go, visual BASIC, and others.
Assembly :3

Last edited at Thu, Sep 25th, 2014 23:24

>> No. 1565879
>>1564809
Which language is best language?
What are the benefits to each?
>>1565870
So you programmed an IRC bot?
How do you do that?
I'm really really nooby at this stuff.
>> No. 1565890
>>1565879
If you want to learn a language, learn C. It's easy to learn and does just about everything though might require some setup. If you don't want to go through that, I'd probably suggest python, it's also easy to learn but has a little bit of everything if you stick with it. Just get yourself a python IDE like pyDev or IDLE (if you're feeling adventurous) and then run through some tutorials (or find a tutorial that suggests an IDE).
>> No. 1565909
Just saw this thread on my way to Story! Tomorrow, I'm starting an online college class on video game design. C++ is the language I'm going to be learning.

So tomorrow will be day one.
>> No. 1565960
File 141173557075.png - (1.52MB , 1920x1080 , twilight_thinking.png )
1565960
>>1565879
I suggest starting with either Go or Scheme.
>> No. 1566013
File 141174490443.png - (218.47KB , 623x539 , 58.png )
1566013
>>1565879
If you do not mind walled gardens, I would suggest taking up .NET languages. The walls are coming down in a year anyways.
>> No. 1566340
>>1566013
>> No. 1566343
>The walls are coming down in a year
What do you mean?
>> No. 1566910
>>1565870
That too, but I wouldn't recommen it to a beginning programmer ;P

>>1565879
Well, some languages are simple markup (HTML,CSS) which basically means it draws the interface. Some languages are linear (C, PHP, etc) which means they work one line after another and the code is organized mostly with functions and different types of arrays. Some are object oriented (Java, Objective-C, etc) which mean that code is organized into collections of functions and variables called Objects.

There are many different features, conventions, and libraries that come along with each language.

The only way to really decide what you want is to try to learn each one and see which ones work with the way you think.
>> No. 1566915
>>1566910
Why not? Once upon a time almost all coders started out with Assembly, and most languages are built upon it. You don't have to use it, you just pop the hood open and take a look at how the heart of the machine beats. Its like learning the proof for integration before learning the shortcuts.
>> No. 1567048
File 141179377071.png - (341.67KB , 780x720 , SbSm4.png )
1567048
>>1566915
Because knowing how to write Assembly code is not the same as knowing how to understand code.

In programming concepts are what matters most, if you learn the concepts in their truest form you can have a better understanding of all languages. This is the thought of many computer scientists at least, they say that Lisp is the greatest language for that, because of its purity.
Not necessarily that it is the best to program in, but that once you have it figured out you will truly understand the concepts and be able to bring them to any other language.

With Assembly there is a steep learning curve and a ton of writing to do to make anything moderately complex, starting out in a language that can introduce concepts to you instead of forcing you to learn exact implementation is faster.

>>1566343
Lots of neat things are coming to .NET in the coming year is what I mean, it is self-hosting now.
>> No. 1567049
>>1565879
By IRC bot, I mean a bot that connects to an IRC server and channel. I wrote/studied plugins for it, which were written in Javascript
>> No. 1567051
File 141179386562.png - (218.42KB , 685x479 , 15wf3.png )
1567051
>>1567048
Was it not before? I'm not sure I follow
>> No. 1567063
File 141179424136.png - (102.42KB , 288x352 , SbSm33.png )
1567063
>>1567049
So you used Node?
Did you use a library or manual socket control?

>>1567051
No, like most languages, .NET was bootstrapped by another (C++) and over time (though they were still implementing features at a rapid enough pace) it became more than trivial to add new content due to the complexity that C++ brings. Because of this they started writing a .NET compiler in C# codenamed Roslyn, it is available now as a CTP that you can integrate into Visual Studio.
This is great because it allows for rapid development of features again without the added complexity of being written in another language.
It is also open-source and you can read it line-for-line on their codeplex site, and I think Github if they have migrated it there as well. Which is great because this means that we are one step closer to becoming a multi-platform community without a third party framework (Xamarin, etc.)
>> No. 1567086
File 141179522216.png - (227.79KB , 351x474 , 140422591627.png )
1567086
>>1567063
I used PIRCBot, a framework written in JavaScript, using Mozilla Rhino to run everything.
Oh I see! I didn't know that they had still been using a C++ compiler, I thought they had already developed something like Roslyn a while ago
>> No. 1567090
File 141179536551.png - (276.89KB , 442x454 , SbSm13.png )
1567090
>>1567086
Did you read its source code first or do you like to run with libraries to finish your project?
I can never bring myself to use a library without reading every line. Which made using https://github.com/FlorianRappl/AngleSharp a long process.
>> No. 1567093
>>1567090
Oh no this was when I first started learning to program, trying to read about Rhino's innards would have been too daunting. I did go over and read through Pircbot's documentation on occasion
>> No. 1567097
File 141179571377.png - (54.64KB , 165x262 , SbSm7.png )
1567097
>>1567093
Have you ever just used Telnet to manually control connections and write data to servers?
>> No. 1567098
File 141179575973.jpg - (22.39KB , 150x133 , 1401854721979.jpg )
1567098
>>1567097
I can't say I have
>> No. 1567103
File 141179591885.png - (110.18KB , 245x285 , SbSm1.png )
1567103
>>1567098
It is fun to do from time to time. You can find weird bugs in servers that way.
>> No. 1567105
File 141179613599.png - (172.22KB , 304x793 , RinAppalled.png )
1567105
>>1567103
So by data you mean just random junk? Can you just have your client spew random junk at a server and see what it does?
>> No. 1567113
File 141179649968.png - (243.42KB , 501x552 , ♥.png )
1567113
>>1567105
No, you just get to see where the coders skipped out on things. Halfway completing their implementations of clients but still using them.
Sometimes this does nothing, but sometimes you get to hide in plain sight and gain certain powers over even the admins. That is particularly rare, but it does happen.
>> No. 1567114
File 141179663771.png - (88.45KB , 550x375 , computer on fire.png )
1567114
>>1567113
Oh, I see. Speaking of telnet, I think you may be interested in this [livingcomputermuseum.com]
>> No. 1567118
File 141179684805.png - (60.00KB , 225x233 , 68.png )
1567118
>>1567114
I am not sure that I understand, is it just logging into an old terminal?
>> No. 1567120
File 141179693475.jpg - (54.55KB , 282x527 , 6.jpg )
1567120
>>1567118
Telnet login access to three old 70s era mainframes
>> No. 1567126
File 141179730075.png - (66.48KB , 194x324 , 67.png )
1567126
>>1567120
That seems neat, but I am not sure what I would do with it.
>> No. 1567127
File 141179744070.png - (162.42KB , 550x900 , spilled milk.png )
1567127
>>1567126
Tinker around with? I dunno, I just think it's really cool to be able to login to a mainframe that was built many (figuratively speaking) years before me. Some of them have a C compiler, BASIC, Pascal, and some other goodies.
>> No. 1567130
File 141179778532.png - (83.12KB , 290x360 , SbSm3.png )
1567130
>>1567127
I suppose it already handles forkbombs.
>> No. 1567133
File 141179803816.png - (250.30KB , 800x600 , 3.png )
1567133
>>1567130
As old as they are, that would be pretty crucial
>> No. 1586359
File 141295668786.jpg - (38.00KB , 245x303 , DJ-+-simpleSmile.jpg )
1586359
Anyone here work with JSON? Know any good places to learn to get comfortable with it?
>> No. 1590502
File 141315962787.png - (75.16KB , 278x267 , 20.png )
1590502
>>1586359
Sorry, really late response. Yes I have worked in a few languages with JSON, it is really fun. Which language are you using?
>> No. 1592167
File 141324559665.jpg - (38.37KB , 245x303 , DJ-,,,-watching.jpg )
1592167
>>1590502
Java. Anything about JSON change there?
>> No. 1592225
File 141324828471.png - (218.47KB , 623x539 , 58.png )
1592225
>>1592167
I have not run tests on the speed or efficacy of Java libraries on serialization, but the standard I believe is JSONP for backends.

I am not sure how it handles generic data though, when in .NET I have used JSON.Net which has excellent generic support with dynamic variables.
>> No. 1595124
File 141341798716.jpg - (51.39KB , 656x337 , YOmDuDV.jpg )
1595124
>> No. 1596244
File 141350520461.png - (326.76KB , 480x331 , 00-AAAAA.png )
1596244
>>1595124
>mia faccia quando
>> No. 1597281
>>1515896

Anyone around...? I'm starting my class on C++ and I could use some help with a few things to understand this all better.
>> No. 1597998
File 141359730024.png - (114.58KB , 417x536 , Sweetie Cute.png )
1597998
>>1597281
Is it beginner level? I do not know C++, but the syntax is not difficult for me to study and pickup on a need-to-know basis.

I am a bit late because I have been rather sick all day, but if you would like some help we could learn together.
>> No. 1597999
>>1597998

Sounds good. ^_^ Let me see if I can grab something.
>> No. 1598004
>>1597999

Okay. this is the most basic of all, and the only exercise I couldn't get in my textbook. I got 9/10 on my first quiz, which is good, but I want to make sure I have it down. You're supposed to fix the errors.

I can start with what I can fix at first...


#include <iostream> #include <string> int mian() { string str = "Hello World!" cout << str << endl; cout << float x = 5.0f * str << end; int 65Num = 65; cout << "65Num = " < 65Num << endl;


#include <iostream>
#include <string>

using namespace std;

int main()
{

string str = "Hello World!";
float x = 5.0f
cout << str << endl;
cout << x * str << end;
cout << int 65Num = 65;
cout << "65Num = " < 65Num << endl;
>> No. 1598010
File 141359816887.png - (78.57KB , 468x783 , Give me a minute.png )
1598010
>>1598004
Alright, is the bottom half your edit?
I am seeing a bit of inconsistencies in your conventions, or how you mark each line here.
>> No. 1598013
>>1598010

The bottom half is my edit, just from what I could fix right off of the bat.
>> No. 1598019
File 141359846456.png - (81.05KB , 945x1062 , SbSm.png )
1598019
>>1598013
Right, do you want me to give you hints, or do you want me to go line by line with spoilers?
>> No. 1598028
>>1598019

Line by line, please. If you would be so kind. c=
>> No. 1598059
File 141360057346.png - (180.83KB , 945x1063 , Achievement.png )
1598059
Alright so I am considering any line that contains a non-whitespace character as a line. This excludes the lines between the includes and using, and using and main, etc.

Line 1: Looks good

Line 2: Looks good

Line 3: Though generally not a good thing to import an entire namespace like that, compiles correctly.

Line 4: Looks fine
Hint: Notice that the function has a return type, it will compile without a return statement, but to my understanding it is wanted

Line 5: Curly brace could be moved to the end of Line 4, depending on your coding conventions. The OTB (One true brace) style places a leading open brace on the same line as function declaration

Line 6: Looks good.

Line 7: Missing a semicolon to end the line, will throw a compiler error and we do not want that.

Line 8: Looks good.

Line 9: This one can take a few paths, depending on what is wanted here.
C++ cannot mix strings with numbers it will not know what the operators are asking of it. In a string context the '+' operator concatenates strings (e.g. "foo " + "bar" becomes "foo bar", in a number context it adds them together. (e.g. 1 + 5 becomes 6)
Option 1:String context, we can assume that they want to concatenate the two objects but first we have to convert the number to a string. This is done by a function called to_string()
Our line becomes: cout << to_string(x) + str << endl;

Note:Option 1 assumes that they wanted the '+' operator and not the '*' operator, because the '*' operator requires an arithmetic type.
Option 2:Number context, we can assume that they want us to represent the string as another number, but even in doing so you will not be able to munge a value out of the string "Hello world!"

Line 10:You cannot declare a variable inside of a call like this, you need to extract the declaration to a line preceding its reference. Basically, you cannot declare a variable and use it inside of a cout call.
We can split this into two lines though, like so.
10a: int 65Num = 65;
10b: cout << 65Num;


Line 11: < should be <<

Additionally:You are missing a return call, which is not explicitly required in Main() but it is convention. It is required on function calls that are not the void type in any other manner.
Fix by adding a new line with just "return 0;"

You are missing a closing curly brace to declare the end of the Main() function.
Fix by adding a new line with just "}"
>> No. 1598072
File 141360095697.png - (148.92KB , 945x836 , I am glad you asked.png )
1598072
>>1598059
Our full program now becomes this.

#include <iostream>
#include <string>
using namespace std;
int main()
{
string str = "Hello world!";
float x = 5.0f;
cout << str << endl;
cout << to_string(x) + str << endl;
int Num65 = 65;
cout << Num65 << endl;
cout << "Num65 = " << Num65 << endl;
return 0;
}


If I have done something incorrect someone will need to tell me, this compiles and executes.
The output is this:
Hello world!
5.000000Hello world!
65
Num65 = 65


Note that I did forget something, that is variable names must start with a non-integer. We changed 65Num to Num65 for it to compile.
>> No. 1598076
File 141360104137.png - (164.83KB , 945x945 , Calculations.png )
1598076
Are you given what the expected output is? I can make changes as needed and explain them.
>> No. 1598089
>>1598076

Yes. I think they wanted me to solve it differently. Haven't yet been taught returns or..

to_string(x)

But it works.

>We changed 65Num to Num65 for it to compile

I was taught that, though. Good catch. It was really throwing me for a loop.
>> No. 1598092
File 141360136469.png - (179.10KB , 945x945 , Count Me Confused.png )
1598092
>>1598089
Could you give me the expected output?
>> No. 1598099
>>1598092

Whoops. It doesn't compile when it runs that way. I think I made my own alterations last time that made it run. Let me take a look.
>> No. 1598102
>>1598092

It gives the expected output when I change the to_string(x) to...x.

Same as you said.
>> No. 1598107
File 141360183111.png - (210.31KB , 945x1125 , Rubix What.png )
1598107
>>1598102
But what is your expected output?
Also, what is your current source code?
For a quick way to paste with syntax highlighting I recommend pasting to Hastebin like so http://hastebin.com/obefihuzed.cpp
>> No. 1598109
>>1598102

Let me give you the final code here...

#include <iostream>
#include <string>
using namespace std;
int main()
{
string str = "Hello world!";
float x = 5.0f;
cout << str << endl;
cout << x << " " <<str << endl;
int Num65 = 65;
cout << Num65 << endl;
cout << "Num65 = " << Num65 << endl;

}

I added a small little space.

The expected output is EXACTLY as you pasted in your own message. You were correct down to the placement. The only thing you were wrong on is that the 5.0 takes off the decimals.
>> No. 1598113
File 141360224225.png - (81.34KB , 583x706 , Taka Taka Taka.png )
1598113
>>1598109
Right, I should have caught that with the cout being able to take multiple types. Notice that I placed them all into one statement as to_string(x) + str.

With cout << x << " " << str it shaves off the zeroes on x though.

Seems that I just went about it a different way.

Did I confuse you more than I helped here? Because I am willing to try more.
>> No. 1598114
>>1598113

Condescending code is a noble goal, but I didn't quite understand why you wrote it that way, or why you wrote a return. Or...what that does, really. I can see NOW that this is just defining and then displaying variables using the output function, which other than the 65Num, shouldn't have tripped me up this much, but I got a handle on it.

Maybe tell me why you used those two?
>> No. 1598125
File 141360305665.png - (148.92KB , 945x836 , I am glad you asked.png )
1598125
>>1598114
Condescending code? I am not sure I understand. The joys of turing complete languages are getting different roads to the same outcome. I chose a path that I was more familiar with coming from c# with ToString();

The to_string(object) method was added in C++11 to give a way of manipulating objects into strings for ease of use in manipulation. However it seems to value precision over accuracy, giving you 6 significant figures on the return value in floats.
The reason I chose to_string(object) over using multiple parameters in cout is simply because I had not thought about it in that manner to concatenate output.

As for "return 0;" You have declared main() to return int, so there should always be an integer returned. Because it is not explicitly needed I used return 0;
When your program exits, it emits an exit code. This exit code is by default the return value of your main() function.
Normal exit is represented by Exitcode 0, so having return 0; tells that your program executed and exited correctly.
int main() can be left without a return value, in which case it defaults to returning 0. (ISO/IEC 9899:1999 (C99)
>> No. 1598134
>>1598125

Oh, okay. I understood most of that. Thanks, Guardian! ^_^
>> No. 1598139
File 141360355093.png - (61.19KB , 930x1023 , SbCe.png )
1598139
>>1598134
I am not always the most concise, but I will try if you ever need help.
>> No. 1598141
>>1598139

You're da best. When I next go to learn about more coding stuff in my book, I'll ask if I have problems.
>> No. 1598865
File 141365137263.png - (254.57KB , 1280x1350 , SbWh3.png )
1598865
What IDE are we using here?
I use Visual Studio for .NET and Atom for Haskell.
I thought about picking up emacs but I am not feeling the learning curve right now.
>> No. 1599377
>>1598865

We're using Visual Studio 2010 Express
>> No. 1610774
File 141426143186.jpg - (366.69KB , 900x665 , Decorating-with-Derpy-Hooves-my-little-pony-friendship-is-magic-27413895-900-665.jpg )
1610774
>>1515896
I've been working with C++ for a few years. Currently playing around learning SFML w/ Vittorio Romeo:
https://www.youtube.com/watch?v=TC9zhufV_Z8
&
https://github.com/SuperV1234/cppcon2014

Also currently playing around with Cinder atm too:
http://libcinder.org/
&
https://www.youtube.com/watch?v=ndUtK5IZslc

Last edited at Sat, Oct 25th, 2014 11:26

>> No. 1683261
File 141818479605.jpg - (22.10KB , 241x230 , 1314395119083.jpg )
1683261
Been coding for a year and a few months
Primary languages: Java, CUDA, mySQL, Python, C, MIPS

>Also snagged a ton of pics from this thread.
[Return] [Entire Thread] [Last 50 posts] [First 100 posts]


Delete post []
Password    
Report post
Reason