[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y / ] [Home]
4chanarchives logo

/dpt/ - Daily Programming Thread


Thread replies: 369
Thread images: 49

File: timetocode.webm (2MB, 1152x648px) Image search: [Google] [Yandex] [Bing]
timetocode.webm
2MB, 1152x648px
This is /dpt/, the best subreddit of /g/

Umaru-chan edition, the best of all editions.

In this thread:
r/programming
r/compsci
r/ReverseEngineering
r/softwaredevelopment

code of conduct:
no racism
no insult
no sexual harassment
no gender discrimination

wat r u working on, anon-chan ?
>>
>>
>>54275022
why do japs like to sit on the floor on mats and thingss?
>>
File: wheeeeee.jpg (95KB, 244x260px) Image search: [Google] [Yandex] [Bing]
wheeeeee.jpg
95KB, 244x260px
Every time I want to delete a node from a linked list. I pop the entire list to a buffer sequentially and then re-push it back in reverse minus one item.

How does that make you feel?
>>
>>54275022
this is against the rules
>>
>>54275022
ayy
>>
>>54275044
you don't like sitting on the floor? what are you, some sort of faggot?
>>
File: FizzBuzz.png (13KB, 578x461px) Image search: [Google] [Yandex] [Bing]
FizzBuzz.png
13KB, 578x461px
>>54275044 >>54275049 >>54275068
sorry I can't post the sound version outside of /gif/

post Lisp
>>
File: 1431197382136.png (44KB, 286x364px) Image search: [Google] [Yandex] [Bing]
1431197382136.png
44KB, 286x364px
OK, can someone explain Python license to me?
Maybe some idea about other Languages licenses as well?

I read recently some stuff that python is GPL and therefore to distribute your code written in python it must also be GPL so whoever buys your stuff has right to see the source code

Am I getting this right?
How are other languages licensed?
>>
>>54275088
GPL is a literally a trojan virus invented by a communist. If you have no other choice, maybe allow LGPL, but not GPL.
>>
>>54275049
>>>54275022
>this is against the rules
why defuck does the mod delete my post now?
>>
>>54275088
i don't see how that could be true, imagine buying a pencil and the manufacturer having rights to whatever you wrote with it
>>
>>54275088
but who was then
>>
tried to find a ladygaga song, got this instead:
https://www.youtube.com/results?search_query=touch+my+body
>>
that's it
i'm making a fighting game
>>
File: 1393885777587.jpg (5KB, 225x225px) Image search: [Google] [Yandex] [Bing]
1393885777587.jpg
5KB, 225x225px
>>54275128
they discuss it here
https://www.reddit.com/r/Python/comments/4gpa83/employer_refuses_to_allow_python/

I dont feel like theres clear cut answer in the discussion there, but there seems to be common theme that there are limitations when you go in to distribution of your code
>>
>>54275172
>clear cut answer in the discussion
that's fucking reddit for you, they talk all day but they can't answer shit, at times i have to filter reddit out when searching, cause google keeps thinking that they are reliable sources for answers

nah, as i said, that would be fucking retarded and i'm sure you can quickly find closed source python programs out there.
>>
>>54275128
That is literally what GPL is.
Someone gives you a pencil, then turns around and says the Mona Lisa -tier drawing you made must be open source too
>>
>>54275153
why not be creative, original, and actually make something different and something people might actually use?
>>
>>54275153
fighting games are the hardest kind of game to make t b h lad

I hope you have some experience in gamedev already
>>
>>54275222
Really?
Anon on 4chan where even in programming thread on /g/ pedophiles need to bicker over their favorite anime 6 years old girl... is going high-horse on reddit?
>>
>>54275225
yeah but i doubt python is that manufacturer

>>54275257
no, they're the hardest to balance, anon there will probably make a shitty version of an existing fighting game nobody will ever play
>>
>>54275249
bc my game will be cool
>>54275257
it'll be a simple 2d game to start with
if i fail,i'll go learn i guess
>>
>>54275225
this
GPL is communist cancer
>here take this 50 LOC shitter library i wrote in an hour, it's all yours
>now give me your 100 kLOC source good goy
>>
>>54275267
>high-horse on reddit?
you clearly have never seen what reddit is, it's a fucking circlejerk off PC culture and censorship, fuck reddit.
>>
>>54275267
Fuck off, now.
This is not a place for redditors, not even kiddnig.
You ruin fucking everything.
>>
File: fedora.jpg (59KB, 479x720px) Image search: [Google] [Yandex] [Bing]
fedora.jpg
59KB, 479x720px
>>54275290
>>54275294
I am sorry reddit triggered you
better let you back to your anime lolis, furry and ponies
>>
>>54275048
I legit do somerhing like this in java. I make an array and when in need to delete an item i just delete the array and remake it with the same elements minus that one. Anyone have a better solution, cause mine feels retarded as shit.
>>
using Java 1.7
want user to input string
then program will assign ints to the chars as well as whether the char was a vowel vs consonant
then do some math on the int values based on the individual chars entered
should i use array, arraylist, hashmap, other?
>>
>>54275288
Can someone explain it to me
SFML uses multiple libraries that are licensed under GPL, yet it uses some custom MIT-esque license.

My website uses psycopg2 as the database driver, which its LGPL. Does that force me to use LGPL/GPL? What if my code just imports psycopg2?
>>
>>54275369
If you have to compact the array, just memmove to overlap the item you want to delete and realloc.
>>
>>54275011
>r/ReverseEngineering

Can /g/ into reversing network protocols? I've been entertaining the idea of writing a bot for a shitty mobile game my friends play. How would one go about doing this?
>>
>>54275369
i think i just remove the item without redoing the array
>>
>>54275317
Go away.
>>
>>54275412
I dont think that's possible in java?
>>
>>54275411
start by sniffing the network traffic, the chances are a shitty mobile game uses plaintext JSON/XML/other crap so it will be trivial to work with
>>
>>54275399
Also to add to this, SQLAlchemy is MIT, but it depends on psycopg2

Am I supposed to recursively look through every fucking library that I use to see if any of the dependencies use some shithouse license like GPL?
>>
>>54275410
>shrinking the memory

I seriously hope you guys aren't this retarded
>>
>>54275428
dunno about java
>>
>>54275411
use something like wireshark

also this: >>54275433 especially for the shittier mobile games, like with flappy bird you could just edit the high score in plain text
>>
>>54275410
Yeah that sounds good. Imma go figure out how to do that in java.
>>
>>54275433
>>54275455
couldn't he monitor the memory and see what matches ingame, like cheatengine?
>>
Sup /g/ newfag c++ fag here.
I'm trying to program a store kisok for my final project, and I had a few questions.
My basic idea is to have one main source file, with other c++ files to imitate stuff like a printer for recipes and an inventory system to check whether the entered barcode is valid, and the display the actual food item. Do those files need to be .h files? Thanks in advance lads.
>>
>>54275478
if it's online he needs to affect the server, like send commands as if he's playing the game
>>
>>54275478
how's that gonna help? he needs to manipulate network packets, sure he could use cheatengine to figure out the packet structure and hook into the socket to intercept read/write ops but why not just analyze the traffic first?
>>
>>54275290
>>54275222
yeah, discussions on /dpt/ are much better, amiright ?
>>
Quick question.

My Python 3 script:
print(wait, "hours from", hours, ":00 it will be", time, ":00")[code/]

Prints:
24 hours from 12 :00 it will be 12 :00
[code/]

How do I get rid of the spaces between 12 and :00?
>>
>>54275257
? Literally the simplest of games. a 2D landscape with parallax scrolling, a bunch of animating textures that correspond 1:1 to a hitbox state machine. The underlying crap is literally a solved problem and the hardest thing is balancing the craploads of characters which should be doable with a good dose of game theory.
>>
>>54275501
could he
>make them think that he used a shitton of money
>tell them it was his kid
>get Ks of cash
>>
>>54275497
use .h files for declarations and .cpp files for definitions, so both
>>
>>54275542
you're free to say whatever you like here.
nobody has any authority.
>>
>>54275544
print('{} hours from {}:00 it will be {}:00'.format(wait, hours, time))
>>
>>54275399
Nobody cares which license some shitty floss project uses. What the fuck are they gonna do? Sue the guy? These fuckers ain't got the money nor the disposition to fight over hobby code. You can't even touch non-US citizens anyway.
>>
File: 1457274399165.jpg (44KB, 544x529px) Image search: [Google] [Yandex] [Bing]
1457274399165.jpg
44KB, 544x529px
>>54275553
>actually using .cpp files
>>
>>54275386
Use % operator I guess
>>
>>54275579
bad way to store cp and soviet documents
>>
>>54275546
it's one thing to make some shit that resembles a fighting game, it's another to make an actual fighting game with solid gameplay, combos, responsive controls etc
>>
>>54275579
Now seriously how can you be an elitist about this?

Either you know nothing or you're trolling
>>
>>54275544
sorry I messed up my tags I hope you can understand what I'm asking
>>
>>54275455

Game in question is Empire Z.

I'm not exactly a whiz at networking and I'm sure how to use a software to sniff just the game's traffic.

What I did was decompile the APK. Seems to be some kind of shitty obfuscated java code that calls an ARMv7 shared object, which is likely where the game and net I/O stuff actually is. I have an exam in some hours so I haven't gotten to it yet, but I'll bust out the Hex Rays for this thing and see what I can figure out.
>>
File: bern.webm (1MB, 720x404px) Image search: [Google] [Yandex] [Bing]
bern.webm
1MB, 720x404px
Ask your much beloved programming literate anything (IAMA)

>>54275544
You can set a customized separator through the named argument sep

eg:
print("a", "b", sep = "")

>>54275222
I found the cs related subreddits to be quite good.
>>
>>54275577
thank you :)
>>
>>54275607
If you don't use templates in virtually everything you should be shot
>>
>>54275639
look for java.net and android.net packages in the java code, otherwise it might be in the shared object
>>
>>54275577
it's beautiful
>>
>>54275501

Yeah, the idea is to create my own scriptable game client. Then I'll write an AI which will automatically collect resources and develop the character. Forever. Then I'll run like 2k instances of them and zerg rush the pay2win top tier faggots with hordes of anonymous no-name accounts they can't track because they don't belong to any in-game group (alliances).

Trolling to the max
>>
>>54275597
Considering "good fighting games" are created almost by accident and pretty much never on purpose, I'd say there's really no difference between those two categories. It's a combinatorics problem so huge, it just happens to work out in practice somehow.
>>
>>54275670
how does using templates relate to using cpp files?
>>
File: 24231.jpg (54KB, 500x500px) Image search: [Google] [Yandex] [Bing]
24231.jpg
54KB, 500x500px
>>54275766
>>
>windows has UNC \\?\ paths which send the full pathname directly to the FS
>no more bullshitting around backwards compatibility and retarded DOS crap
>applications which use it: 0
>GitHub for Windows, which runs on top of goddamn msys2, doesn't support the fucking Unix paths

This fucking OS is unsalvageable.
>>
>>54275670
>wanting unreadable code and retardiculously long compile times for no reason other than to feel a bit more smug when you tip your fedora
>>
>>54275802
So you don't know anything. That's what I thought.
>>
>>54275811
>what is low binding
>what is parametrisation
>how do I read C++ code
>how do I program
>how do I take a screenshot
>>
>>54275825
lol nerd >>>/r/eddit
>>
>>54275824
Give me your best .cpp file for a template class
>>
>>54275837
Newfag redditors like yourself really need to leave.
>>
java map/hashmap
phonebook has name, phone#
bill, 5551212
jenny, 8675309
but can it have a 3rd, 4th, etc field, such as address or email?
>>
>>54275825
>how do I read C++ code

It's write-only.
>>
File: carlos.png (272KB, 560x560px) Image search: [Google] [Yandex] [Bing]
carlos.png
272KB, 560x560px
>>54275878
>>
File: [tilting increases].png (27KB, 500x500px) Image search: [Google] [Yandex] [Bing]
[tilting increases].png
27KB, 500x500px
>>54275864
>template metaprogramming
>muh 'nerics
>muh memes
>>
>>54275844
That wasn't the point. You were objecting to using cpp files. You should use them alongside headers for declaring member functions.
>>
>>54275905
I'm honestly so sorry but you really aren't funny. Nothing you've said has been funny and you are lowering the quality of this website. It's not your fault, every under age redditor is like this. That's one of the many reasons the age limit is in place, and why reddit is hated so much
>>
So is GNU Make like the LISP of build systems or what?

Shit's literally a functional programming language. You can metaprogram it to do the most crazy shit.

I think I hate Make a little less than I used to now.
>>
>>54275937
That is exactly the point.
If almost every class is templated, you should barely have any cpp files.
>>
>>54275944
take a look in the mirror projecting literal reddit fag
>>
>>54275961
kill yourself

only the worst incompetent memers use templates to any significant extent in normal applications
>>
File: _.jpg (74KB, 1280x720px) Image search: [Google] [Yandex] [Bing]
_.jpg
74KB, 1280x720px
>>54275968
>take a look in the mirror
>projecting
>literal fag

inb4
>sperg faggot cuck kill yourself
>>
>>54275905
>>muh 'nerics

Generics are incredible.
>>
>>54275985
kill yourself faggot cuck sperg
>>
>>54275984
The only excuse for avoiding templates is using void pointers

Templates allow you to reduce the binding between your files, regularly lower the number of #includes, produce consistent, reusable and modular code, etc.
>>
>>54275984
templates is the greatest thing offered by C++, they are a true advance in the programming language theory field.
>>
File: 12yo simulator.png (15KB, 801x270px) Image search: [Google] [Yandex] [Bing]
12yo simulator.png
15KB, 801x270px
>>54276000
WE DID IT REDDIT
MOM 360 GET THE WEED EVERYDAY JOHN CENA
>>
>>54276008
>putting this much effort into writing """"reusable"""" (yeah fucking right) code instead of the actual software
keep telling yourself that
>>
how can i post source code so it looks formated?
>>
>>54276008
>regularly lower the number of #includes

... wat
>>
>>54276038
>>>/g/installgentoo
>>
>>54276041
he's right, you don;t need anymore to declare data structures for every types.
>>
>>54276073

You should be using intrusive data structures anyway. They're analogous to how template metaprogramming works and in plain C.
>>
>>54276073
>muh dater struger
fuck off, your program isn't made up entirely of data structures unless you're doing the most pleb CRUD shit
>>
>>54275952
>>54275952
>You can metaprogram it to do the most crazy shit.

Please don't.
Just use it as an install and build script, there's no need to run 50 shell commands just because you want make to automate every last thing.
>>
>>54276038
like with spoilers but with code
>>
>>54276008
>Templates
>implying i make the same software more than once
>>
File: sicp.jpg (182KB, 800x800px) Image search: [Google] [Yandex] [Bing]
sicp.jpg
182KB, 800x800px
>>54276102
every programmer know that data structure + algorithm = program
>>
>>54276106
>shell commands
>shell
>needing to shell out

Hahahahaha I have evolved beyond such puny constructs. I have tamed even the mighty beast wildcard. Nothing is impossible in this brave new world
>>
>>54276162
>Nothing is impossible in this brave new world
m.. m-make a gui
>>
>>54276142
you don't need to roll your own AbstractTreeMapWtf or if you do, you don't need to use it for a gorillion different types, or if you do, you can use a template or something for it, but it sure as hell doesn't make up a significant amount of your program
>>
>>54276118
[spoiler]
#include <iostream>

int main(int argc, char** argv)
{
std::cout << "testing formating!" << std::endl;
return 0;
}
[/spoiler]
>>
>>54276106
I have a workspace directory with a make/ folder, where I have developed an entire framework for compiling my projects, complete with a standard library of useful functions, the ability to simply declare things and it'll automatically metaprogram all the targets and recipes into the build system, I can now manage motherfucking circular dependencies between shared objects with this god-given software its too powerful

>>54276180
The terminal emulator is a GUI that displays text. I don't need to make one
>>
>>54276225
i guess it didn't work gj
>>
>>54276225
[c o d e]c o d e[/co d e]
>>
>>54276193
>never had to write anything more consistent than fizzbuzz.

Abstraction is the most important concept of computer science.
>>
>>54276237
>can't make gui
>brags that he can make anything
welcome to the big boys' house
>>
>>54276283
 will this work? 
>>
>>54276304
gj familion
>>
>>54276284
Knowing when abstraction is harmful is similarly important.
>>
>>54276284
kill yourself

programs are more than just data structures

ok, templates can be used for data structures

doesn't mean the majority of your program should be templates
>>
What are you struggling with right now anon-chan?
>>
>>54276284
That's what they call the "Lisp school" which gave rise to the modern webdev mentality.
https://news.ycombinator.com/item?id=6418061

>One programmer costs ~ 300 cores. (Bay Area salary with benefits vs. AWS EC2 pricing)

>If your code consumes more than 300 cores, you should care about performance. If your code consumes less, you should care about productivity.

>Adding cores is easy while adding programmers is hard. Cores scale linearly while programmers don't. So I set the guideline at 1000 cores. Do not make performance-productivity tradeoffs below that.
>>
>>54276300
I'm in God's house now, only dreams and clouds
>>
>>54276379
god doesnt exist
>>
>>54276361
My own hypergraph file system.

>>54276330
>programs are more than just data structures

spotted the code monkey
>>
//look ma, no #include "mySerialType.h"
template <typename SerialType>
struct somestructure {
SerialType serials[3];
///etc
}
>>
>>54276394
LITERALLY TIPPING THIS HARD
>>
>>54275399

SFML dependencies:

PThreads, OpenGL -- License depends on implementation, generally not GPL.
Xlib -- Uses its own license, I think.
Xcb, x11-xcb, xcb-randr, xcb-image -- MIT, I believe.
Xrandr -- Custom license. Not GPL.
Udev -- LGPL
Freetype -- Two licenses. One is a BSD-like license that is compatible with the GPLv3 but not GPLv2 (Apache is like this as well), one is GPLv2. Either is acceptable.
Libjpeg -- Custom BSD-like license.
OpenAL -- LGPL
libFLAC -- Xiph.Org BSD-like license.
libVorbis -- Xiph.Org BSD-like license.

And no, you don't need to GPL or LGPL your project if you use an LGPL library. The LGPL only requires that any changes to the LGPL library itself be re-contributed. The library you link it against can be whatever fucking license you want.
>>
>>54276330
>kill yourself
I have no time to waste with such a bad-mannered person: This discussion is now terminated.
>>
>>54276434
thanks for your opinion

literally >>>/r/eddit
>>
File: tip.jpg (44KB, 469x463px) Image search: [Google] [Yandex] [Bing]
tip.jpg
44KB, 469x463px
>>54276434
>This discussion is now terminated.
>>
File: 1461079435634.jpg (960KB, 2338x1700px) Image search: [Google] [Yandex] [Bing]
1461079435634.jpg
960KB, 2338x1700px
>>54276441
>>
>>54276434
>>54276417
>>54276411
>>54276394
>>54276385
>>54276330
>>54276162
>>54276142
>>54276106
>>54276102
Gee there's a lot of fags online today
>>
>>54276454
>low binding
>gay

Low binding is the straightest kind of binding
>>
>>54276453
you're a fucking smug dunning kruger idiot

your program is shit or atypical if it's made up of nothing but various hand-rolled data structures that you use for gorillions of different types
>>
>>54276454
>>54276463
How many of these are (you)
>>
File: Untitled.jpg (50KB, 842x655px) Image search: [Google] [Yandex] [Bing]
Untitled.jpg
50KB, 842x655px
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Assignment
{
class Program
{
static void Main(string[] args)
{
int rowCounter, columnCounter;

for (rowCounter = 0; rowCounter < 8; rowCounter++)
{
columnCounter = 0;

while ((columnCounter < 8) && (rowCounter % 2 == 0))
{
if (columnCounter % 2 == 0)
Console.Write('X');
else
Console.Write('O');

columnCounter++;
}

while ((columnCounter < 8) && (rowCounter % 2 != 0))
{
if (columnCounter % 2 == 0)
Console.Write('O');
else
Console.Write('X');

columnCounter++;
}

Console.WriteLine();

}

Console.ReadKey();
}
}
}


How did I do?
>>
>>54276142
How such a revered book have so little influence in the industry?
>>
>>54276497
It's literally arcane wizard shit.
I've been programming for years and I still don't understand most of it.
>>
>>54276479
i don't know what that is but 10/10 for not being a ragefag
>>
>>54276479
verbose/10 needs more comments
>>
God is this literally the shitposting general? Let me open dpttxt.
>>
>>54276422
You don't need to do shit if you don't actually distribute your program.
>>
File: 1451316939583.png (98KB, 810x1195px) Image search: [Google] [Yandex] [Bing]
1451316939583.png
98KB, 810x1195px
>>54276513
>>
>>54276027
MAKE THIS INTO A REDDIT BOT
>>
File: eg1.png (11KB, 476x178px) Image search: [Google] [Yandex] [Bing]
eg1.png
11KB, 476x178px
>>54276479
Is this what you wanted?
>>
File: r6 esp.png (2MB, 1205x967px) Image search: [Google] [Yandex] [Bing]
r6 esp.png
2MB, 1205x967px
Coding some sick hax
>>
>>54276513
lel, then you are mediocre. sicp is an introductory book that has been taught for more than 25 years now (notably at MIT, UC Berkeley, Caltech, ...). Sure it's a little hard but not "that" hard.
>>
File: 1461871291922.png (71KB, 810x1195px) Image search: [Google] [Yandex] [Bing]
1461871291922.png
71KB, 810x1195px
>>54276576
>>
File: sc.gif (3MB, 320x227px) Image search: [Google] [Yandex] [Bing]
sc.gif
3MB, 320x227px
>thesis project literally brought me to tears just trying to build a C++ library and run sample code
>dragged out uni for two years of utter depression
>graduated with 9.6 average, fuck all experience and a hatred of programming

I clearly need mileage, but if I pick up a project that actually lets me focus on designing solutions, then I'm not learning anything, and if I have to spend two weeks googling unreadable error messages before can even I start, I'll sooner hang myself. What's the middle road?

The worst part is the feeling I'm not even moving ahead. Half the time I don't even get what fixed it and the other half's useless anyway, because the next technicality is something different again.

Should I just focus on less frustrating languages? Is C++ even particularly annoying or is it all me? Honestly, I've only ever worked on tiny projects in anything else. I have no idea what field I'm even going for.
>>
>>54276665
>MIT, UC Berkeley, Caltech
  M
E
M
STEM
H
FELL
O
R
>>
>>54276649
make it calculate where the head is
>>
>>54276678
try C#
>>
>>54276690
>STEM
>not S.T.E.M.
kys
>>
>>54276678
My experience with c++ has been going similar desu. Check out C#
>>
>>54276690
      G
S O U R
A
P
E
S
>>
>>54276665
>has been taught for more than 25 years now
They dropped it over 10 years ago in favor of a much more relevant introductory course using python, and not your geriatric meme language.
>>
File: sSUVobo[1].jpg (399KB, 1596x895px) Image search: [Google] [Yandex] [Bing]
sSUVobo[1].jpg
399KB, 1596x895px
>>54276696
Bone esp coming soon
>>
>>54276734
>relevant
>python
>>
>>54276678
common lisp

what you want is what you get
>>
File: no.gif (164KB, 500x281px) Image search: [Google] [Yandex] [Bing]
no.gif
164KB, 500x281px
>>54276721
boys shouldn't kiss boys
>>
>>54276734
MIT still teach SICP, just at a higher-level class.

May other schools that used to teach SICP now teach HtDP to beginners instead, and use SICP for advanced classes.
>>
>>54276741
nice but maybe not have the lines when they're so far away
>>
>>54276761
but /dpt/ is full of faggots
>>
>>54276690
Have you even finished high school ?
>>
File: buy me geimu.png (156KB, 451x387px) Image search: [Google] [Yandex] [Bing]
buy me geimu.png
156KB, 451x387px
>>54276783
no means no faggot
>>
>>54276803
>umaru
clearly you are faggotkin
>>
Programming is shit web design is much better and pays a lot more
>>
>>54276761
if they're wearing a skirt it's ok bby
>>
>>54276803
*kisses u*
*smooch*
*pulls pants down*
>>
>>54276822
*throws skirt at anon* put it on slut
>>
File: average dpt poster.png (147KB, 500x281px) Image search: [Google] [Yandex] [Bing]
average dpt poster.png
147KB, 500x281px
>>54276822
>there are people in this thread RIGHT NOW not wearing skirts
>>
>>54276846
I am wearing a skirt right now. It helps me program 100 times better
>>
>>54276873
Fag
>>
File: cs.jpg (1MB, 1904x4706px) Image search: [Google] [Yandex] [Bing]
cs.jpg
1MB, 1904x4706px
>tfw the level lowered so much that sicp is now considered to be expert-level
>>
How does /g/ feel about Visual Studio?
>>
Best programming languages?

top tier:
>Excel Formulas
>MSWLogo
>C preprocessor
>.txt

good tier
>C derivatives (C++, Go, D, ...)
>ML derivatives (Ocaml, F#, ...)
>Powershell

ok tier
>meme languages (Nim, Idris)
>English language

diaper tier
>visual basic
>C#
>x86, x64 assembly
>bash

web tier
>HTML
>CSS

python tier
>python
>javascript
>python
>java
>python
>>
File: idalarge[1].gif (142KB, 2560x994px) Image search: [Google] [Yandex] [Bing]
idalarge[1].gif
142KB, 2560x994px
>>54276881
ASM 4 life homie
>>
>>54276952
    P
N O T
R
T
A
B
L
E

THE POWER OF C COMPELS YOU
>>
>>54276952
oh boy I'd need, like, THREE motivational pingus to deal with something complicated like this haha
>>
>>54276948
First /g/ list I've seen that doesn't (retardedly) put C# in top tier. Why would you ruin it and put ASM in the same one?
>>
File: 1459774792211.png (881KB, 556x739px) Image search: [Google] [Yandex] [Bing]
1459774792211.png
881KB, 556x739px
>>54276809
>>54276809
>>54276822
>>54276830
being a faggot is a mental illness people that are faggots tend to kill themselves you should seek medical help
>>
File: 091256129.jpg (40KB, 695x427px) Image search: [Google] [Yandex] [Bing]
091256129.jpg
40KB, 695x427px
>>54277004
>asm
>above C#
>>
>>54275088
Python is licensed under the PSF

https://docs.python.org/3/license.html

which is compatible with the GPL, but you program can be licensed under whatever license you want.
>>
>>54276930
It's pretty good as a IDE but has slow compilers.
>>
>>54277017
anon bby it's ok
*kisses u*
*smooch*
*pulls pants down*
>>
>>54277049
> *
>not a kind variable
get out
>>
>>54276361
I'm struggling with full static compilation of SDL2-based project on linux.

>>54276422
How much code do we need to draw a single pixel...
>>
why isn't this working?


<html>
<head>
<title>useBean Example</title>
</head>
<body>

<jsp:useBean id="date" class="java.util.Date" />
<p>The date/time is <%= date />

</body>
</html>

>>
Noob dropping by real quick, hi.
I kinda expected /g/ would hate C#. Isn't it all windowsey and shit?
>>
>>54277072
Nah, most do hate C#, except unity babbies and pajeets.
>>
>>54277071
REEEEEEEEEEEEEEEEE

Some of you guys are alright. Don't go to >>>/wdg/ tomorrow if you're not a web dev.
>>
>>54277072
C# is fine, this >>54277083 nigga is a ragefag
>>
>>54276645

Which language is this?
>>
>>54276881
Programming algorithms, datastructures and languages isn't a cutting age CS research anymore. Cutting age research is Machine Learning, it doesn't matter which language you write your ML in, if it works and it is fast.
>>
>>54277072
only people who hate it are pajeets upset about it being a better designed language than java. I don't think anybody else even cares about c# here with some rare exceptions who just think it's alright.
>>
>>54277099
Here is my other class


public class StudentsBean implements java.io.Serializable
{
private String firstName = null;
private String lastName = null;
private int age = 0;

public StudentsBean() {
}
public String getFirstName(){
return firstName;
}
public String getLastName(){
return lastName;
}
public int getAge(){
return age;
}
public void setFirstName(String firstName){
this.firstName = firstName;
}
public void setLastName(String lastName){
this.lastName = lastName;
}
public void setAge(Integer age){
this.age = age;
}
}

>>
>>54277110
F#
>>
>>54277118
only people who like it are pajeets that believe c# differs enough from java for java to be shit tier and c# to be top tier
irrational hate for java & irrational love for c#
>>
Speaking of C#, how well is it supported on non-Windows platforms?

Do you still have to use Mono to get a non-trivial C# application to run on Linux?

I heard something a while back about MS releasing parts of their .NET runtime as open source. Did that improve C# working on Linux?

What I'm trying to ask is, how good is C# on Linux? If I make two similar GUI-based programs, one with Java and Swing and the other with C# and its own GUI library, will the Java one perform better on Linux, or is C# on Linux also pretty capable?

I am asking because I have read a LOT of good things about C#, but I cannot justify spending the time to learn it if I can't run a C# program well on Linux.
>>
Lets make /College General/ to contain all these poor homework babbehs?
>>
>>54277139
JUST FUCKING MAKE THE FUCKING FIELDS FUCKING PUBLIC FUCKING GOD FUCKING DAMNIT FUCK please
>>
>>54275421
+1
>>
>>54277166
I can't that is bad OOP design and in Java you are suppose to make it private I am sorry
>>
How do I get into machine learning?
I feel like I'm missing out.
>>
>>54277116
That's oversimplifying it a bit. There is lots of new and important research in the field of programming languages.
>>
>>54277186
Fuck you, homework slave

For my own software I will do whatever the hell I want.
>>
$ ./dpt
C are M$ pajeet no arch skirts of shills GNU/Linux of M$ GNU+Linux is nigger M$ no rms anime u linux C u cuck arch are RUST C is C shills a C RUST no x.org rms are GNU/Linux shills are F# RUST no F# F# and nigger arch a stallman nigger u pajeet GNU+Linux a RUST shills and cuck.

hmm
>>
>>54277186
>bad OOP design
Yes, also known as good design
>>
>>54277225
>>54277265
Why does proper OOP design trigger you guys so much? It makes perfect sense when making large software in teams
>>
>>54277193
Learn Python, google and take a course on Tensor Flow/Pandas.

Here are some datasets:

https://github.com/caesar0301/awesome-public-datasets

Stop being a bitch and go do it, Machine Learning is literally retard tier to actually use.
>>
>>54277193

1) Read /r/MachineLearning everyday, also read older posts there is a lot of great stuff

2) Try to implement simple stuff, a linear classifier, naive bayes, multilayer perceptron.

Read wikipedia and tutorials, some decent ones are http://karpathy.github.io/neuralnets/ http://scikit-learn.org/stable/tutorial/basic/tutorial.html https://www.toptal.com/machine-learning/machine-learning-theory-an-introductory-primer

You shouldn't have problems with ordinary programming, shouldn't fear highschool math. ML builds on these skills. Also note that using ML is way simpler than coming up with semi-original or even full custom algorithms (an example of semi-custom one: http://benanne.github.io/2014/04/05/galaxy-zoo.html )
>>
>>54277210
PL research is impractical meme logic research, you could literally generate an infinite number of different logics and prove even more theorems about them. These people happen to get paid for such activity and that's it.
>>
>>54277277
Because
>making large software in teams
is not what I want doing for life
I want to be an upper middle class rentier working on robot gf software as a hobby.
>>
>>54277315
Sure buddy.
>>
Is programming VST synths tough?
>>
>>54277277
>step 1) make fields private
>step 2) create public accessors for said fields
>step 3) ensure public accessors mimic the field being public in the first place
>step 4) comment setters and getters
>step 5) write unit tests for setters and getters
>step 6) mark user story for "develop accessors for private integer #342 and private float #512" as completed
>step 7) go home
>step 8) wake up
>step 9) repeat
>>
>>54277342
https://unqualifiedreservations.wordpress.com/2007/08/02/whats-wrong-with-cs-research/
>>
>>54277361
>.wordpress.com
>>
>>54277360
What is your point? It pays a lot of money and you forgot debugging large applications
>>
>>54277368
nigga its an eb1k s3krit club
just

dont

get

--

--

banned
>>
>>54277376
>hello, I'm mr Pajeet Kumar a professional Java Software Engineer
if you are a pajeet then java maybe pays good money, otherwise I doubt it
>>
>>54277376
>setter/getter
>helpful for debugging

Yeah that fucking stack frame mate it's not like you can put a breakpoint on the .property = value statement or anything
>>
File: doge 3.jpg (64KB, 600x450px) Image search: [Google] [Yandex] [Bing]
doge 3.jpg
64KB, 600x450px
So I'm the retard with the diamond array. Pls send help /g/. This is as far as I got. I have no idea of how to make the rest of the zero diamond.

main(){
int lin,col, ord;
printf ("enter array size\n");
scanf("%d", &ord);
int mat[ord][ord];
for (lin=0; lin<ord; ++lin)
{
for(col=0; col<ord; ++col)
if(col>=(ord/2)-lin)
mat[lin][col]=0;
else
mat[lin][col]=1;

}


for (lin=0; lin<ord; ++lin)
{
for(col=0; col<ord; ++col)
printf("%d", mat[lin][col]);
printf("%\n");
}
>>
>>54277404
whats that
>>
>>54277162
>Do you still have to use Mono to get a non-trivial C# application to run on Linux?
yes

>Did that improve C# working on Linux?
It's still in development. They are transitioning from one set of console tools to another, there are only packages for a few specific version of linux distros depending on specific library versions, so basically you can get .Net core working without issues as long as you stick to the same (outdated) build environment as in step-by-steps

>how good is C# on Linux?
Mono is ok. Java fares better performance-wise and obviously has better infrastructure for linux development. .Net core (console only so far) and the latest asp.net are supposed to be faster. Plus there is ahead of time compilation support (and llvm backend) in development. But this all is gonna be ready for straightforward use in some unforeseen future.
Basically if you want to learn the language by writing mostly GUI desktop software - it's Mono only. If console apps + web apps in Asp.Net is fine for you and you don't mind either using ubuntu 14.04 or spending time figuring out how to build .net core from source on a different system, making it support newer dependencies (which isn't really the greatest start to familiarizing yourself with the language) then do that.
Where it's worth or not to learn it - idk, it very much depends on whether .net core is going to be at all successful
>>
>>54277413
$120,000 American dollars is pretty good for Java programming

>>54277428
It does help I see you never debugged before
>>
File: Dandy drone.jpg (37KB, 225x156px) Image search: [Google] [Yandex] [Bing]
Dandy drone.jpg
37KB, 225x156px
>>54277435
I have to use only arrays and loops to make a 2D array of variable size (user input of 3 to 20), that contains a diamond made of 0s and the corners out of 1s. The thing is I can do math and some "complex" shit on C (statistics, calculus...) but it seems I'm to retard to make images with numbers.
1 1 0 1 1
1 0 0 0 1
0 0 0 0 0
1 0 0 0 1
1 1 0 1 1
>>
>>54277162
I use ASP.NET Web Api at work sometimes.

When I saw that you could use it with OS X and Linux I gave it a try, it is a super shitty experience. It definitely isn't anywhere near production ready.

It's a valiant effort, but wait until the platform is more mature.

As far as C# goes it really is a very good language, but it's not really production ready for multi platform.
>>
>>54277470
what user input is in that example?
>>
>>54277470
Please fuck off to /College General/ with your homework.
Thanks.
>>
>>54277470
>i can't into basic algorithms for solving real problems

STEM STRIKES AGAIN!
>>
>>54277470
>>54277433
Send help
>>
Chess in assembly.

I'm still a little scrublet, taking the few CS classes in community college that will transfer to my 4-year, and this semester it's MASM.

Been pretty fun so far, though.
>>
>>54277413
Also my name is Patel get it right
>>
File: doge.jpg (88KB, 970x617px) Image search: [Google] [Yandex] [Bing]
doge.jpg
88KB, 970x617px
>>54277488
The matricial order.(It needs to be a square matrix)
eg.
3=3x3
4=4x4
....

>>54277492
H-h-how did you guessed anon?
>>
>>54275294
>acting like 80% of the people in here don't spend a nontrivial amount of time on reddit and just try to hide it

People are gonna use what's popular, often over what's good. If that wasn't true, you'd be on some other chan right now.
>>
File: wrinkledmabrain.webm (197KB, 500x282px) Image search: [Google] [Yandex] [Bing]
wrinkledmabrain.webm
197KB, 500x282px
>>54277493
find yourself a function f(x,y) that computes the pixel (0 or 1) at coordinates x y, then double-loop to initialise the array with it. Done. For the function, look into Manhattan Distance.

t- Your fellow maths, reasoning, and programming literate.
>>
File: CFPNnL9.jpg (790KB, 946x4201px) Image search: [Google] [Yandex] [Bing]
CFPNnL9.jpg
790KB, 946x4201px
>>54275290
>PC culture
>>
File: thetruthaboutjs.jpg (103KB, 1024x576px) Image search: [Google] [Yandex] [Bing]
thetruthaboutjs.jpg
103KB, 1024x576px
>>54277575
>if you're not dead because of the problem, you don't have a point
>microagressions are problematic
pick fucking one
>>
>>54277564
>acting like 80% of the people in here don't spend a nontrivial amount of time on reddit and just try to hide it

80% of the people in here don't spend a non trivial amount of time on reddit, you fucking dumbass
>>
>>54277604
I browse both reddit and here. I personally prefer reddit for the funny cat pictures and the programming threads have better topics
>>
>>54275083
What language is this?
>>
>>54277646
Visual FoxPro
>>
>>54277604
Your first mistake is putting too much faith into literally any other user on this board.
>>
>>54277646
MSW Logo
>>
>>54277537
>>54277537
impossible to center the diamond with a even matrics
>>
>>54277603
There's no such thing as "PC culture" is the point. It just means "basic rules". It's only a shock to neckbeards who pee in bottles and shitpost on 4chan all day.
>>
>>54277604
The bulk of this side is reddit and shitposters.
>>
>>54277674
>what are non-integers
>>
>>54277361
I still haven't read quite everything, but it seems that the person has a fundamental misunderstanding of several concepts, starting from the division of CS research, to thinking that _need_ is a valid argument, to thinking that simplicity in itself is good (things should be as simple as possible, _not_simpler_), and to thinking that the amount of people using a language is the same thing as their worth.
>>
>>54277641
>>54277662
>>54277729

I hate nu-/dpt/
>>
>>54277733
>printing half a character
fucking slut
>>
>>54277733
>>54277674
H-help
>>54277574
I only have twenty minutes ;_;
>>
>>54277749
I also enjoy my little pony it has a great story line
>>
>>54277455
>>54277480
I see, thanks for the replies.

I'll probably hold off on learning C# until the platform matures for Linux.
>>
>>54277761

I'd help, but I have no fucking clue what they want if the array is even.

What would a 4x4 diamond even look like
>>
>>54277749
>implying you're somehow a part of the long in between peaks of quality of this site that no other site achieves
You're just as bad as the redditors. You've most likely migrated from reddit and think you're now "a part of it".
>>
>>54277778
Wouldn't it be easier to tell the user to fuck off if he enters an even value?
>>
>>54277778

1001
0000
0000
1001

or

1111
1001
1001
1111
>>
>>54277761
>>54277761
Just look up manhattan distance quickly, it's easy to understand and it's exactly what you need to say whether a pixel is near the edge enough to be set to one.

You moron
>>
Never forget that GPL is cancerous communism.
>>
>>54277778
I don't know.. Teacher is kinda stupid. He just ctrl+C ctrl+v some stupid problem he googles (and edit it to be shit).
>>54277806
>>54277778
>>54277803
Lets assume that it's only possible to enter odd values.
>>
>>54277802
>migrated from reddit
Fuck off, here's your (You)
>>
>>54277826
https://ideone.com/q3yZI6
>>
>>54277823
There is literally nothing wrong with GPL or loving a black woman for that matter
>>
>>54277826
you seriously cant write an algorithm for making a text diamond that will scale to arbitrary sizes?

for fucks sake dude, pull out some graph paper and try to connect the dots, find the relation between a 3x3 diamond and a 5x5 diamond, write a formula that accurately determines the amount of 1's to print out for every row.
>>
>>54277761
>>54277819
Litterally the first image on "Taxicab geometry" on Wikipedia describes your problem, I didn't even realise
>>
>>54277888
He can only use fors and arrays kek
>>
What's the best way to create a list with the digits for hex i.e. 0-9, A-F in Python?

Using ranges and ord looks ugly, and just typing it out seems dumb af
>>
>>54277806

userInput = <some number>
zeroes = 1
iteration = 1

subtract the current iteration from the user input, write half that many ones, then write zeroes number of zeroes, then write half that many ones again. New line, add two to zeroes, one to iteration.

Do this while iteration is less than half of the userinput. Then write a line of zeroes. Then just do the top bit in reverse.
>>
>>54277778
Pardon the java, but here's what I have so far

Is this what you had in mind?

public class Test {
public static void main(String[] args) {
int length = 21;
for(int i = 0; i < length; i++) {
int numzeroes = Math.abs(i - length/2);
int numones = length - 2 * numzeroes;
for(int j = 0; j < numzeroes; j++) {
System.out.print("0");
}
for(int j = 0; j < numones; j++) {
System.out.print("1");
}
for(int j = 0; j < numzeroes; j++) {
System.out.print("0");
}
System.out.print("\n");
}
}
}
>>
>>54277876

The 2nd part is true because negresses are best, but the first part is wrong. GPL is for commies.
>>
File: kenya.jpg (148KB, 550x401px) Image search: [Google] [Yandex] [Bing]
kenya.jpg
148KB, 550x401px
>>54277986
>>
File: Kitwe1.jpg (78KB, 732x507px) Image search: [Google] [Yandex] [Bing]
Kitwe1.jpg
78KB, 732x507px
>>54278011

I wish I could live in early-70s Africa. The dream was alive.
>>
File: MEHMET.png (569KB, 426x717px) Image search: [Google] [Yandex] [Bing]
MEHMET.png
569KB, 426x717px
>Guy asks for a thing that does a diamond ARRAY
>/g/ prints a diamond asterisk which is the 2nd or 3rd exercise in pajeet's class
Jesus fuck /g/, your poo is showing
>>
>>54277775
At least for GUI applications for Linux definitely do hold off. There's better options.
>>
File: eg2.png (28KB, 852x337px) Image search: [Google] [Yandex] [Bing]
eg2.png
28KB, 852x337px
>>
>>54278052
first parameter is the array size
second parameter is the taxicab radius
>>
>>54278036
>a diamond ARRAY
2d array. It's literally the same shit only you need to do an assignment instead of printing.
>>
>>54278052
nice semicolons
>>
>>54277470
there are different ways to do it but just off the top my head

memset zero

for setting 1's just use the same type of shit as what you'd do when printing triangles

how is this hard
>>
Daily Programming challenge

Print the letter X in your programming language

Bonus Challenge

Print the letter Capital i
>>
>>54278099
that's the syntax for lists in F#
comma is a tuple

did you want me to print it without?
>>
File: transparence.png (380KB, 1655x1240px) Image search: [Google] [Yandex] [Bing]
transparence.png
380KB, 1655x1240px
>>54278065
Good job, microfriend, it's very nice and elegant, I like it. Still feel free to sabotage the death start from the inside as much as you want tho.
>>
>>54278109
the actual code I meant
>>
>>54278109
Thanks kind anon.
I'm not this guy.
>>54278133
>>
>>54278108
X
I
>>
https://www.youtube.com/watch?v=s1-EFPqrT24

clinton shills are the worst
>>
File: eg3.png (26KB, 881x311px) Image search: [Google] [Yandex] [Bing]
eg3.png
26KB, 881x311px
>>54278133
?
>>
>>54277059

>how much code do we need to draw a single pixel
Well, first off, SFML isn't one library, it's several. Things like FLAC, Vorbis, and OpenAL only really apply to the audio library obviously. Windowing needs to interface with whatever is native on the given operating system, which on Unix platforms is typically X11. So all of that Xlib/Xcb crap is just "make a Window within which to draw a pixel". You don't really need Libfreetype or Libjpeg to draw a pixel, but you do if you want to blit text or images to the screen. Pthreads is obviously for SFML's threading library, which is optional, but I think used also as part of the audio library (because audio should be handled in a separate thread, naturally).

So I guess... OpenGL is the only thing associated with just drawing pixels. But you wouldn't use SFML just to draw a pixel. You'd use it for creating a complete 2D game, which you'll probably want most of its features in.
>>
>>54278210
why do your lines not end in semicolons?!
>>
I wrote a small bencoder yesterday and it's possibly the most horrible looking thing I've ever written
>>
>>54277059
i don't think a game that draws a single pixel would be much fun

might make for good steam greenlight youtube bait though
>>
>>54278230
Why would they?
>>
>>54278242
because looks stupid without it. how you tell easily if something is word-wrapped or a new line?
>>
>>54278288
I think it looks stupid with it
You can tell by indentation
>>
I want to make a medium sized application that will make lots of money. What should I make?
>>
>>54278230
he's using a meme lang
>>
>learning GLSL
>copy example shaders from book
>they compile correctly
>no output
>glsl book matches the GL version of the graphics card on my computer

i fell for the meme
>>
>>54278317
VR porn game

>>54278323
you need to set up attributes and uniforms
>>
>>54278321
ML syntax is prettier
>>
>>54278306
your text editor not word-wrap? mine word-wraps and would indent a bit and be confusing with a quick scan if my project was big...
>>
>>54278323
>learning OpenGL
I remember my starter days with that, but I'd rather not. Good luck mate.
>>
>>54278333
That is not medium sized that will require a ton of work
>>
>>54278288
>how you tell easily if something is word-wrapped or a new line?
Who the fuck word wraps programming language code?
>>
>>54278333
>you need to set up attributes and uniforms

why doesnt my book say that
>>
>>54278342

This
>>54278349
>>
>>54278347
just make some shit in unity with mocap and limited interactivity
>>
>>54278349
people who don't fullscreen their texteditor like a hacker. it doesnt often need to wrap but its enabled for a reason
>>
>>54278356
it probably says something about prerequisites like you should have a basic understanding of opengl

it's really simple it's just that there are no good tutorials so it takes a long time to learn but once you've learned it it's easy as fuck
>>
>>54278372
Where is it enabled for a reason? In notepad?
>>
>>54278372
>fullscreen their texteditor like a hacker
>>
>>54278363
Unity is way too much work it's even worse
>>
>>54278382
so if your code gets too long you wont need to scroll sideways like a retard or risk missing it ;^)

confirmed for having never worked on serious project with a team
>>
>>54278372
wtf i'm pretty sure it's standard to not have automatic text wrap when programming and it's why it's suggested to have no more than 80-160 chars per line

what are you programming in, fucking notepad?
>>
>>54278406
>scroll sideways like a retard or risk missing it

>confirmed for having never worked on serious project with a team


I know I hate on newfags a lot but are you from the 1980s or something?
>>
What chems do y'all take to help programming?

I don't take any stims but I take zolpidem at night and write some of the most genius shit.
>>
>>54278404
what do you call a medium sized project then jeez

you could reasonably make a crappy game within 3-12 months with no prior experience

apply yourself
>>
so I made SHA-256 in lua because I felt like it, gonna work on SHA-224, -384, -512 now
http://pastebin.com/0XTMbrLp
>inb4 rolling your own crypto
>>
>>54278426
>zolpidem
i am sorry
>>
>>54278406
>so if your code gets too long you wont need to scroll sideways
Yes, because that is always better than word wrapping it.

Lines of code longer than 80 characters or so are often considered poorly written.

>confirmed for having never worked on serious project with a team
I've been working in the industry for years thanks. Never seen a text editor or ide that word wrapped by default and never seen anyone doing this.
>>
>>54278410
sublime, nokappa
>>
>>54278426
8 shots of Straight H20 every day every week
>>
I've posted this before but yet nobody has ever gotten back to me. I just need to know if I wrote my default constructor right when consider the .h file provided by the teacher.

lab7.h
#include <string>

class Question
{
private:
string triviaQuestion;
string answerOne;
string answerTwo;
string answerThree;
string answerFour;
int correctAnswer;

public:
Question();
Question(string question, string one, string two, string three,
string four, int answer);

void setTriviaQuestion(string question);
void setAnswerOne(string one);
void setAnswerTwo(string two);
void setAnswerThree(string three);
void setAnswerFour(string four);
void setCorrectAnswer(int answer);

string getTriviaQuestion();
string getAnswerOne();
string getAnswerTwo();
string getAnswerThree();
string getAnswerFour();
int getCorrectAnswer();

bool checkGivenAnswer(int chosenNumber);

};


#endif


Question.cpp
#include <iostream>
#include <string>
#include <sstream>
#include <fstream>
#include <iomanip>
#include <algorithm>
#include "Lab7.h"

using namespace std;

Question::Question()
{
triviaQuestion;
answerOne;
answerTwo;
answerThree;
answerFour;
correctAnswer;
}

Question::Question(string question, string one, string two, string three,
string four, int answer)
{
triviaQuestion = question;
answerOne = one;
answerTwo = two;
answerThree = three;
answerFour = four;
correctAnswer = answer;
}

void Question::setTriviaQuestion(string question)
{
triviaQuestion = question;
}
ect...
>>
>>54278442
why? it's nice kinda. I could get normal benzos but they actually put me to sleep while zolpidem makes my brain turn off but can still code and write. took it 10 mins sgo now
>>
>>54278447
What is your programming experience and education?
>>
>>54278450
that's very little, you need to drink much more, it's like 2liters for a 2m~ tall person
>>
>>54278450
thanks for reminding me to drink some water

stay hydrated everyone
>>
>>54278447
>Never seen
emacs
https://www.emacswiki.org/emacs/LineWrap
>>
>>54278464
i am really sorry for you
>>
>>54278108

This is a language I have to build a compiler for:

(* It's called ATL/1
(* ATL is short for "a teaching language" *)
(* It supports nested comments, (* like D *) *)
*)

program Challenge ;
begin
write( "XI" ) ;
end Challenge .
>>
>>54278486
plz explain??
>>
>>54278486
right on bro!
straight edge 4 lyfe
>>
>>54278465
I'm primarily a mobile developer. I've made apps for iOS, Android and Windows phone. I do mostly Android stuff as part of my job. I've done a lot of WPF and web stuff for personal projects, but not for paid work, except when a little web stuff is relevant for mobile apps.

I have a diploma in software development. Mostly self taught.
>>
>>54278492
>begin
>end

It's awful, -10/10.
>>
>>54278539
>a guy not knowing of the usefulness of wordwrap when you deal with team-code and big projects

>is "mobile developer"

why am i not surprise xD
>>
>>54278492
>nested comments
I believe you mean higher kinded comments
>>
>>54278566
Stunning counter argument
>>
kek my pc almost crashed
>>
>>54278447
>never seen anyone doing this.

I do word wrap in my IDE, usually code won't get past my threshold (120 or so), and if it does I'll break the line somehow, but sometimes HTML with validation elements, directives, and more can go past that so it's fairly useful.
>>
>>54278566
You are so cancerous
>>
NEW TRAP THREAD WHEN?
>>
If your code extends past 80 lines, it's shit.
>>
>>54278579
For html it's not so bad. But even there i prefer not to do it if there's good intentions. It makes it easier to figure out what is where.
>>
>>54278591
ok fizzbuzz man
>>
>>54278579
>HTML
of course
>>
>>54278591
depends on the language ragefag
>>
>>54278576
>almost crashed
barely an achievement. I just recently made my fresh ubuntu installation unbootable with a user-space app requesting too much ram (no swap file/partition)
>>
NEW THREAD!

>>54278623
>>54278623
>>
>>54276948
10/10
>>
>>54278546

If you want awful, consider that it allows string literals, but doesn't allow a string type. So you can write strings using the built in procedure write, but you can't manipulate them. You also can't read strings -- just integers. It's not exactly a fun language, but it's designed to be easy to compile for. Also, we have to target the professor's virtual machine he calls hc -- Hypothetical Computer.

This professor always gives fun assignments, but they're always a little bit limited, since we're always working on 10 week quarters.
>>
>>54278611
>depends on the language
Don't speak to me or my son ever again. Goodbye.
>>
>>54278633
>no string type

It's bloody awful, m9
>>
>>54278584
put back on your trip, orb

>>54278604
it's useful for pretty much all non-meme languages. even using the best ooping youre gonna be going over 80 chars easily.
>>
>>54278566
you're a fucking idiot dude you're literally the only one i've heard of that uses auto wrap for programming

what kind of shit code are you writing that needs line wrapping anyway
>>
>>54278629
is this a new record for the fastest /dpt/ deletion?
>>
New thread, free from degeneracy:
>>54278678
>>54278678
>>54278678
>>
>>54278629
MOODS = GOODS
>>
>>54278665
>even using the best ooping you're gonna be going over 80 chars easily.
sure, but scrolling isn't so hard either. Wrapping can make the code hard to read by wrecking the indentation. Indentation exists for a reason. And word wrap is almost always off for a reason.
>>
>>54278721
who the fuck is this newtrip
>>
>>54278665
you can use 120-160 chars and you can manually wrap the line with double indent

and your OOP is not as good as you think it is

fuckface
>>
>>54278721
>>54278741
>doing such bullshit instead of turning on text editor feature and using a non-meme language
>>
>>54278775
all non meme languages use indenting anon.
>>
>>54278775
KILL YOURSELF SMUG PRICK LITERALLY >99.99% OF THE PROGRAMMING INDUSTRY DON'T USE AUTO LINE WRAPPING I SWEAR YOU FUCKING SHITTER
>>
>>54278782
yes, but they dont need to overdo it becsusr of wordwrp option. with wordwrp they get wraped words without need to do much work. your teammates maybe not as smart as you so they make long line, annoying a ufkc tos croll throug it. so instead, you turn on wordwrp and it is readable easily

understands?? wordwrap is life in non-meme languages
>>
>>54278800
                                                                                                                              even 4chan doesn't use it.
>>
>>54278823
you're terrible
>>
>>54278823
>wordwrap is life in non-meme languages
Then why is it off by default in every popular IDE and text editor for those languages?
>>
>>54278864
sublime on by default
emacs on by default
visualstudio last time i used it
idk
>>
>>54278926
>sublime on by default
eh.. no

>visualstudio last time i used it
not as long as I've used it. Over 10 years now.

>idk
So it would seem
>>
>>54278926
no fucking way
>>
>>54277139
>private String firstName = null;
>private String lastName = null;
>private int age = 0;

why?
WHY?
Thread replies: 369
Thread images: 49
[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y / ] [Home]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
If a post contains illegal content, please click on its [Report] button and follow the instructions.
This is a 4chan archive - all of the content originated from them. If you need information for a Poster - you need to contact them.
This website shows only archived content and is not affiliated with 4chan in any way.
If you like this website please support us by donating with Bitcoin at 1XVgDnu36zCj97gLdeSwHMdiJaBkqhtMK