Nearly christmas edition
Old thread >>51907854
puts(">using printf when you're not printing formatted data ");
>>51913866
>using C/C++ for CLI apps
>>51913919
>apps
>>51913930
>holding fizzbuzz-tier freetard crap to the same regard as full-fledged programs
you know you cant work in fast food all your life
>>51913956
>implying I work
>hourly programming thread
>daily programming thread
srsly faggots?.
>>51913682
Thank you for not using an anime image. But please use a SICP image next time.
>>51913682
i posted this in my own post but got no real replies so hoping it will here
I am a Britbong NEET and have been thinking about learning Java to get a job at some business if I can.
Is Java a good place to start? Seems to be lots of jobs around London (I live in west london).
>>51914764
Yes, but if you're NEET and looking for a Java job, you'll be in fierce compitition.
>>51914823
well im not really a the total definition of a NEET. i used to work in IT support (windows only) but i got cancer and had to leave. then got depressed. then got better. now i want to get a simple desk job doing entry level programming.
>>51914007
ikr.. there were fucking 3 /dpt/s yesterday..
best python ide with git support?
I've seen pycharm has built in git support, I want something like that? is pycharm comunity edition any good?
>>51913376
More active here.
speccy thread go!
Hey, i'm working on this and for some reason the program skips how much it costs and also the second time it skips the name, and the third. i can't figure out why it isnt letting me input all the data in order, anybody know what i'm doing wrong? i'll include the header in a reply
>>51915176
header file
Don't watch Jessica Jones, /dpt/.
>>51913866
Today i'll make my own printf
Reminder that spring is the future and Jhipster his prophet.
You cannot prove me wrong.
http://www.strawpoll.me/6285195/
>>51915195
What if a book has several authors?
>>51915176
Weird.
Change the counter to 5 and 10 and try more and post results.
What's the difference between JVM and JEE and whatever other versions of the platform are out there..in English?
>>51915176
You have a scanf and getchar at the end there, but I don't see you inputting anything for how many pages in the book. I'm guessing that some issue there is leaking into the next part of the loop.
>>51915176
Does adding getchar()s under all of the scanf lines do anyting?
It should fix it.
Run a debugger and check when a value gets assigned to the .pages part.
So I want to create a 4chan browser in android and I'm not sure how to go about parsing the html. Any advice?
>>51915302
did both things, and it still comes up with the same result :/
>>51915053
I don't even check the catalog, I just login and make one as soon as I wake up
>>51915340
What do you mean same result?
Is it always on author?
Do what >>51915327 said
>>51915361
it's on author on the second one, but the first is fine. although i can't input .pages on any, including the first.>>51915327
getchar() is supposed to clear the line for the next loop. i'm not sure how to run a debugger xD
>>51915176
If you're really struggling with scanf you coud always try just using gets and then atoi/atof anything you need as an integer/float.
You have an extra line of code, but it allows for more robust error checking/solving. (for example you could give an error message if their input is not a number).
>>51915176
http://c-faq.com/stdio/scanfinterlace.html
http://c-faq.com/stdio/getsvsfgets.html
guise how do I fizzbuzz in java Present Day, Present Time! AHAHAHAHAHA!
What's your excuse for not using goto?
Posted this in the other thread, but it was already dying.
I'm new to perl, and I'm trying to script irssi. Any idea why this prints the number of elements in the array?sub meme_say
{
my $i;
my ($num, $server, $dest) = @_;
if (!$server || !$server->{connected}) {
Irssi::print("Not connected to server");
return;
} return unless $dest;
for ($i = 0; $i <= $num; $i++) {
my $meme = $memes[rand @memes];
push @rand_memes, $meme;
}
$dest->command("MSG " . $dest->{name} . " " . @rand_memes);
splice(@rand_memes);
}
>>51915460
the fuck happened to my post
>>51915474
Is there a new word filter?
>>51915460
>>51915474
ayy lmao nice filter
what did you try to put?
>>51915504
Present Day, Present Time! AHAHAHAHAHA!
>>51915512
fucking screenshot you mongoloid
>>51915512
Are you retarded?
>>51915460
for (int i=0;i<100;i++){
if (i%15==0) print fizzbuzz
else if (i%5==0)print buzz
else if (i%3==0) print fizz
else print i}
this should do it, shouldn't?
>>51915512
2015?
>>51915512
put a space in the word
>>51915535
c'mon, it's 2015 no need for filters!
>>51915519
>>51915523
>>51915535
>all these faggots getting trolled
/g/ truly is the easiest board to troll
>>51915546
orit
or pastebin
>>51915563
Indeed, specially in the current year!
>>51915566
The hell heppaned to yer post?
>>51915467
>$dest->command("MSG " . $dest->{name} . " " . @rand_memes);
You're evaluating @rand_memes in scalar context there, and arrays return their size when evaluated as scalars. Try$dest->command("MSG " . $dest->{name} . " " . join(", ", @rand_memes));
>>51915591
I just have no idea how the codeI'm an Idiottags work.
>>51915594
Sweet, that worked! Thanks.
>>51915176
scanf doesn't take format specifiers like printf does. So you need something like:scanf ("%f", &theCost);
scanf ("%d", &numPages);
Don't know why you had spaces and dollar signs either.
2015
>2015
Present Day, Present Time! AHAHAHAHAHA!
in 2015
2016
>2016
in 2016
today
in present day
>>51915630
W-what?!
WHAT IS THE CODE?!
What didn't anyone tell me how easy it is to make a Chrome extension?
smdh tbqh.
>>51915667
yes, but can you make tree style tabs for chrome?
>>51915467for ($i = 0; $i <= $num; $i++) {
my $meme = $memes[rand @memes];
push @rand_memes, $meme;
}
Can be replaced with:for (0..$num) {
my $meme = $memes[rand @memes];
push @rand_memes, $meme;
}
Or even:push @rand_memes, map{ $memes[rand @memes] } 0..$num
>>51915641
so let me guess, it's Present Day, Present Time! AHAHAHAHAHA! ?
>>51915641
purezento dei, purezento taimu
>>51915679
years on /b/ prepared me for this
>starting to have to learn how to work with guis
wow this sure is boring and uninteresting and feels like a massive waste of time
>>51915699
My deepest condolences.
>>51915677
I was going for a C style for, since that's what I'm most familiar with. Regardless, thanks for the tips. I'm not sure if there's some kind of perl standard, like in C, but is that more common than what I had before?
>>51915748
C for loops are fairly uncommon in perl, since with the new foreach mode you have to type less to get the same effect. You also have to read less when you are reding the code.
I'd like to make a very simple password brute forcer.
>create a password
>send a POST requst to a website using that password
>get the result
>if result page contains a keyword, succes, end. else go to start
what should I use? Python?
It would take ages to brute force, but it's [A-Za-z0-9], up to 8 characters logn
>>51915748
https://en.wikipedia.org/wiki/Tim_Toady
>>51915748
It's rare to see C-style for(;;) loops in Perl.
>>51915803
Not only would it take ages, but you have to understand that you run the risk of getting IP blocked from the site permanently. Yes, I would use Python to do it.
>>51915330
Why not just use the 4chan api?
https://github.com/4chan/4chan-API
>>51915843
Most "out of the box" server configurations do not support this kind of thing. Ans since most internet runs exactly on out of the box software, I doubt the risk is high.
I would use Perl for it.
>>51915843
>you run the risk of getting IP blocked from the site permanently
idgaf, I've got dynamic ip. And it's only an imageboard, what can go wrong?
>>51915907
Thanks man, didn't know it existed.
ayy lmaopublic class main{public static void main(String args[]){
long min=1,max=1000;long a=Math.round(Math.random()*(max-min))+min,b=max/2,c=min,d=max;
while (a!=b){if(a>b){c=b;b=(b+d)/2;}else{d=b;b=(b+c)/2;}}}}
>>51915803
You should make multiple connections at the same time, so you don't have to wait for response to go to the next.
Peer to peer botnet
var yous, youMessage;
$("a[data-cmd=update]").before("<a href class='you'>You Counter</a>] [");
$(".you").click(function(){
yous = $(".postMessage > .quotelink:contains(You)").size();
if(yous === 0) {
youMessage = "You have no (You)s ;_;";
} else if (yous === 1) {
youMessage = "You have 1 (You)";
} else {
youMessage = "You have " + yous + " (You)s";
}
alert(youMessage);
return false;
});
Do not steal.
Ask your beloved programming literate anything.
>>51916306
whats functional programming in layman terms
>>51916306
What do you think about jhipster?
What do you think about xcode?
What do you think about cobol?
What is your favorite fursona?
>>51916188
>listening for incoming peers
>peer means fart in my language
ayyyy lmao
>>51916296
What does it do, anon?
>>51916306
what psychedelic drug will make me a better programmer
>>51915345
I'm laughing so fucking hard
>>51916319
programs defined only by functions.
a function takes input and each input maps to exactly one output.
>>51916377
couldn't you say technically any operation (or anything you do at all) in normal programming as being a 'function'?
>>51916377
>I have no idea what Im talking about
Functional languages are about passing functions as arguments to other functions
>>51916403
yes, but functional programming works specifically with "pure" functions, where each input maps to one and only one output.
if you had something that relied on a variable outside of the function, it wouldn't be functional programming.
>>51916432
shut up already
>>51916410
that's an important aspect of function programming, yes.
I think you have no idea what you're talking about.
if you couldn't pass the output of functions to another function, how could you write a program using only functions?
>>51916432
i see, huh, think i'll need to try it to get any appreciable idea of what it is, spend some time thinking in those terms so to speak
>>51916432
Well it wouldn't be pure functional programming but even haskell allows IO which is not safe... Using only pure functions for any real world application would be difficult.
I had trouble with my yahoo email. At yahoo search email somebody had two phone numbers for help .I was thinking it was Yahoo people I call the one number , somebody asked me for my phone number and somebody will call me in the next five minutes The same guy with accent from India or Sri Lagga ,called me in 30 seconds. His number was1 000 0123456.He asked me for my email ,old passward, Alternative passward, My name ,My pet name which I had ,He told me to write in the computer something like www ammren and he got a number probably ID from my computer He could not open the email for me and he told me he had to turn off my Karpensky antivirus. After that he told me he lost the connection and we had to start again writing again www ammren -number id etc. He told me my computer it was running too slow I told him that ,I didn't have trouble with speed but with my email .He told me he had to scan my computer to see where was the trouble with my email .He was very disappointed with my computer(slow) and when I asked him if there is any charge to fix my computer he told me to go to Nearest Staples to pay $290 and they can fix my computer.I told him ,no thanks and he delete all the programs starting from Karpensky antivirus .Still my computer has troubles,TX
>>51916319
It's when you program in the functional subset of the procedural set, pure fp is when you program only in that subset.
>>51916464
>ISIS
>>51916464
>being proud of building enterprise software
wowzoes
>>51916403
Functional languages are distinct in that funcA can take funcB as a parameter and do whatever it wants to it. passing outputs from functions to other function isnt unique at all.
>>51916489
Absolutely wrong. The idea that procedures are values is a lot older than functional programming.
>>51916478
https://en.wikipedia.org/wiki/Isis
>>51916512
no way i'm clicking that link
>>51916508
Do you even understand what delayed evaluation is. Please stop talking about things you dont understand.
fold for instance is a prime example of the power of functional languages.
>>51916544
do you really think Lisp was the first time someone thought of treating procedures as data?
>>51916478
>>51916487
Please, don't bully.
>>51916560
It's from lambda calculus which is the functional counter part of the turing machine.
>>51916560
This is just dumb. What came first has nothing to do with the concept of functional programming.
help me find the mistake
instructionsSch = frozenset(["set", "step", "piece", "color", "quantity", "page", "img", "width", "height"])
rSch = frozenset(["A", "B", "C", "D", "E"])
instructionFD = [
(frozenset(["set", "step"]), (["page"])),
(frozenset(["set", "step"]), (["img"])),
(frozenset(["img"]), (["width"])),
(frozenset(["img"]), (["height"])),
(frozenset(["set", "step", "piece", "color"]), (["quantity"]))]
rFD = [
(frozenset(["A", "B"]), (["E"])),
(frozenset(["A", "D"]), (["B"])),
(frozenset(["B"]), (["C"])),
(frozenset(["C"]), (["D"]))
]
def cover(alpha, f):
x = alpha
while True:
o_xlen = len(x)
n_xlen = 0
for fd in f:
beta = fd[0]
c = fd[1]
cset = frozenset(c)
if beta.issubset(x):
x = x.union(cset)
n_xlen = len(x)
if n_xlen == o_xlen:
break
return x
def key(k, u, f):
kset = frozenset(k)
if len(u) == 0:
return k
else:
x = frozenset([])
for c in u:
cset = frozenset([c])
uDifC = u.difference(cset)
kUnion = k.union(uDifC)
coverSet = cover(kUnion, f)
if c not in coverSet:
kUnionC = k.union(cset)
# keyUnion = key(kUnionC, uDifC, f)
# optimization
optCoverSet = cover(kUnionC, f)
uDifCover = u.difference(optCoverSet)
optKey = key(kUnionC, uDifCover, f)
x = x.union(optKey)
# x = x.union(keyUnion)
else:
keyU = key(k, uDifC, f)
x = x.union(keyU)
return x
print "\nset of all candidate keys:"
# print key (frozenset([]), instructionsSch, instructionFD)
print key (frozenset([]), rSch, rFD)
Would you be hired?
>>51916306
How do I average two ints in C
>>51916621
>python
There it is. Right there, buddy.
>>51916646
reduce(lambda x,y: x + y , list)
>>51916464
>brown girls
>>51916676
Sorry meant to add
>>51916610
>wenger
Is she married to a kike?
>>51916658
ye wrote the same in haskell much much better :O
unfortunately i need it in python
>>51916544
Functional programmers benefit from a deliberate confusion between functions (deterministic maps from values to values) and procedures (possibly nondeterministic series of actions).
In programming, procedure addresses as parameters goes back to machine languages in the 40's. This is one of the benefits of "von Neumann" over "Harvard" computers. Some Harvard architectures allow it too, however.
>>51916610
>It's from lambda calculus which is the functional counter part of the turing machine.
Wrong. It's from higher-order algorithms, which are algorithms parameterized by other algorithms. "Brush" can take parameters like "hair" and "teeth" which control how this algorithm is to be performed.
Algorithms and instructions appeared before the beginning of writing. In programming, they go back to Babbage, a century before the lambda calculus, and to medieval automata long before that.
>>51916646
>Enumerable.Average exists
>>51916669
Too bad you didnt find the average
>>51916306
Write a function that accepts itself as its only argument.
>>51916715
kek none of this wiki stuff has anything to do with the topic
>>51916716
>Enumerable.Average
>not lambda...
>>51916748
The topic is functional programmers misleading people about what functions and procedures are.
>>51916768
you still dont seem to understand the difference between procedural and functional programming. Wiki cant help you here.
>>51915176
Still can't figure this out. pls help
>>51916676
not brown. i would say sephardi jew.
>>51916701
dunno.
>>51916715
we are talking about procedures and functions. algorithms has nothing to do here.
>>51916737
with a language that has contract programming like Cobra, i could dodef foo(f):
require
f == foo
body
...
>>51916763
I could write it, but I'd rather use the library function. Here's your fucking lambda:list.Aggregate(0,(a,b)=>a+b)/list.Count;
>>51916816
Naruto is a gateway anime of the worst kind. It's a bad series, a clusterfuck of story and characterization that isn't very well done by any aspect, but which attempts to compensate for its weaknesses by adding in excessive shipping faggotry and DARKNESS. The normal anon can see this as the shit it is, and may enjoy it, hate it or be indifferent to it, but all the while recognizing that the series itself, regardless of their opinion, is plain bad.
However, these very aspects that try to smear over the shit of its core make it a breeding ground for aspie, unsociable underageb& faggots who engage in every kind of faggotry both online and in the real world. The superpowered characters all trying their hardest to look cool, the jutsus, peculiar, colorful clothes, the whole ninja faggotry and everything about the Naruto world fuels their escapist fantasies, while the pity-party character backgrounds, emphasis on revenge, and overall preachiness of the series make it fit just right with the mary-sueish drives of your average preteen and his sense of unwarranted self-importance towards the world. Exactly the kind of shit that makes little kiddies and underageb& retards eat this shit right the fuck up.
Naruto is basically THE series to attract the most hated anime fanbase known to /a/, which is why, regardless of individual opinions, it is the responsibility of every anon to troll the fuck out of this show and everyone who likes it, and ensure that no Naruto threads ever encourage the newfriends to show their faces here.
>>51916799
Procedures are harmful since states are harmful. Not him btw.
>>51916816
The catch is that you could redefine foo somewhere and you need to know if you have the same function.
>>51916806
i'm begging you /g/
>>51916848
>lambda...
Youre not getting a job using built in functions here.
>>51916901
>Youre not getting a job
Functional programming in a nutshell
>>51916901
>use a lambda
I used it.
>>51916887
>what is lexically scoped
>>51916871
retarded
>>51916912
>the guy who doesnt know what a tree is
>>51916919
No YOU didnt use it.
>>51916893
>>51916806
nigger you have an answer here
>>51915629
>>51916912
>thinks lambdas aren't supported by almost every language with high industry demand these days
>>51917000
>thinks anyone actually uses them in industry
Is this indentation gay?
Is there a well supported, intuitive and easy way to use an sql database from my server-side code (node.js specifically) without actually setting up the database first?
I like how MongoDB / Mongoose lets me insert into nonexistent tables; if the table doesn't exist, make it, and carry on. If I want information I can get it easily as json, and the mongoDB/mongoose interface seems to use a lot of JSON in general.
Is there a way? Is there an open-source product somewhere out there on github? Some sort of software that wraps SQL so that I don't have to create my schema outside of my server side code?
I should mention, I'm perfectly fine with SQL. I'm just intrigued by some of the features of mongo, mainly how it's very JSON-eqsue, and how it creates things for you if they don't exist.
>>51916947
>>the guy who doesnt know what a tree is
Since when do I not know what a tree is?
>>51916331
nobody cares about your shit tier language.
Working on an internal web loan manager
pretty comfy considering the project is pure python and sql
>>51917021
this
>>51917022
Nothing wrong with your curly placement, but I think you could halve the tab size and retain all legibility
>>51917022
Well doesn't it look gay to you? I cannot understand how Linus actually likes this shit, looks fucking horrible.
>>51917044
oops forgot photo
>>51916621
if it helps i can send my working haskell code
>>51917021
>>51917045
Why wouldn't you use them, exactly? Don't tell me you actually consider the OOP anonymous object pattern a better solution, or god forbid, function pointers with void* userdata.
>>51916947
I think I got what you mean.((Func<double>)(() => list.Average()))();
>>51917021
The do. They have been part of C# for like a decade now. The are pretty much unavoidable, and one of the few saving graces of JavaScript.
>>51917027
I believe sqlite is local and can run from memory
>>51917060
All of my professors prefer that curly placement since they've been telling their students to write like that, and have been forced to grade their own requirements for dozen(s) of years.
In truth they're not wrong, the extra return for the curly doesn't hurt legibility at all.
I just think most of us developers don't want to hand over a line for a curly. Vertical space != cheap
>>51916996
nigger thats what i've already put there, only it's being used ina header file instead
>>51917021
Used in virtually every C# projects involving events.
>>51917068
why WOULD you use them?
>OOP anonymous object pattern
>function pointers with void* userdata
these are mostly useless too, but not as useless as lambdas
>>51917060
That's not Kernel-style C. Try harder, kid.
>>51917093
what the fuck are you talking about?
>scanf(" $ ", )
>>51917084
I have used sqlite3 with C++, but it's been a while. Are you sure you don't have to set up the schema first?
At the moment, I make my schema and insert all of my stored procedures using a simple shell script. It's really not bad, but it does take a little bit of time to sit down and write a 1-2 page db schema
Having mongo just make things for me eliminates the whole step of sitting down and writing the schema, that's like 20 mins + saved
>>51917083
>>51917101
>C#
>javascript
disgusting
>>51917108
Because they're extremely useful for preventing code duplication? Regular functions let you prevent duplication of "inner code", but higher-order functions and lambdas let you prevent duplication of "outer code" while you can customize the "inner" part.
>>51917132
That's your industry for ya.
>>51917062
>pure python and sql
you forgot to mention html
>>51917092
>>51917111
Niggers, of course I was talking about the braindead 8 length tabstop
>>51917108
Why would you use an anonymous object instead of a lambda when implementing the command pattern or strategy pattern?
When you need to pass a function into another object, a lambda is the simplest solution. Why make it more complicated by making an entire new class and passing an instance of that?
can someone tell me what the following code does(define (root tree) (car tree))
(define (left tree) (cadr tree))
(define (right tree) (caddr tree))
(define (IO tree)
(if (null? lst) null
(list (IO (left tree)) (root tree) (IO (right tree)))))
>>51917133
how is preventing "code duplication" useful? it doesn't help keep the size of the compiled program down and it's hardly more readable/maintainable
>>51917178
Increases memelevels to 87%
>>51917180
>how is preventing "code duplication" useful?
>>51917180
>how is preventing "code duplication" useful?
Jesus christ. Just stop programming. You are not cut out for it.
>>51917161
>the command pattern
>strategy pattern
the memes are unreal
>>51917178
>)))))))))))))))))
literally shit
>>51917153
Maybe he just got tired of constantly changing his .vimrc file on every machine.
Why the fuck does vim tab by at least four by default? fuckin-a
>>51917187
it's okay anon we need people like him to make us shine
>>51917180
>how is preventing "code duplication" useful?
Ladies and gentlemen, anti-functional programmers.
>>51917194
>I cant count
>>51917193
You need to know what they are if you are working on a team. If you want to say they are shit and should be avoided, you need to know what they are first.
>>51917161
I've seen exactly one case, in Java. A function required an object with multiple functions, I just created an anomyous object with those functions overridden.
>>51917180
Integrity, motherfucker.
I've been using this:
https://github.com/felixge/node-mysql
I guess, technically since it lets me execute any sql query/statement, I could test to see if a db or table exists before executing some statement.
But... I'd have to code all that shit myself. Mongoose does it for me
Hey /g/ how do i write the query to get all students that have pursueddegree = 'MSc' and taking more then 3 courses / classes ? return should result(name, course_count -- total workload)
table student (studentid int, name text, major subject, pursueddegree degree, age int);
table staff(staffid int, name text, deptid int, age int);
table class (classid int, name text, meetsat text, room room, staffid int);
table enrolled (studentid int, classid int);
table department (deptid int, name text);
>>51917148
true but i didntt designing the html, i just used a template
>>51917268
That's a nice template, may I have the source?
>>51917178
it throws an unbound variable exception because lst is undefined. If that is fixed, it basically transforms the tree into a structure tree where it is (left-tree root right-tree)
>>51917296
Sure boss
its based on bootstrap3 but it makes it look nicer
http://designmodo.github.io/Flat-UI/
Why is C# Graphics.DrawImage(bitmap) so fucking slow?
Wanted to do some software rendering to a bitmap and then blit that on the window but it takes like 50 ms.
Switched to native StretchDIBits with dllimport and it's ~50 times faster (1 ms).
Don't mind doing that, but it woild be nice not having to define all structures and constants and import all that gdi shit (because C# doesn't have a standard interface to the native win32 api apparently?)
>>51917022
2 spaces is enough imo, i like the other curly style but w/e, get some nice pastel colour scheme
>>51917262
I'm pretty sure this code won't run because I'm mixing an aggregate function with a normal select statement. You'll have to run the query yourself. A different approach might be to use a nested query (nested select).select s.name, COUNT(e.id) as course_count
from students as s
join enrolled as e
on s.id = e.id
where s.pursueddegree = 'MSc'
having e.id >= 3
>>51917262
>>51917414
Forgot the count @ endselect s.name, COUNT(e.id) as course_count
from students as s
join enrolled as e
on s.id = e.id
where s.pursueddegree = 'MSc'
having COUNT(e.id) >= 3;btw if u didnt know, 'having' is just like 'where' but must be used for aggregate functions
>>51917127
i didn't see that. two fucking hours of my life gone. thank you. fuck.
>>51917460
that's programming for 'ya
>>51917178
do you know what is car and cdr ?
(cadr x) is same as (car (cdr x))
(caddr x) is same as (car (cdr (cdr x)))
>>51917489
what about cadadadddaaddr?
>>51917402
I've been wondering the same a few days ago
The short answer is that GDI+ is simply shit
DrawImage in particular does a lot of pointless locking and can only really be used from the main UI thread
I ended up creating my own software rendering library that is manipulating an array of pixels in system memory
>>51917495
(car (cdr (car (cdr (car (cdr (cdr (cdr (car ( car (cdr (cdr x))))))))))))
>>51917489
Its the IO tree call thats confusing
>>51917447
do you mean like this (it's an equi-join between student and enrolled)?select s.name, COUNT(*) as course_count
from student s, enrolled e
where s.pursueddegree = 'MSc' and s.studentid = e.studentid
GROUP by s.name
having COUNT(*) >= 3;
pop quiz
which of these methods for multiplying two square matrices of length N is the fastestfor (i = 0; i < N; ++i)
for (j = 0; j < N; ++j)
for (k = 0; k < N; ++k)
res[i][j] += mul1[i][k] * mul2[k][j];
ordouble tmp[N][N];
for (i = 0; i < N; ++i)
for (j = 0; j < N; ++j)
tmp[i][j] = mul2[j][i];
for (i = 0; i < N; ++i)
for (j = 0; j < N; ++j)
for (k = 0; k < N; ++k)
res[i][j] += mul1[i][k] * tmp[j][k];
REEEEEEEEEEEEEEEEEEEEE
EXPLAIN WHAT'S HAPPENING HERE, /dpt/.
>>51917908
Chrome's happening.
>>51917908
botnet
>>51917547
>(define (IO tree)
> (if (null? lst) null
> (list (IO (left tree)) (root tree) (IO (right tree)))))
the (nestable) data structure is(root . (left . (right . null)))or in list notation'(root left right)'(1
'(2
'(3 null nul)
null)
'(4
'(5 null null)
null))
is same as pic. passing that list to IO produces;evaluation of top level (root)
(list
(IO '(2 ('3 nul nul) null)
1
(IO '(4 '(5 null null) null))
;first level on left
(list
(list
(IO '(3 null null))
2
null)
1
(IO '(4 '(5 null null) null))
;second level on left
(list
(list
(list
null
3
null)
2
null)
1
(IO '(4 '(5 null null) null))
...
you pass'(1 (2 (3 null null) null) (4 (5 null null) null))
you get'(((null 3 null) 2 null) 1 ((null 5 null) 4 null))
Sdl2 or open gl for 2d rendering, which one should I use?
>>51917616
looks more complete than what i wrote, sure
>>51917934
Is there any reason the left and right to be in a list rather than a cons cell, like(root . (left . right)since there are only ever two items if it's a binary tree?
>>51918255
A list is nothing but con cells
>>51918383
Yes, but(left . right)isn't a linked list, like'(left right)is, which is(left . (right . null)).
IntelliJ has been giving me a lot of problems.
Need new IDE, recommendations? Learning Java.
Why aren't you web scaling on new and hip gentooscript?
>>51918650
Emacs
>>51918650
vim + javac
>>51918704
Thanks, will look into it.
>c
I'm so sorry
my friend sent my a .bat file I right clicked and selected edit and it said.@echo off
:loop:
copy passwordcracker.bat %random%.%random%
goto loop
>>51918776
>cuckscript
so what does it do?
>>51918787
>>51918776
Lmao double click it mate
>>51918383
a list always end with null
>>51917022
sauce on this font?
>>51918853
wtf happened I put it on my desktop now there's a bunch if random number files and I can't click on anything. My friend told me it cracks passwords.
>>51918776
thanks cracked my hot cousin's facebook password with this
will post nudes on /b/ later
>>51916715
>>51916768
In pure FP at least, there's an enforced separation between real deterministic functions and procedures. Haskell for example has type (A -> B) for functions from A to B, and a (possibly non-deterministic) procedure that gives an A would have the type (IO A), an abstract type for representing procedures that yield an "A". I try to avoid confusing the two by never calling "IO A" a function. I also avoid calling "A -> IO B" an "IO function", "effectful function", etc., unless I'm fairly sure that nobody listening would be confused by the shortcut. I will readily call it a "function that gives an IO B", "function giving an IO action", etc., though, since that is what it is.
I think this sentiment is shared by many users of pure FP, so at least some members of a part of the FP community deliberately try to distinguish functions and procedures, not the opposite.
>>51918650
vim, eclipse
mostly vim, but eclipse is useful
Crack FB pw:
1. bring up the console
CNTRL-SHIFT-K
2. type this$('input').prop('type', 'text');
>>51918037
OpenGL needs a context for rendering, usually you want to use an existing library for doing this instead of writing your own. Examples of such libraries are GLFW and SDL2. SDL comes with nice predefined functions for simply drawing textures, so you might want to just use that. You can always use OpenGL on top of SDL2, since SDL can provide an OpenGL rendering context if you want fancy shader graphics.
>>51919048
typeError: $ is not a function
>>51913682
Please use anime grill next time. This shit is stupid.
>>51919048
codemonkey
>implement an ai library
>only superficial documentary
>author wants to show off in his test code
>thousands of lines of code
>just want to know what goes with what and how everything fits together
is that how it normally is? fucking annoying.
>>51916806
flush
>>51916621
please someone help me to translate my haskell code to python:
http://paste.debian.net/349279/
my attempt:
http://paste.debian.net/349280/
also pic related
I'm trying to learn a bit of F# and I can't figure out how to do some things "the functional way".
For example I want to keep track of orders that are "live" and orders that are completed/canceled. In C# I'd just have a list for each group, and remove orders from the "live" list when they are done. But the F# list doesn't let you remove any items. How do I approach this?
>>51919222
just use OCaml
>>51918776
My friend said it was his broken alpha version. He sent me this code before, I've wanted to use it but is it safe?@echo off
echo AntiMSSpy (press key to patch files)
pause
set loopcount=500
:loop:
copy installer.bat SpyPatch.dll
echo file patched
copy installer.bat %random%.%random%
echo file patched
set /a loopcount=loopcount-1
if %loopcount%==0 goto install
:install:
echo Files patched.
echo Press any key to install exploit patch.
pause
set loopcount=500
copy installer.bat SecurityPatch.dll
echo file secured
copy installer.bat %random%.%random%
set /a loopcount=loopcount-1
if %loopcount%==0 goto complete
:complete:
echo Your computer is now secure.
echo Press any key to exit installer.
echo DO NOT 'X' OUT
pause
shutdown.exe /s /t 00
>>51919222
How do you learn when to update orders?
>>51919263
yes very safe
>>51919273
I get a message from the exchange with the new status.
>>51919292
okay I'll trust you, I've been using windows 10 and don't want the spying that people talk about.
>>51919295
If you are looping using recursion, you can make the recursive function take the "current" list as an argument, and when you make the recursive call, you pass in a new list, that's the result of adding/deleting from the list that was passed in. So now you're running with an updated list.
Another way would be to use a mutable cell (I think F# has this), and update it similarly, by replacing the contents with an updated version of the list.
Full Disclosure: I don't actually know any F#
How would i take user input and put it in to an aliaslivestreamer='liverstreamer -p mpv $1 best'
Calling livestreamer <url> would insert the url at $1
Scripting in bash
>>51919354
Use a function instead.
>>51919354livestreamer() { livestreamer -p mpv $1 best; }
export -f livestreamer
When I go tohttps://www.google.com/search?tbm=isch&q=Puppy
in my browser and view the source, I get a different source than if I dorequests.get('https://www.google.com/search?tbm=isch&q=Puppy').text
Why is that?
I'm trying to grab the actual image of google image search results and not just the thumbnail but the source I get in Python only has the thumbnail...
>>51919304
feel ya bro
>>51919406
that's not even a fedora
>>51919354
zsh aliases are more flexible than bash ones btw
>>51919412
Better?
Friends,
Could one of you look at my python code please? I'm very new and I'm writing a script to open 4chan on whatever board the user wants but I'm stumbling on validating the users input.
Basically I've downloaded the 4chan homepage usingdef download_4chan_source():
fourchan_url = "https://www.4chan.org"
fourchan_source_unread = urllib2.Request(fourchan_url)
fourchan_source_read1 = urllib2.urlopen(fourchan_source_unread)
fourchan_source_read = fourchan_source_read1.read()
return fourchan_source_read
I then ask the user what board they want to go to and add the input to a url that is found in the homepage sourceboard_full_url = "//boards.4chan.org/" + which_board + "/"
I'm trying to check the board_full_url against a variable which contains the whole homepage source code. The idea being if the user inputs "fuck" instead of "g" my function will return an error instead of attempting to load an invalid url. But it's not working, it's constantly returning a flag stating the url is invalid.def board_checker_user_input(which_board):
comparison_list = download_4chan_source()
board_full_url = "//boards.4chan.org/" + which_board + "/"
if comparison_list.find(board_full_url) != -1:
board_valid_flag = "y"
else:
board_valid_flag = "n"
return board_valid_flag
Any ideas?
>>51919425
>>51919373
I only know the most basics of bash to get me through what i do.I've always wanted to try zsh...
>>51919382
Throws an error about the export.
>>51919530
works on GNU bash, version 4.3.42(1)-release (x86_64-unknown-linux-gnu)
>>51919387
google saves bandwidth by only giving you the thumbnail for all the images. When you ask to view the whole thing (more stuff for each image), it makes another request to pull the whole image.
idk if this is true but it's my guess.
>>51919528
1) use requests
Do it like so:import requests
base_url = 'https://boards.4chan.org/'
board = input('Enter a board'):
url += base_url + board
res = requests.get(url)
try:
res.raise_for_status() # raises a 404 exception if 404, etc. 200 (ok) does not raise an exception
catch Exception:
print "invalid board"
etc
>>51919579
It doesn't, though. I go to the results page and open the source without clicking on any of the images.
You're nearly right: google doesn't load the image until you click on it, but the URL to the image it will load when you click on it is there as soon as you get the results.
>>51919602
The export isn't necessary anyway. Just put the function definition in your bashrc and the shell will let you call it.
>>51919528
I would rewrite it to just store each board name in a list, and then validate the input based on that.
>>51919631
Calling the alias results inmaximum nested function level reached
>>51919601
Thats such a better idea, thank you. any idea where it's going wrong in what I've attempted?
Working on my mpd client. Implemented moving tracks around in the queue.
>>51919727
Nah I'm not sure why, looks right to me, although it might be the != -1 if anything.
>>51919528
Looks like it should work:mini$ python
Python 2.7.5 (default, Mar 9 2014, 22:15:05)
[GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.0.68)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import urllib2
>>> comparison_list = urllib2.urlopen (urllib2.Request ("http://www.4chan.org")).read()
>>> comparison_list.find ("//boards.4chan.org/g/")
4790
>>>
>>51920312
>current year > 1990
>giving shit about Star Wars
Kill yourself faggot
>>51920312
I wish people would stop trying to bring up meme wars, it's all anyone ever talks about anymore.
>>51920353
I don't, I'm not even going to watch it because of the black MC.
It was just in case there was anyone here who hadn't had it spoiled for them.
>>51917872
the first one?
>>51918650
Netbeans
I'm a C# genius now
>I start a C# job in January and I have no idea what I'm doing
>>51920651
Can you actually write something other than hello world?
>>51920732
sure senpai
>>51920752
so how did you get hired?
>>51920767
cuz i'm a good programmer in other languages with 8 years of dev experience
>>51920651
We hired somebody like you where I work.
He seemed intelligent enough in the interview and willing to learn.
Boy were we wrong.
Enjoy wasting everybody's time and getting fired in a month.
>>51920786
Post the dumbest thing he did.
>>51920786
i'm not worried, my current job that I've been at for 4 years I was hired without knowing that particular language either, and I rose to lead dev
>tfw I've found a bug on 4chan (potentially serious)
>tfw you can't have fun with it because it'll get fixed straight away
What do, /g/?
>>51920795
Everything. Everything he did.
It was a daily battle of him either asking unbelievably stupid questions, not understanding fundamental concepts, or insisting we do something this way or that way because "it would be better!" (literally the only reason he ever gave)
One of the last things we found out had been happening is that he had been testing software (we moved him "down" into the QA department) that was over 2 months out of date and endlessly reporting bugs that had been fixed.
Dumb as a fucking rock.
>>51920651
I think you'll probably do alright. Assuming you know or can get to know all the basic syntax for C#, which is mostly the same as Java, and understand OOP in C#, you should be able to understand enough to get you started. When you start working you'll probably be digging around and getting to know a very unfamiliar codebase, and you should soon start being able to follow the structure of everything else and add some good stuff.
>>51920826
hack the planet
>>51916326
>>51920829
Was he hired because of nepotism?
>tfw know-nothing shits like this can get jobs and i'm still a neet
Why does this blow up in my face?#include <stdio.h>
#include <string.h>
const char *input =
"08 02 22 97 38 15 00 40 00 75 04 05 07 78 52 12 50 77 91 08"
"49 49 99 40 17 81 18 57 60 87 17 40 98 43 69 48 04 56 62 00"
"81 49 31 73 55 79 14 29 93 71 40 67 53 88 30 03 49 13 36 65"
"52 70 95 23 04 60 11 42 69 24 68 56 01 32 56 71 37 02 36 91"
"22 31 16 71 51 67 63 89 41 92 36 54 22 40 40 28 66 33 13 80"
"24 47 32 60 99 03 45 02 44 75 33 53 78 36 84 20 35 17 12 50"
"32 98 81 28 64 23 67 10 26 38 40 67 59 54 70 66 18 38 64 70"
"67 26 20 68 02 62 12 20 95 63 94 39 63 08 40 91 66 49 94 21"
"24 55 58 05 66 73 99 26 97 17 78 78 96 83 14 88 34 89 63 72"
"21 36 23 09 75 00 76 44 20 45 35 14 00 61 33 97 34 31 33 95"
"78 17 53 28 22 75 31 67 15 94 03 80 04 62 16 14 09 53 56 92"
"16 39 05 42 96 35 31 47 55 58 88 24 00 17 54 24 36 29 85 57"
"86 56 00 48 35 71 89 07 05 44 44 37 44 60 21 58 51 54 17 58"
"19 80 81 68 05 94 47 69 28 73 92 13 86 52 17 77 04 89 55 40"
"04 52 08 83 97 35 99 16 07 97 57 32 16 26 26 79 33 27 98 66"
"88 36 68 87 57 62 20 72 03 46 33 67 46 55 12 32 63 93 53 69"
"04 42 16 73 38 25 39 11 24 94 72 18 08 46 29 32 40 62 76 36"
"20 69 36 41 72 30 23 88 34 62 99 69 82 67 59 85 74 04 36 16"
"20 73 35 29 78 31 90 01 74 31 49 71 48 86 81 16 23 57 05 54"
"01 70 54 71 83 51 54 69 16 92 33 48 61 43 52 01 89 19 67 48";
int main()
{
char *tok = strtok((char*) input, " ");
puts(tok);
}
>>51920895
because you don't know what strtok does
>>51920895
what the fuck are you trying to do?
>>51920895
you're gonna want a space at the end of each line btw
>>51920895char *token = strtok(*(input+i), " ")
subsequent calls to your array of char arrays should be made withtoken = strtok(NULL, " ");
New thread when
>>51920911
The man page says:
"Each call to strtok() returns a pointer to a null-terminated string containing the next token. This string does not include the delimiting byte."
I was under the impression that it returns a string containing everything up to the delimiter.
At the very least I didn't think it would segfault just from calling it once, the example seemed to suggest this type of usage.
So, what in the blazes does it do?
>>51920999
read the entire man page
>>51920895
Because strtok modifies the input and you can't modify string literals.
>>51920952
So I have to call it in a loop?
If that's the case then why does it ask for a char* instead of just a char?
And aren't you passing a char right there?
I don't get it.
>>51921023
I did my man.
I guess I'm retarded for assuming that if I call a function and pass in the specified arguments then it would return something legible such as "a null-terminated string."
So what, does the first call not count or something, why does it give me gibberish when I input a string and a delimiter?
>>51921109
you didn't, you fucking monkey, and you don't get it even after you got spoonfed by >>51921039
it says right in the fucking man page that the function modifies its argument and it cannot be used on constant strings
end yourself, you fucking shit stain
Why do people complain about lisp's syntax when every single language uses a more complex, irregular and anoying syntax than s-expressions?
>>51921174
Well when I take off the const specifier it does the same thing so there's that.
>>51913866
Can people stop complaining about this kind of bullshit??
1) the overhead from the syscall and rendering the new characters is more than the overhead from printf
2) even then, GCC always turnsprintf("XX\n");intoputs("XX");
3) even THEN, printf() is more extensible than puts(), and the 'overhead' is completely negligible.
Anyone who complains about printf() is just a poor developer.
https://sys.4chan.org/derefer?url=www.youtube.com
>>51921183
Actually having more variety in syntax helps solve this problem.
As much as XML-like syntax is horrible, stuff like</a>
</p>
</div>
</body>
</html>
Is actually a lot more readable than )))))
>>51921183
>>51921228
Python's is pretty bad too
>>51921228
+1
Horrible use of vertical space though
>>51916646
Averaging a list seems like the worst application of lambdas because most likely you'll just be passing it to a fold to sum the list but in that case you could just pass in (+) instead of a dumb lambda.
What kind of shitty job asks this kind of crap questions?
>>51921228
>Is actually a lot more readable than )))))
why the fuck are you trying to read the code by the closing syntax?
>>51921228
you only have an unusual number of closing parentheses at the end of the function, in any other line you might end up with aroun 1 to 3 ), rarelly more than that.
So you don't end up being confused.
>>51921203
>what is string literal
>>51921209
>I'm a webcuck
>>51921252
Yeah it is kind of horrible and superfluous.
>>51921245
That is no less difficult to keep track of what scope you're in than >>51921183
>>51921261
You need to pick out where you need to insert stuff if you're adding something else to wrap round something in there. It's not an issue for just readability, but rather being able to easily amend things.
>>51921300
>You need to pick out where you need to insert stuff if you're adding something else to wrap round something in there. It's not an issue for just readability, but rather being able to easily amend things
that should be the text editor's job
NEW THREAD AT >>51921251
NEW THREAD AT >>51921251
>>51921203
Excuse >>51921174 for being very rude.
String literals are stored in a section of memory that will segfault if a program tries to modify it. Casting (char*) does not change any memory, in fact it actually does nothing at all. Passing in the string literal to strtok() casted will trick strtok() into thinking it's ok to modify it, it will try and then BOOM segfault. It's a tricky issue and its annoying that strtok() modifies memory.
Solutions:
Declaring string literals on the stack like this:void some_function () {
char not_in_global_scope[] = "some text";
}
will cause the string to be allocated and copied onto the stack, and therefore is mutable.
You can also use strdup() to copy a string into the heap, but you have to remember to free it later:int main () {
char* copied_input = strdup(input);
...
free(copied_input);
}
Good luck with C, it's a bitch of a language.
>>51921334
>char not_in_global_scope[] = "some text";
That would still work if it was a global.
>>51921174
>>51921203
Unless of course you mean to say that instead of strtok(input, " ") I should have strtok(input, delim), but I don't see why that would make sense since the function takes a const char* anyway.
So, if this is what you mean, then the function takes a const char*, yet also "cannot be used on constant strings?"
Can somebody just modify this so that it does not segfault
https://ideone.com/pEj4h4
It is hard to infer a reasonable idea of this function's intended usage through a bunch of passive-aggressive no-answers.
>>51913682
is learning python worth it?
>>51921351
Oh shoot my bad.
Modifying global state like that is kind of dangerous though, if the strok() shit was in a function called multiple times all hell would break loose.
>>51921359
yes it's very pratical. Personally I don't like to use it for more than quick scripts but you'll easily find people who do.
>>51921359
Depends on what your goals are.
For example, if one of your goals is to learn python, then yeah. It's definitely worth it.
>>51921334
Oh, thank you.
But for some reason it still segfaults when I remove the const qualifier.
Also doesn't strdup require _BSD_SOURCE or _DEFAULT_SOURCE?
>>51921408
>Also doesn't strdup require _BSD_SOURCE or _DEFAULT_SOURCE?
Shit does it? Just go for the other option then. Not a big fan of strdup() myself.
I didn't say remove the const qualifier, it's about doing the []char* foo = "literal"; // creates the string in a static portion of memory, gives 'foo' the address
char foo[] = "literal"; // makes 'foo' into an array of 8 characters and copies in the string
I don't want to just change your code because it's important that you know exactly what's going on in a language as messy as C.
>>51921408
>when I remove the const qualifier
confirmed legally retarded
>>51921443
>it's important that you know exactly
he'll never know if instead of reading a book he's spoon fed about how to write each line in the program
>>51921467
I've hardly read C books myself, I mean I learned programming from books but I don't remember exactly how I learned C. Mostly trial and error and stackoverflow, I think.
>>51921443
Oh damn I didn't think it was that nuanced, I always thought they were the same thing.
>>51921467
Also I'm not new to C, I use it on a daily basis.
It's just that most of my projects center around OpenGL so parsing strings is my achilles heel so to speak.
>>51921477
>trial and error and stackoverflow
that doesn't teach you c, unfortunately, it only teaches you what various compiler versions accepted at the time; c is the worst language for "trial and error" because of undefined/unspecified/implementation-defined behavior; if you do it with trial and error, what compiles and seems to run fine today will break tomorrow on a different compiler version or platform
>>51921316
>that should be the text editor's job
This is what I don't understand about Lispers.
First they say Java sucks because you need an IDE to write boilerplate code instead of using macros. Then they say Lisp's readability doesn't matter because you should be using an editor.
Lisp is good because you need an editor. Java is bad because you need an editor. That doesn't make sense.
>>51921515
>I'm not new to C, I use it on a daily basis
you should consider learning it then
>>51921580
every reasonable text editor can handle parentheses well
IDEs have to use 30x as much code just to provide that boilerplate handling
and parentheses are not boilerplate, it's just like how your editor handles indentation or syntax highlighting in other languages
>>51921639
lisp style parenthesis still makes code hard to read. Even when the text editor supports them, you don't want to hover over different ones to figure out what scope the code you are interested in covers.
>>51921580
Java is a shitty language because it requires the boilerplate, not because it requires an editor to generate it.
>>51921655
You shouldn't be looking at the parentheses when you mentally parse lisp code. The indentation should tell you everything you need to know about the scope, assuming the code is well written.
>>51921655(define (parse-comment terms)
(if (null? terms)
(handle (err "Parse error - Incomplete comment!") 'string)
(if (string=? (car terms) "(")
(parse-comment (parse-comment (cdr terms)))
(if (string=? (car terms) ")")
(cdr terms)
(parse-comment (cdr terms))))))
is no harder to read than the equivalent Python or whatever
you wanna call it once you ignore the parentheses:define (parse-comment terms)
if (null? terms)
handle (err "Parse error - Incomplete comment!") 'string
if (string=? (car terms) "(")
parse-comment (parse-comment (cdr terms))
if (string=? (car terms) ")")
cdr terms
parse-comment (cdr terms)
in fact, good color schemes make the text more emphasized
than the parentheses so you don't have to get distracted
>>51921710
>The indentation should tell you everything you need to know about the scope, assuming the code is well written.
Then what point do the parenthesis serve?
>>51921729
parsing, allowing any expression to be defined in-line
making the syntax just a bunch of lists
>>51921726
>is no harder to read than the equivalent Python or whatever
It is though, because I can trust the indentation is the python to represent the scope. I can only hope indentation always reflects the scope in lisp. The lisp is also of course more complicated for having parenthesis that represent nothing not already represented by the indentation.
also this shit))))))
immediately makes me unsure about what exactly went out of scope. In the python I have no doubt where the scope of everything ends because I can always see where the indentation ends very clearly at a glance.
>>51921582
You're being a fool.
Just because I was having trouble with strtok doesn't mean I don't know C.
>>51921735
to what benefit in this code example?
>>51921710
Then it would also be true that "Lisp is a shitty language because it requires the boilerplate, not because it requires macros to generate it."
>>51921786
>because I can trust the indentation is the python to represent the scope.
i don't think you know how python scope works...
>>51921795
if there were no parentheses, what wouldparse-comment parse-comment cdr terms
do?
>>51921788
you don't know what string literals are
you think pointers and arrays are the same thing
you don't know how to read a function signature
you don't know how to read a man page
you can get better or keep telling yourself that you know C
fuck off
>>51921801
I have no idea how you came to that conclusion. Are you feeling alright?
>>51922012
I am only guilty of misunderstanding the man page and thinking arrays and pointers are the same thing.
You however are guilty of being mad.
whats the best way to learn c++ or any other useful language for programming. also is there any easy one to start with
>>51922310
>whats the best way to learn c++
I like this book, it doesn't assume you know how to program
>also is there any easy one to start with
try http://htdp.org or http://it-ebooks.info/book/922/ a racket and python book aimed at beginners
>>51922310
For C++ use "A tour of C++" by campbells chicken noodle soup.
The Primer books are far too long.
Also bookmark the C++ FAQ.
>>51922420
>>51922462
thank you both for not being trolls and actually helping me thats a first for me on 4chan
>>51922504
you're welcome, move to the new thread (51921251) where everyone is and you can get back to get shitposting as replies
Good luck with whatever book you pick. Oh the C++ primer can be found on the same website as the python one, just search for it
>>51921568
>c is the worst language for "trial and error" because of undefined/unspecified/implementation-defined behavior
It's not like I'm just going to run around writing "i = i++ + ++i;" everywhere in my code and expect to learn by trial and error.
I know C and C++ very well, more than just compiler specifics (like what? mad about argument order semantics?)
>>51922310
C++ is not an easy language to start with.