Stitcher for Podcasts

Get the App Open App
Bummer! You're not a
Stitcher Premium subscriber yet.
Learn More
Start Free Trial
$4.99/Month after free trial

Show Info

Episode Info

Episode Info: We continue our dive into The Pragmatic Programmer and debate when is it text manipulation vs code generation as Joe can’t read his bill, Michael makes a painful recommendation, and Allen’s gaming lives up to Southern expectations. In case you’re reading these show notes via your podcast player, you can find this episode’s full show notes at and join in on the conversation. Sponsors Clubhouse – The first project management platform for software development that brings everyone on every team together to build better products. Sign up for two free months of Clubhouse by visiting – Sign up today for a free 14 day trial and get a free Datadog t-shirt after creating your first dashboard. Survey Says … Anonymous VoteSign in with WordpressWhat native language are you most interested in?Rust, because safety first.Go, because I wanna be fast and parallel.C, the old ways are best.C++, the good parts.No thanks, I have deadlines.You forgot mine, you News We really appreciate every review we get. Thank you for taking the time.iTunes: AsIRoseOneMorn, MrBramme, MP7373, tbone189, BernieF1982, Davidwrpayne, mldennisonStitcher: Ben T, moreginger, Tomski, Java Joe Blurring the Text Manipulation Line Text Manipulation Programmers manipulate text the same way woodworkers shape wood.Text manipulation tools are like routers: noisy, messy, brutish.You can use text manipulation tools to trim the data into shape.Once you master them, they can provide an impressive amount of finesse.Alternative is to build a more polished tool, check it in, test it, etc.Tip 28 Learn a Text Manipulation Language.Code Generators When you have a repetitive task, why not generate it?The generated code takes away complexity and reduces errors.And it’s reuse has little to no additional cost.Tip 29 Write Code That Writes Code.There are two types of code generators: Passive code generators are run once (scaffolding).Active code generators are used each time they are required.Passive code generators save typing by automating… New files from a template, i.e. the “File -> New” experience.One off conversions (one language to another).These don’t need to be completely perfect.Producing lookup tables and other resources that are expensive to compute.Full-fledged source file.You get to pick how accurate you want the generators to be. Maybe it writes 80% of the code for you and you do the rest by hand. Active code generators Active code generators are necessary if you want to adhere to the DRY principle.This form is not considered duplication because it’s generated as needed by taking a single representation and converting it to all of the forms you need.Great for system boundaries (think databases or web services).Great for keeping things in sync.Recommend creating your own parser.Why generate when y...
Read more »

Discover more stories like this.

Like Stitcher On Facebook


Show Info

Episode Options

Listen Whenever

Similar Episodes

Related Episodes