3 ms·
Author has a lot of terrible advice on his site. Also this code is their recommend way to convert a double to float[1]: public float doubleToFloat(double
by cratermoon 5y ago
Author has a lot of terrible advice on his site. Also this code is their recommend way to convert a double to float[1]:
public float doubleToFloat(double d) {
return (float) d;
}
1 https://www.teamten.com/lawrence/programming/dont-invent-unnecessary-requirements.html https://www.teamten.com/lawrence/programming/dont-invent-unn...
- pkolaczk 5y agoI also think a lot of advice on that website is terrible, but there are some good bits there, too. For example while the general advice to never use bottom-up programming is awfully wrong, there is some value in the example they give later - the one showing it is good to have a working version of the system as early as possible, even if it has many gaps.