Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
valyard
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
4 ms
·
1.
▲
by
valyard
12y ago
In any IDE you can set up code formatting options. By pressing a button you are essentially applying this CSS you are talking about. You can write however you want but when saving a file you (either manually or automatically) should execute
2.
▲
by
valyard
12y ago
Proper naming helps but you can't 100% trust it. bool allwaysReturnsTrue() { return false; } This is of course an extreme example (8
3.
▲
by
valyard
12y ago
If you work in a team you absolutely MUST enforce a coding standard. It better be a community standard most of developers use. All team members must use either tabs or spaces and have IDE configured to automatically apply styles. It will sa
4.
▲
by
valyard
12y ago
I don't mind improper naming because all the functions are essentially just nodes in code graph. Of course it helps if you can figure out what they do just from their names, but you have to read code anyway. Same for excessive docs. So
5.
▲
by
valyard
12y ago
OP here. You both are right. I'm not saying that DI and interfaces are bad. Of course not. I'm just trying to find a balance between modularity, loose coupling and code graph connectivity. Of course it's not just black or whi
6.
▲
Optimize for readability first. What slows down developers when reading code
(va.lent.in)
54 points
by
valyard
12y ago
|
78 comments