4 ms·
> At that time, I was accessing only one device (only one IP address). > But could see that in future (in few months to one year), I will need to do the same s
by jcoffland 9y ago
> At that time, I was accessing only one device (only one IP address).
> But could see that in future (in few months to one year), I will need to do the same set of command on more devices.
IMHO, this statement represents one of the biggest design smells in programming. It's usually a bad idea to write software you may need in the future. Circumstances change. Writing code is expensive and coding in anticipation of what you might need is often a waste of time.
Write code you need now, not code you may need later.
It makes sense to think ahead but if you're spending a lot of time writing code you might need, then you're probably doing something wrong.
- tonyedgecombe 9y agoYAGNI - You aren't going to need it. https://en.wikipedia.org/wiki/You_aren%27t_gonna_need_it https://en.wikipedia.org/wiki/You_aren%27t_gonna_need_it
- sasa_buklijas 9y ago> IMHO, this statement represents one of the biggest design smells in programming. It's usually a bad idea to write software you may need in the future. Circumstances change. Writing code is expensive and coding in anticipation of what you might need is often a waste of time. Completely agree, as you said, "... is often a waste of time." Unfortunately, I was not so lucky, literally 2 days after I have finished the first version of the program I needed to add 2 more IP addresses. I do agree that often is a waste of time.