[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

Defend this coding style

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 12
Thread images: 1

File: image.jpg (81KB, 1085x576px) Image search: [Google]
image.jpg
81KB, 1085x576px
What's the worst style you've ever seen?
>>
>>62177722
Something that doesn't work.
You guys might think that coding styles are black and white lined but in the end people pay you to code and to get shit working.
No one fucking cares if your code follows the constraints of the clients and works almost bug free.
>>
>>62177743
the people who have to maintain it do
>>
>>62177722
I am going to have to say that you would still get paid if that code did what was required. Good thing that only other programmers give a shit but the business does not.
>>
>>62177751
Cry me a river.
I still get paid even if I care about refactoring one day and not the next.
>>
>>62177722
What's wrong with that?
>>
>>62177780
It goes against what he believes is good programming.
You see these people bitch when they have to touch anyone's code that isn't theirs.
>>
>>62177722
> see a shitty style
> run a reformatter on it
> style is as i like it

i see no problem here.
>>
>>62177722
idk if it qualifies as a style if it's internally inconsistent.
in any case code like
{ x
; y
; z
; w
}
is not hard to find. IMO it looks fine. the real drawback to using this sort of style is that it leads to (relative to a dangling { and ; style) complicated git diffs when you prepend something to the list
>>
>>62177743
It might be okay if you're doing contract work, but that shit doesn't fly in a collaborative environment.
>>
>>62177743
These braces are placed in a way that a huge bug is impending tho.
>>
>>62178351
Not only compilcated diffs but also missing where the braces are, they are barely visible and you will easily get bugs when you think something isn't in a block when it is
Thread posts: 12
Thread images: 1


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.