Should I clean this mess, even though I'm the new guy and haven't made any...

Xavier Sullivan
Xavier Sullivan

get a new job
Everyone uses a different code style
Both camel case and snake case. Different functions have different indentation. Some lines are 200 characters long
Should I clean this mess, even though I'm the new guy and haven't made any major contribution yet?
Should I just ignore and go along?

Attached: 1562907307703.jpg (70 KB, 622x621)

Brayden Collins
Brayden Collins

kot

Daniel Cooper
Daniel Cooper

кoт

Zachary Hill
Zachary Hill

Your best bet is to email everyone in the office and copy management on why they are wrong and you are right. should be 500 words minimum. make sure you call a few specific people out by name and that you end the email abruptly so they know you aren't messing around.

William Gutierrez
William Gutierrez

Kot.

Henry Carter
Henry Carter

Some lines are 200 characters long
rm -rf

Attached: 1505160192792.jpg (21 KB, 302x282)

Lincoln Gray
Lincoln Gray

report them all to ICE

Chase Thomas
Chase Thomas

Yeah, right. And ask for a code of conduct too?
More realistically I may make a thread on the slack to get the temperature on what the other guys think, and see if they are interested in a style guide.

Eli Morris
Eli Morris

ah, so these are the kinds of places Jow Forums posters get hired at

don't jump into right after you get hired, cause you'll just look like an asshole. so here's what you do. recommend they use a linter. drop in your own configuration file and insist all of the settings are defaults and can't be changed. trust me, with the people you seem to be working with, it'll work. then, not only must all the code be fixed, but they must bend every stylistic choice to your satisfy your every stylistic whim

Ryder Evans
Ryder Evans

Tbh it's not a big company, it's a startup.
They are mostly doing mechanical stuff and the firmware is basically interns building upon the work of other interns.
The code is in C and C++. What about using the Google style guide? It's popular so it's easily available on both emacs and vim. But most of the other guys use visual studio.

Levi Turner
Levi Turner

yes, you can use whatever style guide you want in a linter. clang-tidy works. it can be added to your CI and forced upon your coworkers lest the tests fail

unless you don't utilize CI, which somehow seems likely

Benjamin Cox
Benjamin Cox

K&R, 8 spaces

Luis Robinson
Luis Robinson

CI? CodeIgniter? What does this web stuff have to do?
I just use vanilla emacs with those clang packages that automatically format your stuff according to a style guide.

I use the Google style on my private stuff. Basiy K&R with 2 spaces

Christian Cruz
Christian Cruz

2 spaces
Indentation exist for a good reason. You're not being clever by "not wasting space".

Caleb Martinez
Caleb Martinez

Yeah, and 2 is enough. Especially if you value descriptive variable names.

Austin White
Austin White

... no, continuous integration

so if you're using git, any merges into a certain branch, for example, will automatically be built and tested. If the code doesn't build and the tests don't pass, the software doesn't go out. part of these tests can be a linter, which enforces and checks for style-guide correctness

Luke Cruz
Luke Cruz

You clearly do not understand its purpose. Perhaps when you have to clean up the mess you've made you'll make better decisions.

Joseph Gonzalez
Joseph Gonzalez

literally who cares you autismo

Joseph Edwards
Joseph Edwards

lol no
don't do shit unless you know you'll get paid extra for it

Ryder Ward
Ryder Ward

This. You're only allowed to make cosmetic changes that no one is asking for if you're a tranny. But you sound like one though. So good luck.

Hunter Foster
Hunter Foster

Introduce a company code style and ask everyone to install Prettier and follow AirBNB's recommendations.

You're welcome

Nolan Cook
Nolan Cook

Its not purely cosmetic if it makes the code easier to work with, breaking the 200 character lines down and fixing up the code would result in better productivity down the line.

Camden Cox
Camden Cox

I'd say help with the mess, make every variable look like VaRiAbLe or some shit just to annoy the others.

Attached: 208.jpg (84 KB, 1596x1600)

Caleb Lewis
Caleb Lewis

Softwrap your editor if you're that autistic about line length

Parker Baker
Parker Baker

Kot

Angel Lee
Angel Lee

You have been visited by the Laura of not great, not terrible threads.

This thread is currently reading 24 replies (not great, not terrible).

Attached: Laura.jpg (108 KB, 1275x637)

Disable AdBlock to view this page

Disable AdBlock to view this page

Confirm your age

This website may contain content of an adult nature. If you are under the age of 18, if such content offends you or if it is illegal to view such content in your community, please EXIT.

Enter Exit

About Privacy

We use cookies to personalize content and ads, to provide social media features and to analyze our traffic. We also share information about your use of our site with our advertising and analytics partners.

Accept Exit