News for hackers. Stuff that matters.
Re:John Carmack: “I just dumped the C++ server I wrote for a... by chipsy on Wednesday March 18, 2015 @03:12AM (#9224036)
When it comes to architecture, I've lately turned towards BCNF as my god. My premise is that if my data model - my internal application data, not just "the database" - is as in as normalized a form as I can reasonably get it given typical constraints of procedural/OO/functional styles, my features automatically grow into a flexible and decoupled grain because they're operating on exactly the right slice of data, no more, no less. "Guess and check" and "OO design pattern" strategies don't seem to get me there because they tend to start with whatever is language-easy or looks pretty at first glance, and then take on the problems later. And it seems to work - the thing I have right now is, indeed, incredibly flexible for the amount of code involved. And it isn't really "architected" in the usual sense otherwise - there are no grand plans.

The only problem I'm having with this tack is that it reveals all the technical debt at once, which produces an enormous amount of pain early on. My friends smirked at my woes today of trying to make a clickable button, which has to piece together stuff from the graphics layer, input events, text fields, and internal button state. An enormous variety of data, altogether, with the debt usually hidden from view at some level. It all makes sense, it's all decoupled, the lifetime of the state is automatically managed, any configuration you want will just be a matter of making the data for it. But making that first button is quite a headache.

Re:John Carmack: “I just dumped the C++ server I wrote for a... by agumonkey on Wednesday March 18, 2015 @04:04AM (#9224173)
I had a funny feeling doing a SQL MOOC when I had to re-learn normalization, and how it was a very generic decoupling algorithm. Suddenly all OOP became tiny and ad-hoc.
Re:John Carmack: “I just dumped the C++ server I wrote for a... by nekopa on Wednesday March 18, 2015 @09:08AM (#9225137)
Would you mind telling me which MOOC you did for SQL? I am quite rusty - (~10 years since I did any serious SQL stuff) but I am finding it is coming up quite a lot now for me.
Re:John Carmack: “I just dumped the C++ server I wrote for a... by agumonkey on Wednesday March 18, 2015 @03:32PM (#9228111)
IIRC it was Stanford's (I have memories of a mainly red interface)

http://www.erictimmons.com/node/18

I don't know if it qualifies for serious, I'd say challenging enough, but it was great to revisit with another university material.

Re:John Carmack: “I just dumped the C++ server I wrote for a... by nekopa on Saturday March 21, 2015 @05:54AM (#9242281)
Thanks for that. In case anyone else is interested, they now have it set up as a self-paced course here:

https://class.stanford.edu/courses/DB/2014/SelfPaced/about