Keeping up with the Zenters
leavingcorporate.com
leavingcorporate.com
That fucking hurt.
But that sunk cost was my #1 motivator during the first year. I remember telling myself that I had to make this work, because if I didn't then I'd have to start all over again.
There was a point a long time ago where Xobni was very close to dying. PG said to me "Well if xyz happens then Xobni will be dead."
I was hesitant to argue against PG in those days, but I remember saying without hesitation "No, if xyz happens then I'm moving to Texas to live with my parents and eat Ramen noodles for as long as it takes to come back. I will not let this thing die." I couldn't bear the thought of starting over.
find . -regex ".*\.\(js\|py\|rb\|php\|html\)" | xargs wc -lI guess {} globbing is bash specific?
find . -name "*.js" | grep -v jquery | xargs wc -lWe've gone from about 20k to 45k LOC in 2 months.
However, this includes white space and comments. So probably 1/2 or 2/3 of that.
Here's a hypothetical example of what often happens to me:
1. Have a problem, need a module, copy a template: 100 LOC.
2. Add meat to the bones: 500 LOC.
3. Start testing & find gaps: 700 LOC.
4. Keep testing until it works (almost) perfectly: 1000 LOC.
5. Refactor, rename variables, tighten comments, pull common objects, strip out what was never really needed: 300 LOC.
A lot of work to get to 300 LOC, but I couldn't have done it without writing 1000 LOC in the first place. How do I measure that?
Writing, when done well, takes time. Some journalists write to a certain length and then shorten to improve quality. A similar process occurs when programming. A scaffolding is required and the final program is smaller. Unfortunately, this process of honing is greatly undervalued and often skipped. It takes significant time and creates less impressive statistics when you've finished. Regardless, the reduced volume of code will be create a long-term saving.
Code LOC: 1013 Test LOC: 268 Code to Test Ratio: 1:0.3
3 weeks in. But if I count all the prototypes it's probably closer to 5k lines of code. We probably need to write more code.