nameUrlParam = "name";
private final String addressUrlParam = "address";
private final String phoneUrlParam = "phone";
...;
or
private final String nameUrlParam = "name",
addressUrlParam = "address",
phoneUrlParam = "phone",
...;
first Because of clarity and uniform look
which lang is this anyway ? C# or java i guess ?
Java. It doesn't matter I think.
The first one. But better to refer yourself with an official code style of your framework or language.
i consider second one as a serious crime
2nd is good, it's actually java that sucks
yeah the code looks ugly for me in both 😑😂
The first style is mostly preferred, by everyone I know. So why the second is even allowed?! I think the second could be read faster and easier. Also it is easier to write it. Strange!
it's a practice from C
int start = 0, end = argc-1;
Обсуждают сегодня