Software Engineering
Why Line Breaks Reduce Readability
Many people like to break their Java code over several lines. I think this is a bad thing. Here is why.Focus on the Important PartWhen reading code, the left most part of lines matters...
Software Engineering
Some people still think adding comments to their code is a good thing. It's not. Here is why.No InformationMost comments add no information to the file what so ever. If I write // initializing...
Health
An Engineer’s Approach to Weight Loss
IntroI recently got asked twice about the best approach to losing weight on two separate occasions. So I decided to summarize my thoughts and put them on this page for your reference. I am...
Software Engineering
Why Is Readability So Important?Readability is the ease with which code can be reader and understand. Why is it so critical to write readable code?First of all it's important to acknowledge that as software...
Software Engineering
Have You Ever Experienced This?Part of my work is fixing bugs. Some bugs are really hard to track down and it's easy to see how those errors have been overlooked during implementation.However there is...
Software Engineering
An Illustrating ExampleTake a look at the following code sample. What is the problem with it?public Task getNextTaskWithoutUpdate() {
Task task = repository.getNextTask();
task.setStatus(TaskStatus.Processed);
repository.update(task);
return task;
}So what happened here? Initially someone wrote code that processes tasks stored...