|
|
Breaks give me a chance to get outside of my box (i.e. Cube) and do some thinking outside the box. Plus, when I stop focusing so hard on a problem and give my mind a few minutes digest the information, I usually come back with answers to my questions.
|
|
|
|
|
I consider taking breaks is a good think during coding because it obliges you to think otherwise during a moment. A break can debug your code. How many time you don't see an issue, you take a break and during the break the solution comes without trying to think of it. it's your subconscious.
For these reasons I also believe smokers are good developers And no I don't smoke.
|
|
|
|
|
amen to that!
Harvey Saayman - South Africa
Junior Developer
.Net, C#, SQL
think BIG and kick ASS
you.suck = (you.passion != Programming)
|
|
|
|
|
Lol. I agree with the first statement. :P
I'd rather have a cup of tea than a cigarette tho.
“Time and space can be a bitch.”
–Gushie, Quantum Leap
{o,o}.oO( Looking for a great RSS reader? Try FeedBeast! )
|)””’) Built with home-grown CodeProject components!
-”-”-
|
|
|
|
|
Well I do not work a "normal" day I woke up at 4 this morning to be at work at 4:30, it is now, 14:45, so by simple math I've been working for just over 10 hours. But here's the kick, i am probably going to work until the ripe old time of...21:00, so do the math again, Today I am going to sit for a solid 16 hours and code...still think your job sucks...lol
Well I do it because you learn more and you make good head way with the higher ups.
|
|
|
|
|
I drink coffe and look at far objects
|
|
|
|
|
hmmmm...If your bosses are impressed by 16 hour days, I'd suggest to you that they aren't really concerned with your work output...most bosses are more impressed with work output that is accurate, reliable, on time, and under budget...most of the bosses I've worked for look at constant overtime as a sign that the developer is having trouble doing his job during normal work hours, or is using the extra hours for work on their own agenda, not their employer's...The ones that were impressed with long hours had no idea of what I was actually doing (which may be the case for you)...If I were your boss, I'd kick your butt out of the place after ten hours, because any work product produced after that I would suspect to be buggy and ill-thought due to too many hours working...if you are using the extra time to learn more about your programming environment, then be honest (with us, at least ) and don't call it "work."
|
|
|
|
|
I break when I need to terminate a case or jump out of a loop. Not sure how many times a day I do this, but it seems like an interesting statistic.
Oh you meant that kind of break...
/ravi
|
|
|
|
|
Sometimes I just create a foreach loop so I can break
|
|
|
|
|
Yeah, that's a habit that's hard to break .
/ravi
|
|
|
|
|
Well its for C# programmer to use of foreach and for c++ programmers?
|
|
|
|
|
In managed C++ you have the 'for each'
for each(DataRow^ dr in dtMyTable->Rows)
{
}
Dewm Solo - Managed C++ Developer
|
|
|
|
|
But not in unmanaged.
|
|
|
|
|
...hmm i remember reading somewhere about it lately. Isn't it planned for boost or something like that?
Dewm Solo - Managed C++ Developer
|
|
|
|
|
|
Thanks it was helpful.
|
|
|
|
|
Hamid. wrote: But not in unmanaged.
std::for_each[^]
Stupidity is an International Association - Enrique Jardiel Poncela
Die deutsche Sprache sollte sanft und ehrfurchtsvoll zu den toten Sprachen abgelegt werden, denn nur die Toten haben die Zeit, diese Sprache zu lernen. - Mark Twain
|
|
|
|
|
That's not the same as the foreach under discussion.
Steve
|
|
|
|
|
Use <algorithm> template:
template<class InputIterator, class Function>
Function for_each(
InputIterator _First,
InputIterator _Last,
Function _Func
);
1. I will develop myself to the maximum of my potential in all ways
2. I will look for the good in all people and make them feel worthwhile.
3. If I have nothing good to say about a person, I will say nothing.
4. I will always be as enthusiastic about the success of others as I am about my own.
5. I will always remain loyal to God, my country, family and my friends - Chuck Norris
Ernest Laurentin
|
|
|
|
|
I use foreach in unmanaged C++ all the time using Boost's foreach[^] library.
Steve
|
|
|
|
|
Depends on how many <br> tags I use in a day.
"What if you guys are ever lost in the woods? Or trapped in a really dark place? Or if minesweeper.exe is missing from your aunt's computer?" - Jeff Atwood
|
|
|
|
|
Why isn't that an option in the list?
|
|
|
|
|
Bob Slydell: You see, what we're actually trying to do here is, we're trying to get a feel for how people spend their day at work... so, if you would, would you walk us through a typical day, for you?
Peter Gibbons: Yeah.
Bob Slydell: Great.
Peter Gibbons: Well, I generally come in at least fifteen minutes late, ah, I use the side door - that way Lumbergh can't see me, heh heh - and, uh, after that I just sorta space out for about an hour.
Bob Porter: Da-uh? Space out?
Peter Gibbons: Yeah, I just stare at my desk; but it looks like I'm working. I do that for probably another hour after lunch, too. I'd say in a given week I probably only do about fifteen minutes of real, actual, work.
I couldn't help but think Office Space
- Pero Matic -
|
|
|
|
|
Lucky I finally got around to watching that a few momths ago.
|
|
|
|