The Official Status Thread
-
how often is published RWBY?
Approximately weekly.
that was a pretty big cliffhanger
Yes, yes it was.
-
-
Made by Ghosts 'n Goblins fans?
-
Today I learned about Swedish Fish Theory and I will now send candy with any device in need of repair.
-
-
@Lorne_Kates said:
"You must go to the nearest CSV and, without spending any money, obtain enough cough syrup and acetaminophen to make $500 worth of street-level drugs. We'll be watching. You have one hour."
https://what.thedailywtf.com/t/1-hour-to-test-interns-mettle/3231/9?u=cartman82
-
have a substantial number of if-else's
And, since we are talking about indentation (I think?), how would you indent the else code block? relative to the
}
or relative to the{
? Either way will look ugly.Case A:
} else { doSomethingOrOther(); // This block is further to the left than the start-brace -- visually not connected }
Case B:
} else { doSomethingElseAltogether(); // Look what happens when I close this. Suddenly the block close jumps waay out to the left, // leaving this block dangling seemingly without an end-brace }
Not to mention that the code becomes much more dense, which is not a good thing. Dense code==Dense programmer.
-
relative to the } or relative to the {?
relative to the beginning of the previous line.
and you use tabs so people can choose their own font and tab size.
-
-
Why not use a switch?
Because usually if-else statements are unrelated to one another and, in fact, may even have entirely different checks, potentially involving entirely different variables.
-
are unrelated to one another
Why is one if in the else of another if if they're unrelated?
-
Pray tell, what will be the McCabe cyclomatic complexity measure if this ever becomes a problem in a function?
-
Case A.
@Mikael_Svahnberg said:Not to mention that the code becomes much more dense, which is not a good thing.
And, what, you have a problem reading it? 1TBS still calls for if's to be on new lines and the bracket closing the else to be followed by a new line, plus the else itself is already basically an empty line. The code is still formatted, still contains enough whitespace to be legible - indeed, if-else's actually read like paragraphs rather than children's books, which makes them considerably less painful to read - and saves space both on the screen and when saved. It is superior to every other format I've ever seen.
-
Why is one if in the else of another if if they're unrelated?
if(iNum>5){ //do stuff }else{ //do other stuff } if(fNum<0.5){ //do more stuff }else{ //do different stuff }
-
A lot. You should see some of the Arduino code I've written.
-
How is that a chain?
-
It isn't. Where did I say it was?
-
-
Status: Tomorrow's a release date, of which I have two things to be pushed to production (which are disabled and not scheduled to run, and can't run outside the schedule, long story).
I would never trust a Devil's supporter.
(No, I'm not the red dude, my profile icon doesn't show up in
LyncSkype for Business unless there's multiple people on the convo)STATUS Annoyed with the fucking whitespace squabbling in status thread. Are ye really in that deep a hole that you have to bikeshed your whitespace and not let the autoformatter do it?
@boomzilla This is your fault! Jeff it!
-
indeed, if-else's actually read like paragraphs rather than children's books, which makes them considerably less painful to read
A function should read like a paragraph, or it is too big. You've just removed the spaces after punctuation marks.
and saves space both on the screen and when saved
Space on the screen: inconsequential; it is more important to clearly visually separate the "if" from the "else". Unless you are working on an old monitor with 25 lines and 40/80 characters, you will still easily fit three or for functions on the screen, and so there is no extra "cost" to use newlines.
Space on disk: Granted, a single space between the braces and the "else" is smaller than the newline+tab. But unless you are going to store your source code on a 68HC11, this cost is negligible.
I've had to work on systems where the quota was set to 2MB; there are much better ways to save space than to mess with code readability. (For example, add ".gz" to the filename in Emacs, and it gets automatically zipped; the makefile needs some loving care to cope with this, though.)
-
A lot. You should see some of the Arduino code I've written.
Thank you. I think I'll pass.
-
Can't you guys just go use VB.NET or something?
-
Look; I've got a pile of exams to mark. I'm procrastinating, allright?
Yeez, can't a guy be allowed to troll in peace anymore...
-
Status: woke up to find out that the water to the building I live in has been turned off for some unknown reason. (Unknown to me at least).
On the bright side, my coffee machine's tank had enough water for both a coffee and brushing my teeth. (If I had to make the choice, I'd have prioritized the coffee.)
-
STATUS I put this on sometimes to give me a lift. I only found the video a week ago!
-
STATUS:
Step 1: PHP app loads user profile from Instagram
Step 2: Profile data is manipulated using PHP's native
serialize
functionStep 3: User adds an emoji to their Instagram profile
##CRASH!
-
-
Lying sack of shit. I want to call him and tell him that.
If you're going to do that, do make sure you have both your and his management on the line too. And remember to leave open the option that he's not lying, but rather just massively incompetent.
-
Status: Finally had a look at the BluRay I received through Amazon's Movie Renting Service yesterday.
I had already wondered why the printing on the disc was in French but, hey, multiple audio tracks and all that - the sleeve was German, though.
Only that the sole audio option my player presented to me was... French. No English, Spanish or German. Nope.
Also, the page where you can report problems with the discs? Does not have an option akin to: "Disc does not contain any language I understand well enough to enjoy the movie."
So, the last time I reported this to Amazon they apologized and sent me two other discs from my list. I also was to simply set the BluRay in question on my list again so I'd get it again at a later date (this time in a language I speak, though).
At least that was the plan.
Today I received the movie again.
And it was in French. Again :)
-
A function should read like a paragraph, or it is too big.
Not necessarily. A function should always have a coherent purpose, and should not be created just to shorten some code except if it greatly reduces the complexity at the same time and still has a coherent purpose.
Shortness is neat, but it's a very minor quality objective.
-
Status: doing what I swore to never do: connected to an open WiFi network.
I assume by now all my bank savings are gone, my email accounts sold for $0.002 each in a Russian online market, and my phone remotely rooted. They're probably watching me write this right now and plotting my kidnapping. If I don't come back, avenge my death.
-
If I don't come back, avenge my death.
That's going to be a tad difficult. See they probably have your personal info, we don't.
Better post it all in a public thread ASAP so we have a place to start an investigation. It's hard to find who killed you without seeing the crime scene, you know.
-
Better post it all in a public thread ASAP so we have a place to start an investigation. It's hard to find who killed you without seeing the crime scene, you know.
Not a good plan. We'll just start lynching each other…
-
If you're going to do that
I'm not. I just want to.
nd remember to leave open the option that he's not lying
No, he's lying. I'm the person he claims told him our software won't work on a network.
-
I'm the person he claims told him our software won't work on a network.
Oh, he's that sort. Don't protect him at all.
-
263 ºK
- It's Kelvin, not degrees Kelvin.
- º is a masculine ordinal indicator, not a degree sign. ° is a degree sign.
-
STATUS Annoyed with the fucking whitespace squabbling in status thread. Are ye really in that deep a hole that you have to bikeshed your whitespace and not let the autoformatter do it?
@boomzilla This is your fault! Jeff it!
Guess how I can tell that you're not serious?
-
@DogsB said:
Do tellSTATUS Annoyed with the fucking whitespace squabbling in status thread. Are ye really in that deep a hole that you have to bikeshed your whitespace and not let the autoformatter do it?
@boomzilla This is your fault! Jeff it!
Guess how I can tell that you're not serious?
-
Status: decided to walk home instead of taking the bus. Met a friendly dog who wanted pets and a friendly cat who wanted head scratches on the way. Today was a good day .
-
Status: trying to get rid of my printer and some assorted electronic garbage.
Can't just dump it in the trash container, since OMG environment. Can't give it away to the electronics store, because they won't take it unless I buy a new one. Can't get it to the utilization point, since it's on the other side of the town, I don't have a car, and the fucking thing weighs like ten kilos by itself, with another ten from all the other trash. Oh, and it's only open when I'm at work.
Fuck, no wonder people just go and dump this stuff in the woods.
-
Status: trying to get rid of my printer and some assorted electronic garbage.
Can't just dump it in the trash container, since OMG environment. Can't give it away to the electronics store, because they won't take it unless I buy a new one. Can't get it to the utilization point, since it's on the other side of the town, I don't have a car, and the fucking thing weighs like ten kilos by itself, with another ten from all the other trash. Oh, and it's only open when I'm at work.
Fuck, no wonder people just go and dump this stuff in the woods.
Just set it out in front of someone else's house. If people where you are are like people where I live, someone will come along in the next ten minutes and take it.
-
Or sell it online?
-
That seems like work.
-
Delicious . Here's your
-
-
Or sell it online?
It's broken crap, not even worth the shipping fees.
?
Uh... a place... which gets rid of this stuff? Not sure how it's called...
-
A recycling center?
-
**Status:**strong text
.... how long has this option been on Youtube's html5 player?
-
-