Story of my life. . It I Fatah'. boolean repost = true; if(repost) sendRedThumb(); public void sendRedThumb() { System.control.key(ALT, "Down"); } programming
Click to expand


What do you think? Give us your opinion. Anonymous comments allowed.
#27 - anonyanille (12/29/2012) [-]
boolean repost = true;


public void sendRedThumb() {
System.control.key(ALT, "Down");

#158 to #27 - anonyanille (12/30/2012) [-]
Wasn`t expecting a rouse of approval, thanks FJ!

boolean dayMade = true;
User avatar #40 to #27 - altairibnlaahad (12/30/2012) [-]
You forgot to put the sendRedThumb method in between curly brackets.
#46 to #40 - lawlbird (12/30/2012) [-]
You can actually left them out, at least in C if the function comes directly after the if or else. But if you are running more, for example a printf and scanf, you have to use curly brackets.
User avatar #53 to #46 - zzforrest (12/30/2012) [-]
It works in C++ as well, as long as it's on the same line or you put it in on the same line then hit enter.
User avatar #48 to #46 - altairibnlaahad (12/30/2012) [-]
Guess that it just doesn't work like that in C# or something because it doesn't work if you don't put them in for me.
#49 to #48 - lawlbird (12/30/2012) [-]
Yeah, in some languages it starts bitching, but it in C it's no problem at all.
User avatar #68 to #27 - generaljosh (12/30/2012) [-]
You also need something to keep an archive of all Funnyjunk posts, and compare the current post to those in order to determine repost status
User avatar #95 to #27 - waaw (12/30/2012) [-]
Looks like Java
User avatar #37 to #27 - FuckYouFatBen (12/30/2012) [-]
I'm proud of myself....I understood the reference.
#66 to #37 - generaljosh (12/30/2012) [-]
Not quite sure if what you did there was intentional, but I still thought it was pretty freaking funny
#2 - iron **User deleted account** has deleted their comment [-]
#38 - lawlbird (12/30/2012) [-]
>fix one bug
>create two new bugs
#47 to #38 - lastsamurai (12/30/2012) [-]
I put this / thing in, now it's green.
It worked.
User avatar #55 to #47 - ferrettamer (12/30/2012) [-]
Doesn't / usually mean you are starting a comment on that line?
#57 to #55 - lastsamurai (12/30/2012) [-]
You start **** then end **** .
When you end it you put / before a letter.
Like a paragraph starts like this <p> PARAGRAPHTEXT </p>
User avatar #58 to #57 - ferrettamer (12/30/2012) [-]
What language is that? It looks like a scripting language...
#91 to #58 - anon (12/30/2012) [-]
That's just HTML....
Basic layout of websites.
User avatar #93 to #91 - ferrettamer (12/30/2012) [-]
That's what I thought. HTML is a scripting language
#138 to #93 - anon (12/30/2012) [-]
User avatar #59 to #38 - phantomro (12/30/2012) [-]
fix one bug the whole program doesn't work anymore :)))
#23 - AlreadyExists (12/29/2012) [-]
my experience in java, basically
#36 to #23 - anon (12/30/2012) [-]
Also, dont forget about:
"Is it hard?" --> "yes" --> "use If s and its done"
Is it hard? --> no--> whats the problem?

This is programming in C basically
#78 - xmonke (12/30/2012) [-]
I used a front slash instead of a back slash, and a comma instead of a semi colon. Makes perfect sense now....
User avatar #19 - arsyro (12/29/2012) [-]
I learned how to make a calculator with C++. I am done for life guys
#79 - brocktox (12/30/2012) [-]
Took a game development class, with everyone in the class having absolutely no experience with code whatsoever, our instructor pulls up a code for a Doom mod or something (can't remember) and he asked us if it looked right. I spoke up and said "Yeah... Yeah, looks fine."
Pretty much mfw the whole class.
User avatar #163 to #79 - nightlynutria (12/30/2012) [-]
Rofl "yeah yeah..loks fine"

Oh god I dont know whats wrong with me but cant stop laughing
#89 to #79 - harleycurnow (12/30/2012) [-]
I know that feel. I failed a unit and got put with a group of retards. All i do is sit on a computer all day so i am one of the best in my year at IT. I passed half the class while i was waiting for them to catch up.
#115 - decibel **User deleted account** has deleted their comment [-]
#123 to #115 - autoxx (12/30/2012) [-]
******* broken code man... Gets me ever tim.
#124 to #123 - decibel **User deleted account** has deleted their comment [-]
#125 to #124 - autoxx (12/30/2012) [-]
Find next, find next, find next... **** , I'm an idiot.
User avatar #85 - shazmothree (12/30/2012) [-]
I took a Visual Basics class in highschool once and made a ****** version of Frogger for my final. That was my story.
User avatar #20 - thunderkrux (12/29/2012) [-]
The life of a programmer
#160 to #70 - lordleto (12/30/2012) [-]
((Woman) as Man)

for those who don't get it: bruteforce woman as man
this code does'nt work, but a friend and i was derping around with a planet project and ended up playing with the bruteforce and "as"
User avatar #107 to #70 - mindsculptorjace (12/30/2012) [-]
you forgot "woman as object"
User avatar #45 - trolljunkusa (12/30/2012) [-]
A C++ programmers life in 2 pictures. God damn
User avatar #52 to #45 - Marker ONLINE (12/30/2012) [-]
That's any programmer's life, language having nothing to do with it.
User avatar #62 to #52 - trolljunkusa (12/30/2012) [-]
Yes. But see C++ has a lot less "Help" with it. So basically you're writing a lot more, and when it doesn't work, you have to go through tons of code

I remember I was writing a code for a calculator that would help me with AP Physics, and a tiny bit of code was messed up in about 45 lines. And it took me several days to figure out what was wrong, till I posted it on /g/ and someone pointed it out
User avatar #83 to #62 - Xaftz (12/30/2012) [-]
The best way to find errors in your code is to have someone else look at it, so you got that part right.

Also, I have Visual studio premium 2012, and there's SOME level of help in it, making life a lot easier. But my props goes to those who write it without help like that.
User avatar #88 to #83 - trolljunkusa (12/30/2012) [-]
Yeah, the non premium visual was pretty ******* annoying. I recently switched to Code Blocks which I hate, but I have to learn to love it, cause Ubuntu doesn't have visualizer support
#102 to #88 - gjsmothefirst (12/30/2012) [-]
Codeblocks is great if you know how to use it, some of the advanced features of Visual Studio aren't there (like resuming your code after re-compiling - love that), but it's got absolutely everything you need to code well and proficiently.
User avatar #63 to #62 - Marker ONLINE (12/30/2012) [-]
I'll have to give you that since I've only ever used Java and Python. I don't think my major requires a C++ class until the beginning of my Sophomore year.
User avatar #67 to #63 - trolljunkusa (12/30/2012) [-]
What Major are you taking? I'm looking into colleges ATM and can't figure out whether I want to do Computer engineering, or Computer science
#98 to #67 - gjsmothefirst (12/30/2012) [-]
If you're applying to any of these for the regular term (starting Fall 2013, that is), I hope you realize the deadline is about 2 days away (for most school). There's quite a bit of writing and such to go with them, too.
User avatar #100 to #98 - trolljunkusa (12/30/2012) [-]
Im a sophomore. I don't have to worry about that till next year
#103 to #100 - gjsmothefirst (12/30/2012) [-]
wait, sophomore in HS or college?
User avatar #105 to #103 - trolljunkusa (12/30/2012) [-]
High school
#110 to #105 - gjsmothefirst (12/30/2012) [-]
Same guy that hates gaming laptops, right? (not holding a grudge, just asking).

I'm in the application process right now, and from everything I've been told, you can change majors if you want to - your selected major on your application is more of a guideline than a rule (think Pirates of the Caribbean and the pirate's code).

That being said, pick something close to your intended field
User avatar #117 to #110 - trolljunkusa (12/30/2012) [-]
I'm going for a 5 year degree (Go through a rushed bachelors and masters to get two degrees whilest only spending 5 years) can't switch degrees with that. Most likely I'm going for computer engineering. If it's to the point where I have to switch degrees it's so bad, I'll push for it.
#120 to #117 - gjsmothefirst (12/30/2012) [-]
I'm going for a 5 year degree in engineering too, it's actually the same thing for your first 2 or 3 years. Usually they compress your senior year of undergrad + all of grad school into 2 years.

But what I'm referring to happens before this. Your choice on the application isn't necessarily what you go for - it's just a suggestion. Once you actually get to your college (before you start courses), you get to talk to counselors and such that'll tell you everything you could possibly want to know about the various majors, and that's where you pick.

You've got plenty of time man, don't sweat it.
User avatar #122 to #120 - trolljunkusa (12/30/2012) [-]
Oh thats awesome!

And thanks man, I'm glad I know that now. I've been freaking out over not getting enough information before next year
#126 to #122 - gjsmothefirst (12/30/2012) [-]
No problem, I hate this just as much as you will, might as well help you out.
You honestly don't have to worry about it in your junior year either, summer before senior is the earliest I've seen anyone start caring. Some people go on college visits before that, although that's just because it's more convenient then.

Also, remember that you don't have to pick a college until after you get accepted (unless you do early decision, which is kinda stupid - you *have* to go to that college if accepted), so you can apply to a bunch and then pick later.
#104 to #103 - trolljunkusa has deleted their comment [-]
User avatar #69 to #67 - Marker ONLINE (12/30/2012) [-]
I'm in Computer Science. Word of advice, just make sure the major you're looking at in a certain school means what you want it to mean. Some schools may think electrical engineering when you say computer engineering, for example.
User avatar #71 to #69 - trolljunkusa (12/30/2012) [-]
Oh man, thanks for the heads up

Do you think University of Maryland would do that?
User avatar #81 to #71 - xmonke (12/30/2012) [-]
At one school I looked at they had programming under there communications courses. Maybe because it technically counts as a language, I don't know.
User avatar #74 to #71 - Marker ONLINE (12/30/2012) [-]
Not sure, I know nothing about the place, I'm at the Rochester Institute of Technology, and have loved in NYS all my life. Most schools probably will not, but a few may, so be wary.
User avatar #3 - zzforrest (12/29/2012) [-]
My life
"Oh **** my script won't work. C++ pleeeeease tell me what's wrong!" ( 2 hours later )
if( x = 1 )
#4 to #3 - anon (12/29/2012) [-]
Use Code blocks on ubuntu , it gives you nice warnings, if you're gonna answer me you're using vim, you shouldn't if u're making this kind of mistakes... noob.
User avatar #12 to #4 - eonelemental (12/29/2012) [-]
If you knew **** about programming you'd know that any IDE wouldn't think twice about compiling (x=1) instead of (x==1) so even Code blocks wont help there.
#30 to #12 - xelihope (12/29/2012) [-]
It depends on the language, obviously.

UNIX scripting uses if [ x = 1 ]; then
#31 to #30 - xelihope (12/29/2012) [-]
well, it can do both, if [ x == 1 ]; then, or if [ x = 1 ]; then
people tend to do the second
#97 to #31 - flyslasher (12/30/2012) [-]
I doubt people do the second. = and == operators are completely different and a language that allows you to freely switch between them only encourages terrible code writing that plagues the job market today.
User avatar #21 to #4 - malacrianza (12/29/2012) [-]
if (x=1) is a perfectly good statement. It's just a logical, layer 8 error. It won't be detected by any IDE or compiler.
#22 to #3 - flyslasher (12/29/2012) [-]
C++ isn't a scripting language
User avatar #50 to #22 - zzforrest (12/30/2012) [-]
Yeah it is.
#96 to #50 - flyslasher (12/30/2012) [-]
.-. Get your **** together if you want to write code.

Java Script is a scripting language, C++ is a compiled language. There are things you can use to interact with C++ that are scripting languages; I believe a popular one is LUA, but C++ is by no means a scripting language.
User avatar #164 to #96 - zzforrest (12/30/2012) [-]
So what you are saying is that I cannot script anything using C++? I have to use something else? Because if that's what you are saying then sorry but you need to get your **** together.
#168 to #164 - flyslasher (12/31/2012) [-]
C++ is not a scripting language. You can't script with C++. You can script with LUA and interact with already compiled C++ code.
#60 to #33 - creosote (12/30/2012) [-]
I've seen this less times than a Mew in a patch of tall grass.
I've seen this less times than a Mew in a patch of tall grass.
User avatar #86 to #60 - gmarrox (12/30/2012) [-]
-1 times?
#87 to #86 - creosote (12/30/2012) [-]
Sounds about right.
#131 - LtMcG ONLINE (12/30/2012) [-]
Java exception errors
#169 to #131 - anon (01/03/2013) [-]
Pretty much.
#9 - anon (12/29/2012) [-]
My life coding C in emacs on a Unix server and trying to fix segmentation faults.
#10 to #9 - ykjr (12/29/2012) [-]
What the hell, why was I logged out?
User avatar #11 to #10 - ScottMJfan (12/29/2012) [-]
Because magical fairy princess has no idea why his code works.
#82 - thedarkestrogue (12/30/2012) [-]
I have my associates for programming. I still have no 			*******		 clue why my code does or does not work.
I have my associates for programming. I still have no ******* clue why my code does or does not work.
User avatar #7 - altairibnlaahad (12/29/2012) [-]
This is why I'm happy C# at least tells you somewhat what you ****** up.
User avatar #54 to #7 - zzforrest (12/30/2012) [-]
Well if you work with C++, when you get an error if you look hard enough it'll tell you where you ****** up first, but it will always give you obscure reasons why like here is and example.
In File C:&#92;asdf\asdf\asdf\main.cpp line [34] err C123312_1214 "@hax":: Namespace std sounds like sexually transmitted diseases when it is the standard library
The last part is just to say - it never says anything ******* useful in the last part.
User avatar #56 to #54 - altairibnlaahad (12/30/2012) [-]
Reasons are like that in C# too, but all you have to do is click the error message and it will take you to the line of the error.
#6 - lordleto (12/29/2012) [-]
been looking for this (:
have another joke
Leave a comment
 Friends (0)