(6 - (6 / 2 -> 3 * 2 -> 6)) -> 0 was what I got. But yes, if you're relying on the truncation then you're going to get different results.. (3 - (3 / 2 -> 1 * 2 -> 2)) -> 1 so yeah a%b
I would like your opinion on how I can simplify (if possible) the following function; "Wrap" for clamping and wrapping a value between 0 and 360 degrees:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
namespace Rextester
{
public clas...
the real irony of that code is if he'd written it in a less cryptic way, it would've been instantly obvious to us that % does it in one line, without ten minutes of arithmetic to figure out how it works
so until very recently we'd always close debugging questions as "unclear" because that's the closest we could get to an "SO question" close vote that wasn't also a migrate vote
A cool addition to any sort of "which SE site do I use?" guide would be to feature some single general problem, and then have different aspects of that problem turned into questions- an appropriate question for SO, an appropriate one for CS, PSE, etc etc
but then again, you're still stuck with the same problem regarding whether people ever read said guide or not
personally I believe the only way to significantly reduce the influx of junk questions from first-time users is to improve the software to provide more hints, warnings, guesses, etc on the question-asking screen before the asker finishes asking the junk question
you could always feature a question before the "submit question" button that asks "Are you sure your question belongs on this site?" for people with reputation below 100 or so
and on that alert, include a link that explains which questions go where
and there's plenty of users who care, but haven't realized that we don't do discussions/polls/tutorials/etc, or who can't even realize that "Should I use X or Y?" is an extremely complicated question
I think I could fit into that category every now and then
(i.e., "should I use this or that?")
the rational thing to do would be to literally list your interests and intentions and then read online about parameters that affect your interests, coming to SO only to ask detailed, objective questions about said technology, prog language, etc
which I'm sure you all know
(of course)
but I imagine people would much rather just be told what to use
I usually close those with either a custom close reason ("you can just google X") or "unclear" because it really isn't clear what help the OP needs in those cases
I've just asked a question on Stack Overflow which was a prime candidate for googling. I admit it was a poor question and with a little bit of research I would have found the answer. It annoyed me that someone put a let-me-google-that-for-you link in the comments. It got right up my nose.
I find...
I'm referring to the fact that seeing that much in-depth debate on all the possible sides of a (relatively minor) issue tends to make one feel their own opinion is significantly less important than it previously seemed
♫ 𝄆 Close, close, close this crap Flowing down the screen. Down-vote and close-vote, delete it and flag it, Now the site is clean. 𝄇 — “a 10k-er's song”, to the tune of “row your boat”
wow, I have to press “page down” 11 times to get to the end of it
Is there a question buried in there somewhere? — Morgen5 mins ago
@daOnlyBG a majority of folks living in suburbs don't spend that kind of money on coffee; that's why indie-style coffee shops are always in down town areas near large wealthy populations. Starbucks survives in suburbs because they're an economy of scale and more fiscally efficient than any small-scale place could ever be
unfortunate, starbucks coffee stinks compared to small craft shops, but that's part of how they're more efficient... c'est la vie.
@daOnlyBG I would wager the volume is actually rather distinctly different
not saying a starbucks downtown doesn't do better volume than in the burbs, but my money's on both do better downtown, and the lower volume in the burbs isn't enough volume for small craft joints
@Ixrec true; there's a distinct behavioural difference in how far they're willing to travel for things...
downtown folks are often a captive audience for the shops that are near them, partly due to the difficulty of using a vehicle in such places (traffic, lack of parking)
I'm not sure if "amount of hipsters" would be an objective parameter to study. Cities tend to have more of those, and they tend to congregate at coffee shops more often
One cool thing that the Thrillist publication did was create a map of the Chicago subway/"el" train system and list all nearby independent coffee shops close to the stops
@whatsisname oh I agree that they have to compete with eachother, but their competition sphere is smaller in size. Perhaps greater in population though...