225 karma · joined Jun 24, 2016 (10y ago) · 298 submissions
comment 10y ago · link · parent
Kind of like the dicussion I have with my collegues that `shouldn't you know.... support the open source frameworks we use to make money with?`... `Why would we do that?` ... Kind of leaves me speachless.
comment 10y ago · link · parent
eg...
const size_t taskSize = 256;
const Task *task = (Task*) malloc(taskSize);
zeroMemory(task,taskSize);
// Allocate array of int's
int *intPtr = (int*)(task);
int intSize = taskSize+4;
for (int i=0; i<intSize && i<(taskSize/sizeof(int)); i++)
{
// do stuff.
}comment 10y ago · link · parent
Some of them seem to be universal such as statistic code analysis, heave use of sticking to a sub-set of the language that is well defined (Deterministic behavior). Sticking to a over-all coding convention and naming convention. Modulation of the code-base. Avoidance to thread's mutating the state of shared objects between threads (Share state between threads only in a single location eg.. IPC). Similar thing happened with java API with the designers attempting to make the language library thread safe. They soon discovered that was a real bad idea and backed off from that very fast.
At work I joke with my collegue's about the java framework they use they've now moved back to static enum's and static control id's for web pages instead of dynamically generating them on the fly. It's to a point where I feel like I'm programming win32 gui's all over again.
comment 10y ago · link · parent
They must use pre-allocated string buffers for some of the task's. Though I figured if you're doing a flight controller for a jet fighter or sate-light you don't need a lot of string parsing.
comment 10y ago · link · parent
Yup, they never read it, let alone care.
`Look, I'm definitely not a top %1 (or even %10) architect`
I would say just simply knowing puts you in the top 10%. I don't wanted to come off as a jackass. Mostly because I've been through the same thing.
I make my bread and butter maintain large government software. Some of it good, some of it bad.
comment 10y ago · link · parent
I find it a bit of a juxtaposition that on one hand you're undecided about more engineering approaches and certification to building software. Then on the other hand you're frustrated that your advice or experience is not valued? To me it seems like you've answered your own question why your advice isn't valued by hip new guys.
comment 10y ago · link · parent
I agree. I would say a lot of things people do in OOP isn't really OOP it's just object modeling principles. You can apply the same principles in a different language without notions of objects/classes (javascript) comes to mind.
comment 10y ago · link · parent
Since 1960 till 2012, there are only 22 research papers that used empirical evidence with randomised cross over studies for language design.
As of which, Class inheritance had 4 randomized controlled experiments. With a collection of other studies. That is mostly of the information I have come across.
There is a research paper on Java that looked at how programmers use inheritance. It's a interesting read and its a good source. (https://researchspace.auckland.ac.nz/handle/2292/16840)
I think Google published another paper looking at development time and I believe the result was the biggest time consumer for programmer was dependencies not necessary the programming langue.
comment 10y ago · link · parent
Also David West Presentation https://www.youtube.com/watch?v=RdE-d_EhzmA
comment 10y ago · link · parent
I saw you made the comment `o be concrete - object oriented programming is easy in python, because it's possible to program methods of an object in a way that doesn't assume a particular representation.`
I thought you would be really interested in usage of polymorphism in python (http://neverworkintheory.org/2016/06/13/polymorphism-in-pyth...).
Quote from the article: `Our findings show that the receiver in 97.4% of all call-sites in the average program can be described by a single static type`.
It looks like even when that restriction is removed it doesn't really help that much.
Another great podcast on evidence based programming: https://www.functionalgeekery.com/episode-55-andreas-stefik/
Evidence-based programming language design : a philosophical and methodological exploration: https://jyx.jyu.fi/dspace/handle/123456789/47698
Is another great read if you've got the time.
comment 10y ago · link · parent
Though I keep hearing from Alan and other prominent language designers that we still are holding onto this old 1960 mental model of command and control, or structured design concepts. Even some well spoken people suggest that the whole notion of object's are worthless to programmers because it takes place within the notion of classes and constraints of the machine.
This whole philosophical debate about understanding/miss-understanding/correct usage of OOP is just a complete waste of time.
For what its worth I consider object's simply as a basic level category of procedures and data tied to a namespace. If the category requires state then consider it as a object otherwise its considered a module.
I've seen too many project's that have drunken the cool aid and has resulted in 5-10 level deep inheritance tree's with their own branching logic trying to fit behavior to a specific taxonomy.