« first day (2154 days earlier)      last day (2828 days later) » 

4:46 AM
if (someoneInlinesIfStatements) kill(someone) unless(isNotLooking(enderland));
 
user223506
hi
 
1:11 PM
Matt Sherman on July 27, 2016
We believe (and developers tell us) that job seekers should be empowered with as much information as possible when looking for a job – especially salary. So we ran an experiment on Stack Overflow Jobs to see if the evidence would support it.
 
1:54 PM
Does anyone remember that site that had all the order of magnitudes for operations?

For example, I remember something like a L1 lookup being a heartbeat, disk IO is like going to the store, and network request like flying from NY to Paris
 
How is this question unclear or worthy of down votes?
 
@ThomasOwens yes/no question? those are almost always bad on SE
there's no problem to solve
 
@enderland Yes, there is. The problem is that he's not sure what models are appropriate for a given view.
I think I did a pretty good job answering.
 
2:09 PM
@ThomasOwens it's not a good question
it could be but this falls into that "needs more information" category
 
It doesn't need more information at all.
As long as you know what a "state machine diagram" and the "4+1 architectural view model" are.
 
@ThomasOwens question lacks tag(s) - your answer mind reads that it's about UML but there's nothing in the question. Wrt your answer, re-check the "previous answer" link in it, it currently refers to that very question, that's confusing
 
@gnat It's not limited to UML. I'm quoting an answer I wrote about UML, but the section is not specific. I don't care what notation you use for creating state diagrams.
The other question was specifically about mapping UML to 4+1, but the purpose of each view model in 4+1 doesn't change if your notation changes.
Oh. The link went to the wrong question. Boo on me.
I fixed that.
 
@ThomasOwens all right if you say so. Still, it lacks context to help reader see what is meant as views and "development view" in particular. I don't know what tags or edits are needed to help in that but something is missing, really
 
OH WHAT A SURPRISE your answer wasn't useful because the OP was not clear enough what they were asking
when you answer unclear (and probable XY) questions, you get lots of followup questions
 
2:58 PM
This is probably a Programmers question. — chrylis 20 secs ago
 
 
2 hours later…
4:42 PM
0
Q: Dealing with a variable that is a number, but has greater meaning?

CHendrixI've been working on some embedded code that handles a Bluetooth Low Energy (BLE) radio. BLE has 40 channels, numbered 0 through 39. One function for the radio driver takes in the channel and sets the appropriate register with the correct setting. The obvious function prototype was SetChannel(...

There was a lot more to this question than I originally thought.
If you want compile-time support for this, it's going to have to be an enum. If you're encoding the frequencies in code, you might as well use an enum. But that would be akin to replacing the entire scanner instead of just replacing the crystals or entering a new frequency into the front panel. Or maybe updating the firmware. Is it your intention to update the firmware if a frequency changes? cc @EricLippert — Robert Harvey 28 mins ago
 
 
2 hours later…
6:18 PM
An email storm (also called a Reply Allpocalypse, also called an eMaelstrom) is a sudden spike of Reply All messages on an email distribution list, usually caused by a controversial or misdirected message. Such storms start when multiple members of the distribution list reply to the entire list at the same time in response to the instigating message. Other members soon respond, usually adding vitriol to the discussion, asking to be removed from the list, or pleading for the cessation of messages. If enough members reply to these unwanted messages this triggers a chain reaction of email messages...
 
6:40 PM
hmm, that's an interesting discovery. Not sure how I never hit it before, but just discovered that in C#, if you have a variable declared in one case of a switch/case, it's actually declared at the beginning of the switch, even though you can't actually refer to it prior to the line adding the declaration
but you don't actually have to encounter that line to use it
makes sense that it is localized to the switch since the GC is going to want to know about local containers attached to the scope, but odd that it artificially limits where within the scope you can use the declared variable
 
 
1 hour later…
7:56 PM
 
8:36 PM
@AJHenderson In general I try to avoid doing things in my code that will evoke these kinds of edge cases.
It limits the scope of use because that's the rule everywhere else in C# (variables must be declared before their first use).
switch statements in C# are just weird overall. For example, fall-through is not allowed, but break is still required between cases anyway.
I limit their use to mapping functions where each case has a return statement, so break is not used.
 
8:55 PM
Wrong site. This is not a programmers for hire site. — Andreas 20 secs ago
 
9:40 PM
-7
Q: Any one please help me to bypass the Captcha by coding

Nazim UddinI want bypass the captcha from this indian visa website :http://indianvisa-bangladesh.nic.in/visa/index.html, any one please help me by coding. Thanks

Needs Spam or Abusive flags.
 
 
2 hours later…
11:19 PM
posted on July 27, 2016

Don’t overload varargs. There’s even a cert advisory on this: Avoid ambiguous overloading of varargs methods. And my tale of woe is one that reading the docs with a better understanding of what isn’t explicitly said would have saved an hour of two of trying to track down the error. Lets start off by writing some code. public class Main { public static void main(String[] args) {

 

« first day (2154 days earlier)      last day (2828 days later) »