[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]

Is consistency better than best practices? Scenario 1: Codebase

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: 9
Thread images: 1

File: 1460574380484.jpg (64KB, 720x960px) Image search: [Google]
1460574380484.jpg
64KB, 720x960px
Is consistency better than best practices?

Scenario 1:
Codebase uses Util classes with static methods. In order to write unit tests for classes that call these static methods tools like PowerMock might be required. Is it worth writing the new "Utils" classes as spring beans with non static methods, which will make testing easier or keep it consistent?

Scenario 2:
"RESTful" API is not really RESTful. However, new calls are added frequently to the API. Do you make the new calls more RESTful or do you keep them consistent?
>>
>>62218186
>15L whisky
I wonder if its any good...
>>
>>62218202
It would probably be just as bad as every other whiskey
>>
>>62218186
is this real?
>>
>>62218620

This site is for those over 18.
>>
>>62218202
it is. otherwise it wouldn't say premium quality
>>
>>62219499
Can't argue with that.
>>
Consistency over anything.

Nothing is worse than the API flipping shit around. I remember working with an API that returned 0 for true and 1 for false. Then their newer API commands returned "true" and "false".

So fucking annoying having to go read docs everytime because they couldn't just remain consistent. Is this command returning an integer or a string???????
>>
https://www.youtube.com/watch?v=XehwSM9n_Ko
Thread posts: 9
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.