Better HN
topnewbestaskshowjobs
Log inSign up

hackits

225 karma · joined Jun 24, 2016 (10y ago) · 298 submissions

Submissions

comment 10y ago · link · parent

Better way to put this is to pay for the service if you're relying on it as a source of income or advertising yourself to the world.

comment 10y ago · link · parent

This makes me laugh my ass off. This is a bit of a pet peeve I have with people and modern technology. They believe they have a right to use a service even though they're not paying for the usage of the service. Then they turn around shocked and angry when the free service is removed. `Why! why did they do this to me, this is the biggest injustice! How un-professional of them!`.

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

My take on it is. If have a task that can only allocate `once` a area of memory for initialization, then you can use the allocation size to put a constraint on the iterators based on the datatype size.

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

Having a look at the engineering requirements there are guidelines that I've seen that are used by medium to large scale organisation just simply to manage the project and code base.

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

Found the rule `There shall be no use of dynamic memory allocation after task initialization.`

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

You made the following statement `Health care in countries that have the best results are also heavily regulated` give a citation backing up your statement.

comment 10y ago · link · parent

Citation?

comment 10y ago · link · parent

`Ever try to get someone to read a paper on software engineering methods?`

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

You don't know how governments works then.

comment 10y ago · link · parent

Medicine you could kill a the patient. Law you could send a innocent man to jail.

comment 10y ago · link · parent

Going to play the devil's advocate here in regards to 'juniors' disregarding the wisdom and experience of 'seniors'. Maybe the advice, experience you're giving is not backed up with any evidence? They may be taking a analytical and evidence based approach and simply choosing between you're advice or a celebrity tweeter as both lacking any evidence and thus being both equal. Possibly the silver bullet gives them a upper hand of using the latest marketing trends for reciter's to land their next job that pays 10K more?

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 found that basic courses on relational algebra more useful than most text books. They seem to introduce the mathematics in a more clear concise way than most SQL books.

comment 10y ago · link · parent

Difference between wanting to and needing to.

comment 10y ago · link · parent

I concur.

comment 10y ago · link · parent

Mostly rewritten because they business needs change. Software is there to service the business not the other way around.

comment 10y ago · link · parent

I would say that the threatening to quit because they don't take you seriously kind of re-inforces their view point why they don't you take you seriously in the first point.

comment 10y ago · link · parent

Thanks aryehof for the explanation. It answered a question that I have had in the back of my head all week.

comment 10y ago · link · parent

> Otherwise we're just getting tangled up in definitions and it's all a moo point.

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

As of a research paper by Kaijanaho, Antti-Juhani (https://jyx.jyu.fi/dspace/handle/123456789/47698)

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

Another good book if you're interested in actors/behaviour decomposition instead of data decomposition is: Object Design: Roles, Responsibilities, and Collaborations and also https://www.amazon.com/Object-Thinking-Developer-Reference-D...

Also David West Presentation https://www.youtube.com/watch?v=RdE-d_EhzmA

comment 10y ago · link · parent

Could you elaborate leading by example `how it is different`?

Seriously because unless you can define it, and quantify it then it is just rhetoric.

comment 10y ago · link · parent

I read your essay on programming languages. I found it was awesome btw.

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

Agree completly. Kind of the reason why they call it a general pr9gramming language.

comment 10y ago · link · parent

Not saying its a key part. Im in the camp you better have a damn good reason to use inheritance that composition will suffice.

The whole notion that everyone has their own perspective on oop makes it a mute point.

comment 10y ago · link · parent

Both simual and smalltalk inheritance was added later in the languages history. Yes its optional but it doesnt stop people making a mess of things when they categorise their objects based on data type instead of behaviour

comment 10y ago · link · parent

I find it interesting that everyone gets so up-beat about the ideology or philosophical debate about objects sending each object messages, hell even not relying to a message one object send you until a later date. Without even thinking about concurrency, state, and hell even the basics such as cyclic loops within a event based system!

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.

1
678910