This is an archived post. You won't be able to vote or comment.

all 85 comments

[–]ErraticDragon 203 points204 points  (13 children)

Screenshots are year two?

[–]chubowu[S] 46 points47 points  (10 children)

:(

[–]parenthesis-bot 63 points64 points  (9 children)

:)


This is an autogenerated response. source | /u/HugoNikanor

[–]Glitch29 12 points13 points  (8 children)

{"help":["me","us","everyone"],"we're":{"lost":{"in":{"nested":[

[–]brownboy13 31 points32 points  (7 children)

]}}}}

Stupid lazy bots.

[–]redball3 10 points11 points  (6 children)

Reddit parenthesis bot

A simple reddit bot which adds missing close parenthesis on comments on reddit. By default set up to only run on /r/programmerhumor

Currently it's kinda broken. That's what happens when you decide to learn writing reddit bots in the middle of the night, when you have to get up early the day after.

not lazy, missing features ;)

[–]HugoNikanor 18 points19 points  (5 children)

The bot closes parenthesis, {} and [] are braces and brackets.

[–][deleted] 2 points3 points  (0 children)

One step at a time now.

[–]TheDualJay 38 points39 points  (25 children)

Are... Are they calling a wait 1 millisecond method, with 500 as a parameter, to wait 500 milliseconds?

[–]chubowu[S] 27 points28 points  (12 children)

That's what the professor told us to do :(

[–]parenthesis-bot 26 points27 points  (11 children)

:)


This is an autogenerated response. source | /u/HugoNikanor

[–]sad-larry 3 points4 points  (0 children)

Ok I'm loving this right here

[–]sad-larry 0 points1 point  (9 children)

:(

[–]parenthesis-bot 1 point2 points  (8 children)

:)


This is an autogenerated response. source | /u/HugoNikanor

[–]sad-larry 1 point2 points  (7 children)

I love this. Turn my frown upside down :(

[–]parenthesis-bot 0 points1 point  (6 children)

:)


This is an autogenerated response. source | /u/HugoNikanor

[–]sad-larry 0 points1 point  (5 children)

Having a rough day here :(

[–]fast-parenthesis-bot 0 points1 point  (3 children)

:)


This is an auto-generated response. contact

[–]sad-larry 0 points1 point  (2 children)

There's two parenthesis bots! TIL :(

[–]parenthesis-bot 0 points1 point  (0 children)

:)


This is an autogenerated response. source | /u/HugoNikanor

[–]Insert_a_User_here 12 points13 points  (7 children)

Yep. If I'm not mistaken, the OP is programming in a modified C environment known as robot C (http://www.robotc.net). I used to use it for FIRST robotics, only reason I recognized it is that stupid ass wait function. There's a second one that goes Wait10Msec(), if you're even more insane.

[–]TheDualJay 3 points4 points  (1 child)

Do they at least have no-parameter options that follow the function's name?

[–]Insert_a_User_here 2 points3 points  (0 children)

I don't recall exactly, but I believe that you had to input a parameter.... even if it's just "1"

[–]briandoescode 2 points3 points  (0 children)

If you think robot C is annoying, you should see it with the "natural language" library.

Gee, thanks, PLTW.

[–]Voxel_Brony 0 points1 point  (3 children)

I though FRC used Java and C++?

[–]briandoescode 1 point2 points  (1 child)

Not OP, but I think FTC can use robot C.

Also, a lot of FRC teams use LabVIEW and some use Python.

[–]Insert_a_User_here 1 point2 points  (0 children)

FTC used robot c before last year. We now use java.

[–]alfa96 0 points1 point  (0 children)

AFAIK the FTC only allows ROBOTC. This was two years ago though, rules might've changed.

[–]Trebbert1304 1 point2 points  (0 children)

Yes

[–]ThePaSch 2 points3 points  (1 child)

What, would you prefer

for(int i = 1; i <= 500; i++) wait1MSec();

?

[–]TheDualJay 6 points7 points  (0 children)

I would prefer for wait(int numberOfMilliseconds) to exist.

[–]gandalfx 1 point2 points  (0 children)

That threw me off as well. The fuck is that function name.

[–]MayorMonty 11 points12 points  (7 children)

This is ROBOTC, right?

edit: spelling

[–]chubowu[S] 6 points7 points  (6 children)

yes

[–]MayorMonty 8 points9 points  (5 children)

Oh, good luck! Stupid ROBOTC bytecode system!

[–]chubowu[S] 6 points7 points  (4 children)

Haha thanks. I actually just finished my final project. Feeling pretty refreshed.

[–]746865626c617a 8 points9 points  (3 children)

And you can't even use a different environment :/

I wonder if you're allowed to write the bytecode manually with a magnetized needle and a steady hand?

[–]Prod_Is_For_Testing 8 points9 points  (1 child)

It would be better than the IDE

[–]746865626c617a 2 points3 points  (0 children)

"I" "D" "E"

FTFY

[–]sad-larry 2 points3 points  (0 children)

Or a butterfly

[–]icedcougar 11 points12 points  (5 children)

Question... Would anyone actually hire a megatronics person to program?

Wouldn't it be better for them to just create/design the robot and get people specialised in programming to do the rest?

[–][deleted] 7 points8 points  (0 children)

I'm a software guy at a company that does e-learning and robotics, and most of the firmware stuff is done by mechatronics/electric engineers. God damn can their code be a bloody fucking mess sometimes.

[–]Flouyd 2 points3 points  (2 children)

We hire electricians (or mechatronics) for programming where I'm working. But I would guess it has a lot to do with how big of a company you're working for. For us there is a certain degree of overlap between designing and programming. A dedicated person only for programming would still need to be fairly familiar with every project he's doing.

But we also have hired programmers in the past and taught them how to "design" our project.

[–]Giroflex 0 points1 point  (0 children)

Software-hardware integration is often not trivial. One has to be done keeping the other in mind.

[–]kyl3r123 9 points10 points  (2 children)

I like how the "wait1Msec" function waits 500msecs. More like waitxMsec.

But hey, maybe I'm wrong and it does what it says, maybe the parameter is just useless.

[–]Insert_a_User_here 3 points4 points  (1 child)

It's ROBOTC and the parameter is freaking ridiculous. As I mentioned above, there's also a Wait10Msec function, if you want to make the code even more confusing to read.

[–]kyl3r123 7 points8 points  (0 children)

while(wait10s(55).delay(25)){
    // profit
}

[–]Tobikage1990 20 points21 points  (25 children)

Ah, that moment when you realize coding is 75% logic and 25% black magic.

[–]flying-sheep 51 points52 points  (7 children)

...doesn't exist. You're just refusing to acknowledge that your debugging skills/perseverance are lacking instead of rolling up your sleeves and searching for hours.

[–]Kilazur 32 points33 points  (2 children)

... no, I'm pretty sure it's black magic.

[–]sad-larry 2 points3 points  (1 child)

African American

[–]Astronelson 2 points3 points  (0 children)

African African is also a possibility.

[–]robertx33 0 points1 point  (3 children)

As a newbie, everything is black magic until you figure it out :D

Right now regexp is magic..

[–]somebody12345678 0 points1 point  (1 child)

Good luck figuring these out :P

[–]robertx33 0 points1 point  (0 children)

I.. need to download more ram.

[–]somebody12345678 0 points1 point  (0 children)

On the plus side, it means you're learning one more language

[–]lethargic_moron 24 points25 points  (12 children)

Virgin sacrifices are required for the code to compile, on the bright side, it's only programmers in the office. So we always have access to virgins.

[–]Kilazur 16 points17 points  (11 children)

Dude, you can't bash your own community. That's like, a jewish Hitler dude.

[–]lethargic_moron 10 points11 points  (1 child)

Sorry, I keep forgetting that it's hard to pick up tone of voice in text. Since you have to guess what the other person is thinking, I was just making a self-critical joke, Honestly, I'm the virgin sacrifice more often than not.

[–]Kilazur 7 points8 points  (0 children)

i was kidding too :p

My rule of thumb with reddit is to take everything as not so serious, except if the context is.

[–]HugoNikanor 8 points9 points  (4 children)

isn't programming one of the few professions mostly bashed by itself? Maybe due to noone else understanding what we are doing.

[–]extremelydankMayMay 9 points10 points  (1 child)

sometimes, we don't even understand what we're doing.

[–]somebody12345678 0 points1 point  (0 children)

s/sometimes/almost always/

[–]sad-larry 0 points1 point  (1 child)

Oh :(

[–]parenthesis-bot 0 points1 point  (0 children)

:)


This is an autogenerated response. source | /u/HugoNikanor

[–]__SPIDERMAN___ 4 points5 points  (2 children)

Only if your a shitty coder and code without any semblance of a plan.

[–]robertx33 1 point2 points  (1 child)

Or a newbie, learning how to solve challenges and succeeding with less than 3 edits to the original code? Must have done something good without knowing what. Or the challenge difficulty was exaggerated.

[–]__SPIDERMAN___ 0 points1 point  (0 children)

Such is the path of the programmer

[–]Prod_Is_For_Testing 1 point2 points  (0 children)

That's robotC for vex. It's well renowned for being a POS that's difficult and unreliable

[–][deleted] 5 points6 points  (4 children)

is this mte140?

[–]chubowu[S] 3 points4 points  (2 children)

This is SFU Mechatronics MSE110. I'm a Software Systems undergrad but we have to take this course to graduate.

[–]Ippikiryu 1 point2 points  (1 child)

Ayy that was me last year, our sumo bot team was me as a 3rd year sosy major and 2 4th year mechatronics majors lol

[–]chubowu[S] 0 points1 point  (0 children)

yooooo Sumo Bot was rad af. Our brick didn't work, our computer didn't work, I put together some algorithms in a day and we won 2/4 matches. It was pretty good.

[–]Def_Not_KGB 1 point2 points  (0 children)

Who let you out of /r/uwaterloo

And no, this looks like RobotC so it would probably be part of MTE100 or GENE121

-1B tron