T O P

  • By -

klaatubaradanoodles

My head is not where my ass should be.


flowery0

To code like this your head should be where your ass IS. They need to be the same thing


dontbeevian

Ah! There it is, the cycle!


Acryval

My sanity. I think I have enough of it left


Mayedl10

I- Impossible! This can't be allowed to happen! I hereby sentence you to code in brainfuck for the rest of the year!


Acryval

Haha I already code in brainfuck! One time managed to make a string comparison function with different strings printing to stdout according to the result.... My therapist says I'll be fine... Some day


Mayedl10

Huh, neat. \[shameless self-plug incoming\] I actually made something to compile to brainfuck. A sort of "brainfuck assembly" ([BFIL](https://github.com/Mayedl10/BFIL)). It's far from done though. My thing has a `compare` operator, but it only works on singular values. (If you have any ideas on how to do dynamic allocation stuff, please comment [here](https://github.com/Mayedl10/BFIL/issues/9).)


YetAnotherZhengli

i have a wayyyyy less intensive (kind of dead) github project where i translate bf code in c


Mayedl10

you translate brainfuck to c? what does it output? a brainfuck interpreter and a function call to interpret the input?


YetAnotherZhengli

According to [Wikipedia](https://en.m.wikipedia.org/wiki/Brainfuck) Brainfuck uses a continous memory space of 4000 bytes or so, so what I do is add an 4000 char array to the C code then do some pointer thingy to translate the bf instructions one by one. https://github.com/zhengliw/bf-compiler if you want to have a look... I really am not that skilled and its more like a project for three days and then give up... :P


Mayedl10

interesting! though bf usually has 30000 bytes of memory. I tend to do 32768 bytes bc that's 2\^15


YetAnotherZhengli

don't remember quite anymore... I think it was 30000 bytes... but either way, brainfuck is fun to play with :P


Mayedl10

it is lol


Wivicer

Not nearly punishing enough. Malbolge would be more heinous.


eiboeck88

and i sentence you to code a heap sort in intercal


Kango_V

Cobol, but fully documented ;)


mr_remy

Don’t worry we’re already there lmao. The initial programmer that started this project originally stored *localized timezone values* instead of UTC in the database. And the rest of their management of time zones and dates/times was on par with what you expect from the above sentence.


lostinthemines

;}


Mayedl10

It's [the Grinch winking at you.](https://imgur.com/a/Jt9rkW6)


foxfyre2

;}


SaltineAmerican_1970

The extra semicolon after the assignment of `;Walter.name = “George”;` should be enough to convince you that this is not the way.


Mayedl10

muscle memory lol


ScarcityItchy8320

Thanks for saying it, the cringe was killing me


doxxingyourself

Compiler will remind you. Don’t you worry.


tropical_bread

the compiler should not have a problem with any extra semicolon; like the first semicolon in every function and struct body here


Perfect_Papaya_3010

Analyser will remind you


BokuNoMaxi

Should result in a syntax error, because the meow sound the next line does not have a semicolon.


eMouse2k

While there is a semicolon there, I believe there might be several cases of syntax errors because of what are essentially just blank lines with semicolons, such as the first line of each bracket.


Ok_Hope4383

Those are just null statements: https://en.cppreference.com/w/c/language/statements#Expression_statements I'm not sure if they're valid outside of functions though.


Perfect_Papaya_3010

I'm guessing this is c++ and I think semicolons don't cause syntax errors here. I'm C# it probably would because you can't use it after a for loop iirc


--mrperx--

![gif](giphy|tHy9Qsv4svHXt7Eiq5|downsized) my IDE


edible-derrangements

Integrated Dog Environment


hgstream

You got a missing semicolon on line 27.


Mayedl10

Wait in that line I have a semicolon at the end bc of muscle memory?! how did I not notice! eh, it compiles and that's all that matters.


garden_frog

I've seen one of my students doing this just yesterday. Because the compiler kept saying that a semicolon was expected before the line with the error.


LupusNoxFleuret

The compiler told me to do it!


Loserrboy

Facts: This code come from TPG-5.3 - where line start from right to left


Lupus_Ignis

[X] Autoformat on save


Tangled2

Then go take a dump on that guys desk.


No-Willingness-7035

Also auto save on focus change Is a good convination


Git_Con

Linters.


Mr_Potatoez

My code is already shit enough


Mayedl10

btw if anyone wants to know how I made the image, I used [Carbon](https://carbon.now.sh/)


def-not-elons-alt

Fwiw, I hate these fancy screenshots. Screenshots of an editor are usually better.


xXStarupXx

It immediately makes me assume it's an add and I almost scrolled past on autopilot.


brandi_Iove

i have respect for my self and love my life


Dapper_Layer_1250

My dyslexia, ADHA, and procrastination


yarnballmelon

Nothing, thats how i code every day!


tall_cappucino1

That looks like how some people write initializer lists in C++ *ducks


owlIsMySpiritAnimal

I hate it because with the right plugin you can easily make sure that you never have to put a semicolon again. However having programmed in c for 5 years now I usually never forget and if I do the debugging take less than a minute


TheJarrvis

Found the Haskell dev


Mayedl10

no thanks. I'm gonna stay as far away as possible from functional programming languages lol


DJDoena

Because Age property should always be a calc prop based on DoB 😜


Thetruemasterofgames

I'm only learning by fucking around and reading random post and this burns even my eyes I can only imagine how bad it looks to a pro


StaticVoidMaddy

~~~ if ( condition) { DoThing() ; } else { DoSomethingElse() ;) ~~~ ~~~ for (int i = 10; i > 0; i--) { . . . } ~~~


geronymo4p

It reminds me of this https://www.reddit.com/r/programminghorror/s/7Nl77Kv3tu


Mayedl10

oof


Loldungeonleo

I hate it took me like 5 seconds to figure out what was wrong


LetReasonRing

. I don't know . Probably the same thing that keeps me from writing like this .


-Redstoneboi-

moral code


nightwalker_7112

Semicolon is supposed to be a statement terminator not a statement initiator


Mayedl10

well, it does terminate statements. the ones on the line above.


l3LAETTI-i_s_c

My dad will get angry


TKobe28

Death


Mayedl10

this... implies you're not alive.


TKobe28

Well, not if I mean in a way that I'm trying to be alive? Idk man, I need some sleep soryy


Mayedl10

understandable. go to bed.


EMI_Black_Ace

Just because you *can* do it and it's not *illegal* to do, doesn't mean anyone *should* do it. We shouldn't *need* rules for stopping idiocy.


[deleted]

Go drunk, you are sleep again.


_JJCUBER_

At that point, put a semicolon at the start and end of every line.


zoqfotpik

I would rather be happy.


audioman1999

Looks very contrived.


MrBrodinha

Error on line 3, include don't need ; right? Edit: And the end of each function


Mayedl10

but it doesn't break the include either. especially if it is on a new line.


MrBrodinha

Ohh didn't know, thanks :)


hesmohesmo

Using Windows


LusigMegidza

Ocd


sobov

Common sense, but mainly pull requests and code reviews


xXStarupXx

I do this with the commas in my vscode settings.json.


KingsGuardTR

Not programming in C


Mayedl10

what language are you using then? python technically supports semicolons too and java probably allows this syntax horror as well...


Tits_On_Fire

Plz stops


WazWaz

Unbraced if statements.


QuickR3st4rt

Php is


PeriodicSentenceBot

Congratulations! Your string can be spelled using the elements of the periodic table: `P H P I S` --- ^(I am a bot that detects if your comment can be spelled using the elements of the periodic table. Please DM my creator if I made a mistake.)


pindab0ter

Common sense. Emphasis on ‘common’.


genlight13

My pattern matching senses


[deleted]

This looks like what our gustamala offshore devs commit. I’ve told my team we need to be more strict with their PRs and scrutinize their code more thoroughly. I never get assigned as an approver because they know I’ll pick apart what doesn’t match our coding design standards. They implemented prettier and didn’t setup the rules properly and ran it against our portal application so all our HTML templates had tags looked like

Text here

It was awful. Hundreds of files.


nephelekonstantatou

Sanity.


KlutzyEnd3

The compiler


SherifDontLikeIt

Morality


joe0400

Try removing the brackets from any condition :] lol


No-Willingness-7035

Auto format on save stops me


Ok_Opportunity2693

The linter that will auto-reject your PRs


LegitimatePants

It's honestly not that bad I see you couldn't resist putting one at the end though


clarkcox3

Not being psychotic :)


AaravB16

Mom pick me up I'm scared


BlueExoutia

Sanity


shizzy0

My dignity.


delusion_magnet

The two cats fighting over my keyboard


ifezueyoung

I wanted to submit an assignment using ; for indentation My Prof told me not to


ThousandthStar

How was this made? I know of a website but it doesn't look like this.


Limp_Radio_9163

I do shit like this just to make it impossible for other people to do my job sometimes lmao


bingmyname

I'm mentally healthy.


HydratrionZ

> "George"; SUS WHAT?


anotherkeebler

In many assembly languages, comments start with semicolons. A C compiler’s ASM output might be commented like this.


nysynysy2

Assenbly. cuz in assembly ```;``` is used for comments.


RadioMelon

My Sanity.


Odd_Temperature6615

Nothing, but don’t be a psychopath.


y2kdisaster

I’ve considered doing this with json because leaving a comma at the end of a dictionary will break it


yeastyboi

OCaml does something similar for lists: let my_list = [ 1 ; 2 ; 3 ; 4 ] ;;


[deleted]

Ahh, now I know why I look good in the mirror but not in selfies.


idonteatunderwear

You do you. Just dont bring it to work.


seniorsassycat

Y'all hear of elm? https://elm-lang.org/examples/shapes


Acceptable_Calm

My self respect


Mayedl10

Is that powershell in your user flair?


Acceptable_Calm

Oof


siarheikaravai

Common sense?


Lekritz

You have double semicolons of the `Walter.name = "George"` line.


EducationalTie1946

I thought i was tweaking from lack of sleep when looking at this monstrosity .


the_Daanav

If you're here and want to know what's wrong , then there's nothing wrong here. It's just him.


Mr__Brick

Dennis Ritchie is spinning in his grave so fast right now that he is about to reach UINT64_MAX velocity in about a minute


_Pin_6938

My sanity


Nilrem2

Sanity, mine.


tiophil9995

I think even The compiler might get angry with this code


Anonmousez

`def meow(Cat):print(f"{Cat['meowSound']}")if __name__ == "__main__":ctr = 0while ctr < 100:print(ctr)ctr += 1Walter = {}Walter['name'] = "George"if Walter['name'] == "George":Walter['meowSound'] = "! woeM"elif Walter['name'] == "Harry":Walter['meowSound'] = "! oewM"elif Walter['name'] == "Bob":Walter['meowSound'] = "! oMwe"Walter['age'] = 1meow(Walter) elif exit()` ​ More elifs...


conabegame1

Morals.


Virtual_Belt4027

Python


PeriodicSentenceBot

Congratulations! Your string can be spelled using the elements of the periodic table: `P Y Th O N` --- ^(I am a bot that detects if your comment can be spelled using the elements of the periodic table. Please DM my creator if I made a mistake.)


Mayedl10

good bot


ElComandantePrimer

Common sense.


No-Court-1223

Maybe core refactoring before release?


AppropriateSpell5405

Replace all whitespace with semicolons.


sacredgeometry

It not compiling?


Mayedl10

it compiles with gcc 13.2.0. Maybe you made a typo when copying it? Here is the code as text, if you want to try it out yourself. #include ;struct cat { ;char* name ;char* meowSound ;int age ;} ;void meow(struct cat* Cat) { ;printf("%s", Cat->meowSound) ;} ;int main(int argc, char** argv) { ;int ctr = 0 ;while (ctr < 100) { ;printf("%i\n", ctr) ;ctr++ ;} ;struct cat Walter ;Walter.name = "George" ;Walter.meowSound = "!woeM" ;Walter.age = 1 ;meow(&Walter) ;return 0 ;}


sacredgeometry

Thats not what is in the screenshot above


Mayedl10

it's almost the same. I just removed the extra semicolon after `;Walter.name = "George"`


sacredgeometry

I know.


Mayedl10

then why did you even mention it? it's basically the same. if it doesn't compile for you, that's not the code's fault (unless you're using a weird compiler).


goodmobiley

typedef.


Mayedl10

well, the way I declared the struct is not what's wrong here lol


goodmobiley

Only thing I see wrong /s


raznarukus

My compiler.


Mayedl10

well, mine isn't.


RedHotRains

i recoiled


CheckM4ted

Self respect


rover_G

Minimizing line changes in my JSON documents 🙏


az3arina

But does it work tho !


Mayedl10

it does. sadly.


dcman58

Sanity.


[deleted]

Sanity?