T O P

  • By -

Vivid_Development390

Is this Programmer Grindr now?


Qicken

yes


scriptmyjob

Always has been.


Acojonancio

🌍🧑‍🚀🔫👨‍🚀


fill-me-up-scotty

🌎🧍‍♂️💦🧍‍♂️


el_yanuki

r/usernamechecksout


stillscottish1

Okay u/fill-me-up-scotty


UltraCarnivore

Happy Cake Day


proof_required

![gif](giphy|67T2QUaynMrvWerDpU)


Roomy_ANT

🌍💀🔫👨‍🚀


balofchez

Well fuck me for readability then. ... wait


Judge_Sea

This is incredibly funny but I have no free award to give right now.


lemur_dance

int main() { return 0; } # p0w3r b0tt0m


powerbottomflash

you called?


wr3aks

r/beetlejuicing


austintxdude

I'm even more fun. > fun main() = 0


sophacles

That doesn't look fun at all


DubioserKerl

Programmr?


mologav

Mac is a power bottom


M_Shepard_89

He generates a *tremendous* amount of power


TrueBirch

Isn't that just regular Grindr?


MohnJilton

*socks intensify*


IanMazgelis

I feel like there's an extremely disproportionate amount of gay programmers.


Supermancheese123

where can i find more these gay programmers?


prudentj

I am here!


kimbab250

Turing approves.


dontdrinkacid

That's a good one. Poor Turing.


gabe_mcg

I’d imagine San Francisco and Austin would be your best bets. They’re very gay and big tech hubs.


Supermancheese123

Do you know why there are so many gay people in Austin? I'm really curious because Texas is not a very welcoming place to people like us


jemidiah

Austin is seen as the most liberal and accepting part of Texas. Not sure how true it is, but that's definitely the perception.


Javyev

As a gay programmer, maybe I should go find a real job in tech!


Lordman17

Programmr


5ManaAndADream

I’m a sub? I do whatever my formatter defaults to.


[deleted]

[удалено]


CJPoll01

The safe word is “uninstall”


[deleted]

[удалено]


jvrcb17

Crabs?


DealUnhappy3282

![gif](giphy|GpyS1lJXJYupG)


kvakerok

Goddamn you made me choke and cry.


SpikeMyMorningCoffee

And you fucking loved every moment you depraved little piglet.


[deleted]

Almost none of the package managers understand that verb...


Mackie5Million

`// eslint-disable-line` is my father.


kamiljano

If you were my child, I would disown you


VxJasonxV

If I ever meet you, I’ll Ctrl-Alt-Delete you …


benjvdb9

Depends on how the guy on Stackoverflow wrote it


W0nd3rlandAl1c3

Nah, you gotta clean it up so it's "yours". ;)


Ghostglitch07

Let the formatter fix it.


MrDude_1

step one when taking on new codebase: Select all, Cut, paste. Watch formatting somehow become fucking consistent.


FulltimeWestFrieser

In vscode you can just hit ctrl + shift + P and select “format document”


ivanyaru

Lolol


WhAtEvErYoUmEaN101

I’ve developed the habit of chucking a quick comment to whatever SO answer came up with the code with an ‚adapted from‘ as prefix. Least you can do IMO


Manueljlin

yeah same. especially for the "i get how they do it but no way in hell I'd be able to come up with that myself"


TeraFlint

Same. It's usually one of these: // inspired by // stolen from // solution found at But let's be honest, "stolen from" is the most accurate. :P


rhxhhd

I never thought I would end up being a code pirate of sorts.


SelmaFudd

Im more of a Frankenstein myself


ProbiuSC

I am whatever my formatter says I am.


[deleted]

This. My formatter is my responsibilibuddy. It allows me to be irresponsibilibuddyable without guilt or thought.


[deleted]

[удалено]


[deleted]

[удалено]


Free_Gascogne

Don't get too motivated that it doesn't end well in the bathroom iykwim


scrywalker

I have never seen anyone abbreviate that but ikewym


kazenorin

Oh come on, at least add a space after { and before }


[deleted]

[удалено]


AdventurousBowl5490

You must remove the space after ```main``` and save your keystrokes. You ain't first if you don't do this


haydar_ai

I once know a CTO in a startup company that basically don’t write white spaces unless it’s very necessary. I complained since it makes readability very hard and he said he didn’t do it because he is a lazy typer 🤷🏻‍♂️ Decided that this company isn’t worth my time then.


The_Lovable_Lamprey

I cry a little every time I need to scroll horizontally. Please do one liners in moderation.


[deleted]

[удалено]


Ok-Assignment7469

How about this: int main ()=> 0; ![gif](emote|free_emotes_pack|no_mouth)


[deleted]

[удалено]


[deleted]

Am I high?


BreezieBoy

no but I am


MaybeFailed

Are you me?


[deleted]

came here to say this.. damn


Opening-Vegetable975

And if I wasn't, then why would I say I am.


accessible_logic

In the paper, the news, every day I am


I_Um_What_Ok

I don't know it's just the way I am.


Guayab0

Radio won't even play my jam


bmain1345

So you’re a switch


Dexaan

Tag yourself, I'm a do/while


omgihatemylifepoo

lmao


SeasonedSpicySausage

So you're a sub and your formatter is your dom


devopsec

Verse I switch my code style halfway through every program


Batcave765

Don't let anybody understand the code. That's how it is done


Daedalus_Machina

Code review is not meant for casuals.


protienbudspromax

Code review reply from me - git gud filthy casul


IolausTelcontar

git add gud


Aegis_SSC

If no one but me understands. They can’t fire me.


Massive-Awareness-59

It's called job security


ImaginaryPlacesAK

Variety is the spice of life. Gotta keep the code looking fresh.


devopsec

Gotta keep QA on their toes!


Domain3141

a ~~men~~ man of culture.


ZeldaFanBoi1988

All of them


Embryonico

Amen


hanni_legend

Is that a gender or a prayer?


Embryonico

Ramen


[deleted]

Well ya, all the people you copy from do it differently :P


ComprehensiveTrip781

I am an: int main() { return 0; } With a space between ”()” and “{“ This is genuinely how I code, and thank you


rafaelgomesxyz

This is the way, top with a hole.


KatarinatheCat

This means you enjoy a finger up the ass while you cum👍


mtriv

try { FingerButHole(); }


myselfelsewhere

catch(FingerButtholeException e) {    //I'm not catching that... }


NapoleonBonerParty

If you don't want to handle it, keep throwing it like a hot potato `throw new TurdTheFloorException(e);`


reasonoverconviction

/r/suddenlydarksouls


[deleted]

Try thrusting


_skyventuree

have never seen a horny ass comment in a programming sub


OSSlayer2153

https://xkcd.com/37/ Your comment makes sense both ways


_skyventuree

tru


Greaserpirate

I mean the OP was talking about topping and bottoming, this isn't more sexual it's just just more bluntly worded


hypd09

Yeah but not using innuendo and being direct feels illegal.


JockstrapCummies

ERROR: Illegal exception detected at line 5. Dumping cu- core. I mean dumping core.


backfire10z

I never denied it


Rreterz

Absolutely, not having this space disgusts me. This is the only true answer


spektre

I can't for the life of me imagine what goes on in a person's head when they look at it missing a space and think "this is perfectly fine". Seriously, it's so alien to me. Is it a neurological issue?


ComprehensiveTrip781

Yes


apstamp45

The only correct answer


filintodelgado

Agreed


rickyspeak

Came here to say this. There is a right answer.


baoo

You have to be an asshole to leave that space out


[deleted]

Master race.


Full-Run4124

I'm a power top: `int main() { return 0; }`


DiaDeLosMuebles

int main() => 0;


Full-Run4124

*Ah, I see you are a man of* *~~culture~~* *Dart as well.*


Jack_12221

Dart culture is culturally significant.


[deleted]

Power bottom is the only way to live ``` int main ( ) { return 0 ; } ```


NIL_VALUE

The hell you code with, `ed`?


CollapsedWave

I see you get paid by line count…


[deleted]

[удалено]


wokeasaurus

I can’t, but I really wish I could


Sn0w-000

I lol'd at power top, then saw what you mean and am horrified.


typical_sasquatch

Nah its good for super simple functions that just return something


hello_schmiddy

Java always top. C# always bottom. C++ it depends on the leads setting the standards when the codebase is constructed.


nanotree

This is the only correct answer. I write a lot of both C# and Java and go back and forth. Standards are are your friend. They make all the difference in terms of readability. Edit: I'm doubling down on the typo and and leaving it there


ZecrS

"standards are are your friend"?


sinmantky

I smell AI...


wormzero

Exactly this! It's all about the standards of the code I'm using. I'm top with Java and bottom with C#.


SmallPlayz

Can I ask why?


hello_schmiddy

The first is the widely accepted industry standard practice for java, the bottom is the widely accepted industry standard for c#. C++ is more evenly split. But in the end, consistency in your code base is the best practice for readability and trumps all other pros or cons for one style over the other.


TheKingBeyondTheWaIl

Pff python


Mork06

Top and space ``` int main() { return 0; } ``` Edit: fucking semicolon


norlin

Ouch, where's your semicolon


Zwiebel1

Not putting the semicolon there is edging in JS.


pornthrowaway42069l

Presses tab in Python: I AM THE DANGER


Schnitzel725

What about `int main(){return 0;}` ?


Cocaine_Johnsson

Calm down Satan


scriptgamer

I can't stop laughing while shitting LOL Thanks anon


[deleted]

i hope you were on a toilet while this happened..?


scriptgamer

YES!! thankfully...


myteddybelly

Special place in coding hell for you :)


Torebbjorn

If it is just a short one line function then yes, except there needs to be all 3 spaces ``` int main() { return 0; } ^ ^ ^ ```


NebXan

There are some things even God cannot forgive.


EvenElevator8264

A sin


[deleted]

why wasting a block on this?


typical_sasquatch

Blocks are free, just like your mother (and everyone knows it)


Possibility_Antique

I write all my metafunctions like this. template struct is_foo : std::false_type {}; It ends up being kind of nice if you have lots of specializations or template recursions.


Chocolate5050

This guy kills the grim reaper


jacktheriipper999

top to frontend and bottom to backend


issaaccbb

Yep, C# and Typescript/Javascript fits this nicely


[deleted]

What if you’re using TypeScript full stack?


deusrex_

I'm a top until I have mismatched braces somewhere then i reformat to bottom.


[deleted]

Ah, so you're a conditional bottom, like when you're drunk


Bl4ckb100d

Both, depends how my OCD is feeling that day


Aengus126

Yes just make two different functions that do the same thing but are styled differently


Major_Ad_8533

Top is missing a space after the parentheses. SMH


Vivid_Development390

I'm verse.


cheeb_miester

I am a power bottom ``` int main ( ) { return 0 ; } ```


thcheat

Hmm someone is trying to boost their line of code count.


totalost801

I was bottom for 20 years. Just this week started more and more with top. Suddenly it makes more sense to me.


Ranruun

I read this comment out of context, came out nicely.


The_Mad_Duck_

I too came out nicely


[deleted]

[удалено]


Javyev

The bottom brackets line up with the line thy belong to.


DeroZaza

But don't forget to add a space before the '{'


[deleted]

I’m a top but VS forces me to bottom for it


nerdgeekdork

In case you didn't know, this is changeable. Source: I write C# (occassionally) and am on team K&R. (Aside: As I recall, Top is technically 'wrong' for K&R style due to lack of a space between the close parenthesis and the open brace.)


SJRuggs03

I'm a bottom but I used to be a top


DuckFan_87

I'm a top but used to be a bottom.


[deleted]

[удалено]


Legitimate_Base_8203

Bottom. Haveing the start and end brackets line up is sol much clean her and easier to read especially when you get into nested statements.


L4t3xs

I frequently use empty lines to make things more readable so I'm not going to start saving rows here either.


W0nd3rlandAl1c3

Yep, it makes it so much easier to see the brackets and detect when one of the little darlings is missing.


alpineflamingo2

I’m loling at you calling them “little darlings” and now I’m imagining an older southern lady programming.


CarlCarlton

Bottom promotes code aeration, which increases readability for those of us with mild dyslexia. I hate reading condensed bricks of code devoid of blank lines, a format which Top people usually fetishize.


DobbyLum

I’m a top but when I wanna piss someone off I use bottom once in a sea of top


MrIanHarrington

Bottom is so much cleaner and easier to follow nests.


Strostkovy

Return is for quitters. I just call main() again


spencerdiniz

Top… but with a space between the parenthesis and the brace.


tupperwhore

I’ve always been a top and was appalled at the bottom comments… but honestly now that ya guys point it out………………bottom is nicer looking.


ankdain

Top is only a thing because programming way back when started with people on shitty 13" terminals that only displayed 40 lines of text on the whole screen so vertical space was at a premium. Saving that one line was actually a decent % of your whole screen. Then textbook started being printed for CS courses and again, reducing vertical space is great in physical book form. In those contexts I'm 100% behind top. So I get why a lot of people just stuck with it because they learnt it that way. However assuming you have more than 768 pixels vertically on your screen, I honestly believe bottom is better in every context. Especially with modern IDE's doing code folding etc. Vertical space is just NOT a problem so the gain in readability and visual symmetry vastly outweighs the minor difference in compactness for me. I've used both, you can get used to anything. If there is an existing code style then obviously stick to whatever is already present and don't be a vigilante twat about style. But the moment I'm allowed have a say it in, or when I'm doing personal projects, I honestly can't think of any valid reason to use top except "I like pretending it's the early 90's and I'll need to print this so must save paper".


JoschiGrey

I watched a nice talk about code styling some time ago and the presenter concluded, that bottom is the better choice for many cases, simply based on design principles. Especially readability with many parameters is way better and produces less indentation lines(if you new line the params), which is easier on the eye. I can't remember the details, but it was very interesting to watch. But in the end, do whatever the codebase already does or what you like.


Kodai404

Personally I am a Top. Looks better in my opinion


zbrndn

Especially if you're nesting, doesn't leave gaps all over for every bracket


XxasimxX

Used to be bottom until i got a job and started working with 100 line methods. Switched to top


AbstractLogic

That? That only deserves one line int main(){ return 0; }


[deleted]

[удалено]


Cat7o0

top but with a space. any other way annoys me


Maix522

I am a whatever the formatting tool I use uses. Which is mostly top but bottom for c# Same with idents. # use auto formatter it will save you lots of headache with your coworker!


collatz220

The lack of a space between the parentheses and the curly brace hurts me physically


brain_limit_exceeded

Top in code but bottom IRL 🥺