415 karma · joined Jun 1, 2015 (11y ago) · 220 submissions
comment 7y ago · link · parent
comment 7y ago · link · parent
comment 7y ago · link · parent
1) Centralize all of our calls to other code in one place. 2) Share response values from each step with other steps. 3) Clearly delineate the order of steps in our code. 4) Make our code more maintainable and extensible by avoiding nested spaghetti code.
I think test code should be the clearest, easiest, most lucid code. Even at the expense of code that in other contexts may be considered boilerplate or redundant. Test code serves a different purpose than production code and is made to be rapidly modified, quickly and dirtily refactored, and very easy to understand, and to be exceedingly clear as to what cases it is actually performing a run-time test on. Often I see authors writing test code as if the test code itself is built to be maintained and reused. In some cases that is true but generally not when actively developing a system.
comment 7y ago · link · parent
Where does it say that. It actually says the opposite quite clearly if you cared to post the whole quote and not just what supports what you would like it to.
> They addressed one of the issues with a compile step, eg slower feedback loop.
Can you explain to me how faster feedback from static types that they, a concept which the article reiterates again and again, leads to a slower feedback loop. Clearly the article and many more like it say that the feedback loop actually speeds up with static analysis since you don't have to run the code to get the feedback.
I'm not sure if you actually want to objectively reason.
comment 7y ago · link · parent
I'd say python is about as popular as Java and so I don't see companies investing a bunch of money to make Java programmers more comfortable when they could just hire an army of Python developers if they wanted to. I just think they see value in the static analysis that types provide. Read about why Facebook added types to PHP they don't mention your hypothesis.
I don't mind programming in languages with dynamic type systems. I find it just as fun. But I do think its easier when there is a way to easily keep track of the type of thing being operated on. I mean the data is what is actually being operated on, the more I can tell about the data from reading the code the better. The most difficult systems I have ever worked on were the ones where unshaped globs of data were being shuffled around in hash tables and heterogeneous sequences. I would always have to use the debugger to find out what was going on at a given point. The code was dispatching on value and type. It was rough.
comment 7y ago · link · parent
What do you mean by interfaces?
But then this is an argument that I don't have much time for and too much time has been spent on it already. Lets just say that if there are many major companies that felt the need to invest in a type system for a popular languages that don't have one, then there might be something too it.
comment 7y ago · link · parent
comment 7y ago · link · parent
I am pro gun control but it is a little known fact that gun control was quite strict in 1930s Germany during the rise of the Nazi party. The point is that hate leads to mass death not weapons. If it wasn't an assault rifle it would have been a series of home made explosives and small arms, or 3D printed weapons, or a gang with swords and bats blocking exits. Stop the hate, don't pivot.
The New Zealand government should mandate anti-bias, anti-hate, diversity training for all government and private employees. Once per year, since there is virtually no education on the topic. Many people get bitter when they hare to take such training. I mean would the government let people get into a car without any training but people are allowed to hurt other with their bias and bigotry. Its a fact it happens. So why not try to stem it. Instead we pivot to gun control as if that is going to remove all hate and stop the problem.
comment 7y ago · link · parent
When people say "Collective Ownership", they usually mean no one person is directly responsible for a body of code - and that is supposed to be a good thing. When you walk into a shop with this philosophy and have a question about the code you will find that you usually get the answer "I don't know ask Jake" and then Jake says "I don't know ask Jane", Jane then sends you to Bill who may have touched the relevant code at some point. Basically "Collective Ownership" can result in lack of responsibility and messy code that nobody really understands.
I want to take more aim at this "Collective Code Ownership" myth. The concept overlooks the immense amount of job satisfaction one gets from being responsible for a body of code and feeling like you have some responsibility. Handing out responsibility doesn't remove the need for code reviews or bar others from examining and learning different parts of the code. So called "collective ownership" simply gives low-level engineering management more power by keeping developers weak and replaceable but makes for messy code. It makes for messy code because developers don't take a holistic view of what they are doing they just strive to rapidly complete little tasks that are thrown in front of them that management can understand and use to maintain a feeling of control. In short "yes!", it is about you, your growth, and your job satisfaction. I've worked as a consultant in many code shops - when I walk into a shop and the manager introduces Alice "who does our kernel code", and then Bill who "Manages our API code", and Mike "Who is generally responsible for integrations and works on our front end code with Alice" I generally see more happy developers and less turnover.
I also don't believe very much in Pair Programming. Again, all the research I've read supporting the practice is questionable. I've pair programmed at length and watched others do it. Generally it only works for the most trivial of tasks - which means that why use it at all. I do think superiors get a great deal of satisfaction pairing with their subordinates, I'm not so sure about the other way around.
comment 7y ago · link · parent
From a software perspective, I would imaging that computers would do a lot more to help validate the intentions of human programmers and that computers will do a lot of the programming themselves.
I would like to see almost all tech powered by renewable sources.
Material science - plastic and other horrible materials should be done away with. I actually think we have gone backwards with respect to materials producing virtually indestructible waste material that poisons our water and air.
168.
Coding Assesment Tests Alternatives?
1 points · by externalreality · 7y ago · 1 comment
comment 7y ago · link · parent
"This approach is used within haskell 1 to 1."
He is correct.
I would go further and say the author of the video is just talking about "good programming" in general.
... but if you mentioned any of this at work you would get drummed out of the office with a yellow stripe down your back.
comment 7y ago · link · parent
I would still consider the link above editing text... but I posted it anyway for what it is worth.
The idea seems to be to confine the text to its AST in a form like fashion.
comment 7y ago · link · parent
comment 7y ago · link · parent
comment 7y ago · link · parent
It seems that much of the advice centers around chopping up the monolith into services that can be run on a server-less cloud platform.
Uni-kernels, their promise of boot on demand and extremely small footprint, may help with a lot of this. In the very, very, near future devs will be able to package monoliths in ultra light-weight OS's that boot on demand and are optimized for the running application - and do all this on server-less cloud platforms without having to worry all that much.
I'd wager that in 2-3 years many of the use cases of containers will be replaced by Unikernel tech and the desire to run on serverless cloud platforms will be one very big use case.
comment 7y ago · link · parent
comment 7y ago · link · parent
Watch it. It represents the horrible truth of the elevated sense of Islamophobia and its tragic consequences. People shouldn't look away from this. Many of us have to deal with this on a daily basis. When it gets so out of control that it creeps up into the privileged world people want to look away. Don't forget that today's global structure is based on widespread massacres and genocide. This extreme comes from overlooking a racist, bigoted status quo much like an infestation comes from overlooking the first signs of insects. We may be looking away from your history too. Looking away is not going to change things. I don't care if it makes us feel bad. Its the truth. We need to deal with it because others have to.
Basically most of us sit there and tolerate minor (and sometimes major) forms of racism and do nothing only to act shocked when something like this happens. Its a psychological game played to avoid guilt and responsibility.