My only real problem with the comment deletion is that now my starred message from earlier makes no sense at all ;) I stopped caring about it shortly after he asked why I thought he cared.
If you don't have time to delete only the comments that are offending, then you don't have enough time to be moderating the site. Or we need to share the workload.
Nobody explained to the user that if he didn't golf his code, it technically wasn't an answer. So while it looked like I was repeating Geobits, I really wasn't.
Without flawr's and the OP's, mine were. Half of Rainbolt's might have been obsolete, also ("it's common practice..."). The other half could have stayed.
But it's hard to break it up I guess. You can always recomment that half, but I doubt it will matter much to him.
The whole thing is why comments like "why the downvote?" bother me. It's almost always too much trouble to explain it. If I wanted to explain it, I would've.
Number 'niceness'
popularity-contest
Often when driving, I see the odometer tick over to a particularly aesthetically pleasing number; for example, 184481 km (or for those in the US: 1.97*10^14 gallon/acre) is nice, because it is it's own reverse; 123456km ('straight') is 'nicer' than 134568 (a...
Sorry, my last message was sort of a misquote. My actual comment was "I clicked on the 'This answer is not useful' button" and someone told me "That's the most abusive use of the 'Not useful' flag I have seen lately".
I constantly have to remind myself what it says though
Ugh I can't get any code reviews today. I'm about to just start checking in chunks of code with my own name on it.
We just started doing this time box thing, and I've been trying to embrace it by not interrupting people during specific periods of time. I communicate that I need something via email, and then when they reach a stopping point they just ignore my email and keep working.
I guess I have to come up with a better solution before the end of the sprint
Every number is interesting
We know that every number is interesting but how?
You should write a program or function which:
takes a list of N positive integers (>0 and <2^31)
outputs N lines each of them showing how the corresponding input number is interesting
is not longer than 1024 bytes
u...
@Geobits Well the whole team decided they wanted to be uninterrupted for blocks of the day so they could actually get some work done without having to answer to fifty people spread out. The idea is that they get interrupted all at once. I don't think "Stop doing this" will be taken well.
If A is interruption and B is work, I think the philosophy is that ABABABABAB is far worse than AAABBBAAABBB.
Oh, I get that, and I understand the "flow" argument. I guess my point is better that you should raise the issue that it's not working as well as intended (at least for you).
I don't know how it's supposed to work, to be honest. I don't think it would here. "Scheduled interruptions" is a perversion of how most people actually work IMO :D
well in J you can't do much with different sized arrays and I haven't found any good way around that and making them the same length takes a lot of characters (at least how I did :))
@Geobits Hmmm. Maybe I will just suggest that "interrupt me anytime" is fine for INTRAdepartmental interruptions.
Then I can resume spamming "code review?" IRL
I should really get a shirt like "Do you even code review?" for casual friday. My coworkers would appreciate it because I ask for like three times as many as everyone else.
J, 32 29 bytes
The verb I. returns the positions of 1s in a binary string which is a huge help.
+/@,@(=/&(#\)*[:%:1+-/*-/)&I.
0 1 0 1 (+/@,@(=/&(#\)*[:%:1+-/*-/)&I.) 1 0 0 1
2.41421
I will try to golf it a bit more and add some explanation later.
I think it's a good thing that it teaches you to consider a lot more approaches than you normally would
obviously, you're optimising for a different goal that you would in production code, but considering apparently non-optimal approaches can be a good thing
even in productive programming there are situations where the algorithm with best time complexity is worse in practice than a theoretically suboptimal approach
(like quicksort)
I think matrix multiplication is another good example
but you still go for good time-complexity even if it's not the best in terms if O()
and sometimes you go for clearer program with worse time complexity <s>but I doubt that golfing helps much with that</s> retracted :) maybe it can help
Ok I just got into an argument with my coworker. His point was that I coupled two classes together which will make them harder to maintain in the future. My point was that I reduced the loading time of the page by more than half (proved with timers). And he won't leave me alone about it.
I may or may not have intentionally gotten someone else to code review because I knew he wouldn't like it.
But doing 1 2 3 4 5 was taking too long and didn't meet the requirements. So I combined it into one blob of code and it worked so I didn't question it very much.
I don't always make unreadable blobs of code but this is really strict. We have to respond to 40 requests in under a second on crappy hardware.
Anyway, I'm not averse to changing the code to be more readable. I'm just concerned that his solution is "undo".
I think meeting spec is more important than being readable.
You have to meet spec. You don't have to be readable.
5:00 PM reached. Concerns switching to setting up a Minecraft server on a 32 bit machine. Anyone know where I can upgrade 32 bit Windows Vista to 64 bit Windows Vista or later?
For less than twenty bucks?
I don't feel like buying Windows 7 or 8 for my 2008 laptop because it would cost more than the laptop itself.
But it has 4 GB of RAM and uses only 1.2 of it for OS stuff, so it would be perfect for a server.
I guess I could take this opportunity to turn my laptop into a *nix machine/sandbox. I'm worried I would be unable to recover it if I fail though.