More like this, please

More like this, please.

Other urls found in this thread:

youtube.com/watch?v=04F4xlWSFh0
stackoverflow.com/questions/509211/explain-pythons-slice-notation
twitter.com/SFWRedditImages

This cant be real

>he doesn't know that 102 is an odd number

...

...

wat? this is complicating what's easy

I actually had a female friend in my course and she's currently in the 4th year (in a 5 year course) and she's 26 (she entered college when she was 18). And she programs like that.

...

>wat? this is complicating what's easy
you dont get this thread do you

Behold: the true way to compare two numbers and find the larger

This is not just more complicated, this is also plain wrong: According to this, 3 < -1.

don't forget, when they're equal, hes returning bool_v3::tralse

I dunno. I'd be tempted to use this part of it.

>(float)6

I hope this is fake

back when I first got into programming -- with no prior experience -- I wrote a fizz buzz solution in bash because of a '95% of Sup Forums can't do this' thread. I posted my solution to gloat, despite it being awful.

Fast forward in time, I'd improved in my fundamentals and was browsing a thread like this and I saw someone post my fizz buzz scrot. I recognized it as mine and was able to laugh at how retarded I was.

What I'm getting at is, code that anyone writes is going to be laughable when they're new. Post a snippet of some code that you first wrote if you're so brave.

>all the logic in one Update()

Doesn't change the fact that shitty code is funny and refactoring shitty code is fun

...

bump

Too hard

>SHA1
SHAT

From a quick glance, this looks like a sleep sort, the best sort algorithm there is.

Is that for real?

Does C# not have switch statements or some shit?

Is this real?

of course it does, the author is just an idiot

...

Thanks Sup Forums. You never disappoint.

has 115 followers

...

...

Impressive

>typename std::vector::size_type i = 1;
can somebody explain for a sepples virgin?

Better watch out cause is about to steal your job.

I have more sleep sorts, but I can't find them on my work pc.

>fast_sort
>unbounded runtime
nice meme

what if there was a natural phenomenon that sorted stuff for you? say you have an elaborate system of chutes with ramps and holes and you drop a bunch of cubes of various sizes and they come out sorted

so if you could simulate this system you could sort anything in the time it takes to simulate it

Is this truly yandre sum code? Haven't bothered to download the game.

Here's the first function I ever wrote, its not much but it's mine
float Q_rsqrt( float number )
{
long i;
float x2, y;
const float threehalfs = 1.5F;
x2 = number * 0.5F; y = number;
i = * ( long * ) &y;
i = 0x5f3759df - ( i >> 1 );
y = * ( float * ) &i; y = y * ( threehalfs - ( x2 * y * y ) );
return y;
}

...

>return tralse

Didn't know you programmed doom 3.

Hehe yeah that was me. nice 2 meet u

>get tomorrow date
>sleep
kek, made me laugh

You're my first (You) ever senpai

Likewise.
Check out a function i made :PP

int printNumbers(){
int number = 0;
int i = 0;
while(i < 100000){
System.out.println(number);
number = number + 1;
i = i + 1;
}
return 0;
}

ihih, I'm such an haxzord :P

...

...

its just a size_t aka a long

bool checkTrue(const bool& expression)
{
if(expression == true)
{
return true;
}
else if(expression == false)
{
return checkFalse(expression);
}
else
{
std::cout

Do this:
bool checkTrue(const bool& expression)
{
checkFalse(expression);

if(expression == true)
{
return true;
}
else if(expression == false)
{
return checkFalse(expression);
}
else
{
std::cout

...

L/2
Catch exception
Fucking kek

It's real, unfortunately.
The way I've heard this was made by one of his furry friends, but I'm not so sure about that...

it is not a snippet user but it is mine

getTomorrowsDate won't even compile

What an idiot, Windows 9 also starts with "Windows 9" - when was this written? Must have been before Windows 9 came out.

im not sure what kind of bait this is but i'll take it

what is the purpose of this toy
the ball will just hit the floor

This bit really fucking annoys me.
Fucking retard developers should not be catered to.
Microsoft should have just done Win9. Everyone else has had to suffer upgrading shit even from Win7 to Win10, so should those retarded Java devs.

It's not a toy, just some tracks from a racecar track probably. (likely 2 unrelated ones at that)

But a toy that actually was level at those 2 disconnected joints between the tracks could be used to improve hand control and joint health in (former) lazy people or those with injuries.

...

youtube.com/watch?v=04F4xlWSFh0

...

What the fuck is this syntax?

It's Python. Ain't gotta explain shit.

Even LOLCODE is more acceptable.

welcome to python

it looks useful, I just don't get it
What is the logic behind the [::-1] thingy?

-1 is the step so I guess it is the same as the C for loop (integer i = 100; i != 1, i = i - 1)

stackoverflow.com/questions/509211/explain-pythons-slice-notation

>>> s = '123456789'
>>> s[::-2]
'97531'
>>> s[::2]
'13579'
>>> s[::3]
'147'
>>> s[::1]
'123456789'
>>> s[::-1]
'987654321'

Short-hand, default parameters.
A lot of languages allow you to skip groups of parameters if you specify at least one of them somewhere. (or some let you skip all of them)

I'm sure in Javascript, you can make an infinite loop with for(;;)
In this case, you are just giving the print command a shorthand slice

Huh, that's pretty neat. I knew you could slice, I just never knew you could control the steps.

and then syntax error

IN MAI datetime GIMME date LIKE DATE

SO IM LIKE FIBBING WIT N OK?
LOL ITERATE FIBONACCI TERMS LESS THAN N /LOL
SO GOOD N BIG LIKE EASTERBUNNY
BTW, FIBONACCI LIKE BUNNIES! LOL
U BORROW CHEEZBURGER
U BORROW CHEEZBURGER
I CAN HAZ CHEEZBURGER
HE CAN HAZ CHEEZBURGER
WHILE I CUTE?
I AND HE CAN HAZ HE AND I ALONG WITH HE
IZ HE BIG LIKE N?
KTHXBYE
U BORROW HE

IZ __name__ KINDA LIKE "__main__"?
COMPLAIN "NOW IZ" AND DATE OWN today THING
IZ BIGNESS ARGZ OK KINDA LIKE 1?
N CAN HAS 100
NOPE?
N CAN HAS NUMBR ARGZ LOOK AT 1!!
GIMME EACH I IN UR FIBBING WIT N OK?
VISIBLE I

How many of your comp sci class are completely retarded Sup Forums? 50% of my classmates didn't know the difference between 1++ and ++1 even after an entire lecture dedicated to this

why is random language features part of a comp sci class?

...

Pyyyyython

We were learning the fundamentals of C during our first year and each lecture was dedicated to singular shit like for loops or structs

Nature comprises chaos chaos means you know nothing. Chaos-free methods, or reduced-chaos methods (like heuristics) usually perform better. We could use simulated annealing or Dawkins weasel or GA for anything, but since we have perfect information that nature does not have (since we defined our own chaos-free universe model which is math) we can do better without involving nature.

Not compsci, but software dev 2005.
I went on a train for 35~ minutes twice a day to go to a place that was hopefully going to do a year 3 there instead of a much further University.
The only condition was good numbers for it.

Not only did 90% of my class fail those 2 years, the college I could have went to that was 5 minutes bus away also mostly failed.
I could have just went fucking there instead of the train.
The others in that class though, holy fuck they were dense as shit. Typical brogrammer types.

Still, worth it for that little nice family café and the lecturers.
The lecturers were top-tier, we (the non-retards) all went out at lunch to this café together pretty regularly.
I miss college sometimes.
We even played pic related on a last day before holidays and shared copies of downloaded TV shows and shit. They gave zero fucks about piracy. One of them even had access to a large supply of cheap USB sticks. Still have that today.

>One of them even had access to a large supply of cheap USB sticks.
it sounds comfy but my botnet senses are tingling

What's retarded is you writing this bullshit when 1 isa fucking rvalue.

Oh no they are fine.
There was just a fuckton of them bought for some reason and he just sold them off for cheap during classes.

Same with floppy disks, but they gave them away for free.

>using sleep sort to find the maximum
this really activates my almonds.

This is a really nice, concise explanation of how to slicing steps. Good job!

X[::-1]
X[start:end:step_size]
X[(omitted, so start or array):(omitted, so end of array):-1]
X[from start to end in index steps of -1]
Python indexes wrap btw, X[-1] is valid and is X[len(X)-1]

Sure if you want to be autistic about it then yes its retarded, the point is they don't know shit about something as simple as the increment operator

...

Neither did you, so why do you think you have the right to call your peers retarded? Huh, retard?

dude you are just as as retarded

So writing 1++ instead of i++ is retarded when you're only illustrating a point?

was so hard, dumbass

...

Wasn't this decompiled code?

The only point you've managed to make is that you got put in the special compsci class for special retards where they don't teach compsci and instead have an entire lecture for every C operator. And after every lecture 50% of the class + 1 more student (You) leave STILL not understanding how to use these operators correctly.

>(float)6

$ echo $(( 51 + 51 ))

Even if it was, how does that excuse all of the nested and chained if/else statements?

No.

...

Fuck you're right I'm retarded. Going to drop out of my major tomorrow