Save your Cleverness
tirania.org
tirania.org
But if I've decided to take on a new project it's best to default to my usual stack (PHP (Kohana), MySQL Nginx) and rattle out the basics. It makes a lot of sense to solve a "hard problem" in an environment that is second nature to you; too many projects flounder because as well as the project you're also dealing with a new architecture.
(this is why I always dislike this idea of using a project to learn an language... it never works out)
Actually, as an example of this, I've been working on a new project at work recently which uses PHP/MySQL - but I've been looking into packaging it as a VM appliance, and the considerations/work related to that has put me about a week behind getting the actual project done.
How than do you learn a language?
For most of my hobby projects, learning a new language is the main goal.
But if you're learning Ruby, writing a Rails app is not necessarily a good way to start. And if you are learning Rails writing a full on project as you're introduction is going to flounder.
On the other hand Django is an (arguably) thin layer on top of Python. You can start from the URLs specifications and how to construct a simple HttpResponse object. And that's all you need to know and how tutorials teach it -- for everything else you can rely on your previously learned skills, while learning shortcuts on the way.
For another perspective -- Rails learning is top-down, while Django is bottom-up.
Using Rails on a larger project is good as far as learning a framework, but to get into the language and get into the cool/weirder stuff I've found small projects do the trick.
I could be way off though, maybe I just need way more ambitious side projects.
I'd much rather see a sentiment of "never sacrifice architecture for functionality but never let architecture drive your features."
At this point in my life I can implement a well-programmed solution much more quickly than spaghetti code. Additionally I'd rather be proud of my work considering 99% of the time I will be failing at creating a successful product. If you care that little about programming then find someone to do it for you, but if you are actually a developer then I don't understand this haphazard approach. But then I suppose people are naturally lazy.
If you are coding as a means to an end, then by all means spaghetti code, but if you are actually coding because you like to code and subsequently like to create, then for the love of God take pride in what you do! This Black or White approach just does not make any sense in today's technical world.
I would say that releasing software is more important than continually delaying for amorphous "quality" concerns, but this is backwards. You want to write quality software. I've been on several teams that valued speed over quality, and in the end we always end up with a sad, fragile bit of software that's hell to maintain or add features to.
> Of course, when you have a product that makes money you'll have to rewrite it, but by then you will have money to pay for developers...
Again, having been part of teams that operated this way: later never comes. Paying customers means people relying on your software. You can't just stop working on it to rewrite from scratch, and their bugs/issues/feature requests are far more important than refactoring (which they'll never notice.)
If you ever want good software, make it good from the start.
Fortunately for me, smart people were having this same discussion 10 or 15 years ago (just as I got to the age where I stopped thinking I knew everything), and interestingly referring to Fred Brooks' work, presumably from the late sixties:
http://www.webdeveloper.com/cgi-perl/cgi_perl_style.html
"Think first. Then hack. Now throw it out. Repeat. Fred Brooks says, `Build one to throw away.' Always rewrite your code from scratch, preferably twice. just as did it with drafts of papers in grammar school. It improves understanding, gets the creative juices flowing, and produces a far finer end-product."
But this man started to work on a .NET clone as he was fed up with working in C for Evolution -- if building your own compiler when nothing else matches your needs and desires is not the ultimate form of yak-shaving, I don't know what is :-)
Building your own hardware to build your own assembler to create your compiler to build your own OS to allow you to build your own CAD system to create your own board layout and test tools to build your own processor to create an assembler to...
There's always room for a higher-order yak.
You mean like Chuck Moore, the Chuck Norris of computing?
SCNR
After a while that high subsides and one starts seeing the elegance of simple solutions for most things and complex ones where it's warranted.
If this goes well, you might also want to acknowledge that this may mean taking less sophisticated, less forward-looking approaches. A lot of over-engineering is like over-training a model to historical data, assuming the future will be exactly like the past. Anyone who's worked on software for very long will be acutely aware that needs change over time.
But why is it every time somebody writes a piece about focusing on the "stuff that really matters", whether it's the user experience, or actually shipping stuff, it always sounds to me like an excuse for taking unnecessary shortcuts? Since when is dependency injection a "fad"? What the f* is wrong with writing unit tests?
Or in other words, what's wrong with building half-decent code the first time around? It doesn't take much more time and it makes refactoring afterwards so much easier. Using very common basic best practices when coding has nothing to do with over-architecting or trying to be clever.
If you want to write dirty code on an initial run, and refactor later unit tests will help out a whole lot.
It violates the spirit of MVP. While all ideals (MVP, DRY, etc.) should only be guidelines, they do have an effect on priorities. Simply said, shipping usually wins over everything else.
Writing unit tests - usually takes too long. Shipping can happen 25% faster if you hack and adhoc-test and prototype like mad.
Its a question of process - and in a startup there is time for very little.
This doesn't seem to be working with me. When you re-factor a part of your code, you are probably doing it for optimization. When your architecture is broken and you are going dark, I don't think you can still re-factor your whole code base and keep your customers happy. (Deadlines, bugs, downtimes, costs...).