Hot answers tagged

30

Caffeine is a major cause of the problem, not the solution. It might seem to work in the short-term but it makes things worse overall by interfering with your sleep. If you don't sleep properly you will be tired and unfocused. If you try to solve that with a high caffeine intake you won't sleep properly. Exercise, eat well, try to restrict the coffee to ...


29

As pointed out in a comment by SK-Logic, there is some scientific evidence to back this up. From wikipedia's article on night owls: Researchers have found that 'differences in a fundamental property of the circadian timing system, its intrinsic period, will determine whether someone is an early bird, who awakens before dawn or a night owl, who ...


21

If you can't get in touch with the developers, then contact SourceForge. Report the problem, give them detailed information they can use to verify the issue, and they'll (probably) take it down. They're a reputable site and I imagine they wouldn't want to be associated with malware.


19

Be wary though. While working at night, you might get things done because of the calmness of mind and lack of interactions but even though I am a night owl myself, I find that my brain does not function as well at night. I am definitely not as quick and innovative. Working at night also has the unfortunate side effects of not sleeping enough. Your brain ...


18

First, try to prevent yourself from being drowsy: Sit up straight so you breathing is not restricted. Drink plenty of water Stay away from sugar & greasy food If I feel drowsy anyway, I will: Listen to fast music Get up & get my body moving (usually a brisk walk & I get some air) Go somewhere cold (if possible) the cold usually wakes me up ...


18

You can't. Anyone with half a brain could put on a show and appear perfectly employable. What you can try is: Using that interviewing technique where you ask the candidate a question and keep telling them they're wrong. See how they react and respond to this pressure. Ensure necessary disciplinary are present and sustained for unruly behaviour once they ...


14

Its not necessarily the time of night that makes the developers more productive... The night time gives a calm and silent ambiance for the thoughts to get a free flow in the mind and which is very essential while programming. Less distractions! Just not having the phone ring, solicitors selling cookies, the reduction of emails, and less chatter pays ...


13

Try to implement a code review team. It sounds like this programmer was working solo on a project with no team interaction. I'd try to encourage a more team-based workflow so that he can't just stomp over everything and then leave it on your door.


12

coffee soda music take breaks and walk around slap self in face stab thigh with ballpoint pen in extreme circumstances: just get a good night's sleep


11

Sleep well in home. That's it


11

I would start by sending an email to the project maintainer and developers.


11

I think it's a great question. Remember that interviews are a two-way process. They evaluate you to see if you'll fit into their team, but at the same time you need to evaluate the company to check that you'll enjoy working there. If the company can't convince you that they're a good fit for you, why work there? Greg suggests that you'll look arrogant, ...


9

Well written tests. They describe what the code should do, and demonstrate that it works. Since they are automatically run with every build, they are never out of date.


9

Our Wiki. Because people actually use it and update it. I think the nature of a Wiki lends itself to the way developers want to work which is just get the facts down and move on. It's quick and easy, searching makes it simple to find what you're looking for which minimises the chance of duplication (and the subsequent "so which is right") and you need ...


9

To my mind the problem you have is not just finding a better way to come up with good names, but dealing with the compulsion to do so. If I'm honest, I recognise a similar trait in myself. Names are important, after all, and I do like a good name for the concepts I'm working on. However, they are not always the most important thing. Here are some of the ...


8

People should have to support what they develop, otherwise they never learn to develop supportable things. Realistically you cannot always do this 100% of the time, but even a little is enough to straighten out a lot of this sort of issue much of the time.


7

I think the quote is referring to objects which are (mostly) devoid of logic, representing only data. This is referred to as the Anemic Domain Model, and is generally an anti-pattern in OOP. From the Wikipedia article: Anemic domain model is a term used to describe the use of a software domain model where the business logic is implemented outside the ...


6

It sounds like it's a fundamental problem with the way you track work or manage your projects. An engineer or group of engineers should be responsible for delivering complete features and functionality. It isn't done until it's shipped or running in production without problems. If you let someone only work on select pieces of the project, you will ...


5

Usually, this quesion is phrased "Which benefits does the company offer? Anything beyond the usual standards?". Assuming you are not in a desperate situation, this is a very valid question to ask. Asking the "Why is this company the best choice" question assumes that the other person knows what is most important for you, a relatively silly assumption. That ...


5

One of my pets peeves is the absent-or-afterthought nature of the documentation that goes along with virtually all open source software. While I think that it is great that other engineers release their code so that I can avoid reinventing the wheel, it is teeth-grindingly frustrating to find the code accompanied by nothing but a README file with little or ...


5

Pushups. Exercise actually increases the amount of energy you have, instead of decreasing it. Plus using a keyboard all day doesn't give you strong arms, or even make you awesome at thumb wars.


5

Is the management dividing the requirements into tasks? If not then there lies your problem. The programmer can't finish 80% of everything if he were locked to only the tasks he should be on, then instead of spending time on other tasks he could spend time on making his own tasks more perfect. Testing, Documentation, Refactoring, a next Task that is on his ...


5

Firstly Ask yourself the question "what is this class's single purpose?". Without adhering to Single Responsibility Principle, naming classes and methods becomes very difficult. If you can't answer that question, you may need to re-think what you want the class to do, and consider separating the concerns. This will make it easier to name Secondly Do you ...


5

It sounds like you're mixing up BDD (behaviour driven development) with TDD (which isn't surprising as they're arguably very similar). BDD is a bigger process than just the tests, but to focus on what's relevant to your question: pick out an important feature that you want to implement. pick a specific scenario which you feel is a representative example ...


5

I think this is a per-person trait. I've known many developers, especially those with families they spend time with at night, who deliberately come into the office early. In the example you gave, though, I think it is generally true that people are able to maintain higher levels of productivity for personal projects compared to work projects. It makes ...


5

As others have said I think it's a per-person trait. Speaking for myself I find that I'm usually productive in the morning and in the evening (or at night) - which probably boils down to being most productive when there's not too much hubbub or distrations of any kind going on around me. It might also be that late at night you don't have any other ...


5

How would you handle issues like this? Take a look at continuous integration. When people commit, there should be an automatic build that runs the unit tests. This will catch regressions introduced in the new commit. It won't catch errors that have no tests - that will require changing behavior. Consider adding unit tests to your code review - if they don'...


5

Yes, I think you are on the right track. The class using the strategy pattern does not have to be a subclass. The strategy pattern is an alternative to inheritance for code re-use. This comes back to the even broader comparison of inheritance vs composition. From Design Patterns: Elements of Reusable OOP you would use strategy pattern to Avoid an ...


4

Frequent short breaks at regular intervals (get up from chair, and think of something else for a few minutes). Then a longer break after 4 short ones.


4

Why should you fight your own body? When I feel I'm tired, I just take a nap at my own desk. I even have a small cushion there for greater comfort. It usually takes 10-15 minutes, thus making the net effect on productivity positive. Napping in an open space could seem ineffective due to distractions and noise. However, I usually turn distractions into ...



Only top voted, non community-wiki answers of a minimum length are eligible