2 min readfrom Machine Learning

What coding practices are you adopting for development today? [D]

I have been reflecting on this while working on a project recently. Every time we start a new model, we rewrite roughly same scaffolding, data validation checks, feature transformation logic ; all of this is nealy 80 percent identical to last project

I tired templating with cookiecutter style project generators. Initially it was okay, but it drifted from reality since noone wants to maintain a template repo. So tired a shared library approach, it helped and was much better. But weiting glue code to wite everything is still bug prone

Now i am experimenting with genie code to generate the boilerplate, the repetitive code, config parsing etc. it is decent for that part, though it starts hallucinating if columns increase say lot more than 40-50. It is not silver bullet, but it is cutting down the project setup time from 3 days to less than 1 day

So the deep question i am having now is, should we even write code? The config driven approach seems to be good, but eventually we are bound to suffer in a few months time when we start needing something non standard. Is there a middle ground, writing everything from scratch - the opinionated framework that becomes prison. How have you guys been developing? What are you adopting?

submitted by /u/Wrong_City2251
[link] [comments]

Want to read more?

Check out the full article on the original site

View original article

Tagged with

#boilerplate
#code generation
#config driven
#feature transformation
#data validation
#scaffolding
#templating
#cookiecutter
#shared library
#glue code
#genie code
#config parsing
#opinionated framework
#project setup
#machine learning
#model
#repetitive code
#coding practices
#framework
#non standard