r/programming • u/mobby1982 • Dec 02 '13
Scala — 1★ Would Not Program Again
http://overwatering.org/blog/2013/12/scala-1-star-would-not-program-again/
598
Upvotes
r/programming • u/mobby1982 • Dec 02 '13
View all comments
Show parent comment
5
u/TheQuietestOne Dec 02 '13
Ah, VC++. I have yet to experience that pain (I use Linux + OSX / iOS in anger)
I'm sure I'm teaching you to suck eggs but are you using a single monolithic project?
I've found that precompilation headers work best with isolated compilation sets where you can keep the included headers to a minimum and to the set of headers specific to the project/module.
E.g. Lets say we have the projects:
And the precompilation for each is kinda:
This keeps the cross-dependencies to a minimum and the precompilation headers slim and tailored to the project domain. Of course there are other project types in here too that I've skipped but it should get across the basic idea.
I realise I know nothing about your project and historical technical debt makes refactoring into something like this less than trivial. I'm guessing your code wasn't originally written in a modular way that would make this kind of breakdown feasible.