Insidethe.com

Insidethe.com

Random Life and Technology Bits

Coding Tips from Writing Code that isn’t Needed YouTube Video

The above video,Three Flaws in Software Design – Part 1: Writing Code that isn’t Needed, was a bit long considering the content presented but there were two ideas worth sharing:

  1. Let the version control system worry about tracking dead code. I’ve worked in plenty of programs with code that I’ve been tempted to bypass because it was suspected dead code. Removing the suspected dead code might not cause the customers testing to fail but customers don’t always test their own requirements properly. Without the old code it becomes difficult to track how the program once functions unless you use a version control system. Whats worse than trying to avoid making dead code? Working around mysterious code from a long departed coder, unsure if it’s still relevant, while trying to make my own logic clear among rotting bits.
  2. Establish when functions can assume variables are well formatted and note them in the function documentation. It’s so easy to start coding away, checking for possible conditions that might have been checked closer to the user input. It’s painfully agonizing trying to return a high level validation failure from a very low level function.

If the addition videos in the series contain any pearls of wisdom they’ll get posted here.

Dell R610 Memory Configuration Documentation

A situation came up at a client site where a Dell PowerEdge R610 / R710 server was being upgraded to a non-optimal memory configuration. The document Installing and upgrading DDR3 Memory was a short and concise reference for supported configurations.

The following two documents are Dell PowerEdge Technical Guides that also came in handy to when trying to decipher the supported memory configurations.

http://www.dell.com/downloads/global/products/pedge/en/server-poweredge-r610-tech-guidebook.pdf

ftp://ftp.dell.com/Manuals/all-products/esuprt_ser_stor_net/esuprt_poweredge/poweredge-r610_Owner’s%20Manual2_en-us.pdf