24 JUN 2022 by ideonexus

 The Car Example for OOP

The `Car extends Vehicle` or `Duck extends Bird` type of tutorial obscures more than it illuminates. In good OO programming, we don’t make class hierarchies in order to satisfy our inner Linnaeus. We make class hierarchies in order to simplify the code by allowing different parts of it to be changed independently of each other, and to eliminate duplication (which comes to the same thing). Without any context as to what the code needs to accomplish, you can’t make a judgment about whether...
  1  notes
 
10 JUN 2011 by ideonexus

 The Efforts and Rewards of Naturalism

One day I buried myself, prone, in the muck of a muskrat house. While my clothes absorbed local color, my eyes absorbed the lore of the marsh. A hen redhead cruised by with her convoy of ducklings, pink-billed fluffs of greenish-golden down. A Virginia rail nearly brushed my nose. The shadow of a pelican sailed over a pool in which a yellow-leg alighted with warbling whistle; it occurred to me that whereas I write a poem by dint of mighty cerebration, the yellow-leg walks a better one just by...
Folksonomies: nature wonder naturalism
Folksonomies: nature wonder naturalism
 1  1  notes

This passage describes the lengths the naturalist will go to in order to witness nature's miracles.