I've just gone and done a count, and based on most metrics (pageviews, users, questions etc.) CR is as big as the 10-15 smallest graduates sites combined (ignoring things like Meta SE)
I need to validate a variable length string against some white-listed characters. The algorithm that I have works but I have a sneaking suspicion that there is a more elegant solution. The code below hasn't been identified as a bottleneck so ease of maintenance is preferred over a clever but conf...
Of the 149 sites on the exchange, not counting meta's, Code Review is the 20th most awarded site. It is bigger than most graduated sites "by a long way".
I don't know anything about creating a site design (which also should be obvious by now) but I have picked up that designs, like computer programs, are not all the same. Some are simpler, some more complex. Some have a lot of architecture and algorithms and frameworks and others are more quick-and-dirty spaghetti jobs. Okay the analogy is pretty weak here but hopefully you sorta get the idea?
@Pops Sooner you said that the design team had its own backlog and stuff. Is there anyone from that team our mods could contact? This way we wouldn't need a mediator to take the venting as Mat said!
@TopinFrassi it has been made relatively clear, in the past, that the design team is the tail that wags the dog. It is understaffed (they are hiring, and have been for years, but apparently can't hire anyone), and it does whatever it likes, unless someone (Joel) tells them personally to do something specific. Their creative process is otherwise something that is ... creative.
@Mast The implication (well, one of them) is that we should be able to improve overall communication by getting the entire picture from both sides, and I've failed to do that in this case.
@Pops Don't blame yourself over all this. You're doing what you can with what you have. You have the dirty job of speaking with us when the design team made a mistake
As much as I enjoy not being blamed, I gotta stick up for the design team too. They're not "making mistakes" so much as "prioritizing their work in a way that justifiably causes you to feel unhappy."
To be clear, the part that makes us unhappy is that their efforts are wasted on small, tiny, minorities that don't deserve it..... (I thought before writing that, but I think it's accurate).
what makes me unhappy is these pointless discussions. Where we just realize again and again that we're completely powerless. We've exhausted all puns about Pops, and the mythical 6-8 weeks promises too, a long long time ago. Pops if you think our stress is even a little bit released by using you as our verbal punching bag, it's not working, at all.
Let's crunch the numbers....... Code Review is about the size of the combined (traffic per day): Theoretical comp sci, biology, expression engine, craft-cms, so.jp, network engineering, COMBINED
(add in Meta.stackexchange as well, which also sort of graduated after our announcement).
We are bigger than those sites combined, and they all got colors after our announcement.
@janos I "walked away" for a while. It's about the only thing that works.
As you can see the new design just went live. Which means this site has been officially launched! Congratulations! Thank you for your valuable design feedback.
We have also themed the twitter account and newsletter template for this site.
If you see any CSS/styling bugs, please start a new post...
This code could really benefit from a refactor, if you can get it working and want some advice on improving the code then this would be a really good candidate to post over on codereview.stackexchange.com — shuttle8712 secs ago
Steve, I know. Just saying that people joining these days and not being around since '11 will really have a hard time. This is not SF&F; there's little to none voting around here. — GhanimaNov 10 at 22:02
You're actually totally right. I was using an old tutorial that was using only pylab for this. I guess a lot has changed since that tutorial was made, but I got it working now. (Just had to use numpy instead.) Also, thanks for the pointer to codereview.stackexchange. — Teldridge1120 secs ago
@rolfl Yeah, that is definitely the new guy. RPi was the case I suspected it was, where the design team used it as a test and then it was so close to being ready they just implemented it. It's an exception, not the rule. None of that is really the point though; I completely see how all this makes you feel dismissed.
Also, if you want to lay into something, then pick on our poor processes on the team, not the Raspberry Pi SE community. RPi may not measure up to CR along certain metrics, but they did earn their graduation.
@TopinFrassi I'm sure there are but I couldn't tell you what. Just like a designer might not be able to tell you how to choose what you ask during a coding interview.
I’m Grace Note, a Community Manager at Stack Exchange. Normally for most sites we run a community site evaluation, as explained in this Meta Stack Overflow post under Public Beta sites. However, these reviews involve comparing our site content against searches on the internet for competing answer...
Last month's announcement about our updated criteria for graduation and site closure sparked some solid examination into the intended nature of public beta and graduation.
One thing these discussions showed us is that, contrary to what the Community Team had long believed, getting a custom desig...
@Pops But someone had to make a decision regarding this. That person should be able to justify it, shouldn't it? I mean, if I was to look at my job's backlog and pick the last added item in the backlog and push it to the top because I wanted to, my boss would come and have a chat with me real quick.
@Mat'sMug That's a really old post. We've since updated our graduation criteria. CR happens to have met both sets of criteria, and that's something to be proud of, but RPi also met the newer one.
So I'm trying to figure out the ins and outs of DI and IOC.
I have a multi tiered web application.
API
Service (This is where I have a problem with DI)
DTO (Factories live here)
DAL
I thought of creating a generic factory interface that would look like the following
public interface IFactory<...
> I think that CR is unanimously stating that this is a step in the right direction, but not enough. We all want the privilege levels changed now. We fear that if you strip the Beta label, we would be officially out of Beta, you can declare Mission Accomplished, and leave us waiting indefinitely again.
Okay. Then assuming that I am already doing what I can regarding the colors/privilege levels package (which I am), what else can I be doing to help make this better for you?
@TopinFrassi To continue the analogy, then, and at the risk of becoming increasingly inaccurate: when you interview a new developer, do you pick interview questions that are good measures of the person's general ability to code/think/solve problems, or do you pick the oldest item from your production bug queue?
@Pops But in such a case, isn't our old item in the backlog the same difficulty as the new one? If not, you've got a point! But also we'd like to know what makes CR's design more difficult for a designer than RPi.
I am essentially brand new to programming and I apologize ahead of time if the way I've constructed the code is done so poorly.
I am attempting to create xml forms using user input to populate certain areas that would appear when loaded into a STIG viewer. Right now everything is working enough ...
I think that's the crux of it really. We don't care as much about not being graduated yet. But what is really a slap in the face is being passed over again. And again. And again. In favour of sites which haven't got a tenth of what we've got.
Don't get why another site was graduated ahead of us.. Code Review is gaining a lot of traction even on Stack Overflow, albeit sometimes for the wrong reasons.
It's not our fault that the resource isn't there for the design. The resource is obviously there as another design was made for another site. It just appears that we are lower priority than the Pi.
Note
This question was born in request to post more details from this question: http://programmers.stackexchange.com/questions/302845/which-pattern-can-i-use-for-doing-computations-involving-similar-yet-different-o
Since details may uncover new/different complexity, I deemed to ask new question...
Our job is to run a successful community, not to manage SO's resource for them... so I don't think it's an acceptable reason to come and say "Sorry guys, just don't have the resource to do it". It's been 14 months now.
If you can get this code into a working state and are looking for advice on how to improve it then you might wish to post over on codereview.stackexchange.com as there's a few suggestions I can see here to improve this code. — shuttle876 secs ago
I get back two dictionaries, I need to parse through them and put in an array two objects. Below is the code that I am using but I think I did a very poor job. I have a feeling there is a better way to make the code more compact and generic. I'm a newbie to generics.
I think there is definite...
I occasionally browse this site, but it wasn't until today that I was encouraged to create an account--and only to post on the meta.
As many of you know, when certain links are pasted into StackExchange chat, the chat will automatically be replaced with some sort of image.
However, when http://...
There are more than 20,000 instances of "fuck" present in the chat.SE rooms, not counting private rooms used for moderation. I think this clearly shows that a certain level of crude language is widely tolerated in chat. SE never stated that the "no expletives" rule on the main sites doesn't apply...
Goal:
This way a particular class can be created from arbitrary location with no dependencies needed.
Simply put, let's say we have a manager class: MyClassMgr, a blueprint-like class: MyClassBlueprint
and a class that we entrust with the management of, among others, MyClass_A. MyClass_A can i...
Maybe my approach is crude, but the first thought I had was to use a simple dictionary with key as "ping host". If user separates command and parameters with multiple spaces or tabs, that too can be handled by preprocessing the command before indexing the dictionary.
Another approach that may be...
Using Apache POI, I want to retrieve a Person from my Excel file by id or by name. To keep the example simple, the Person class is only an int id a String name and in the Excel file, the id starts at A2 (A1 is the header) and the name at B2 (B1 is the header).
I came up with this code:
public P...
@Zak The answer already given is way off anyway. The OP asked for a better method to remove leading and trailing zeroes if ordered by date. Not that speed should always be above 0. One of the other unclear aspects is the secondary sort order as it isn't specified, and whether we can trust the ID's.
@Phrancis Actually I think rev5 looks better than the rolled back. It does invalidate the answer, but as the answer is wrong anyway, I think that answer should be deleted or commented upon that it doesn't answer the question correctly
@Phrancis Nope, one thing is that it leaves out the row with id=11...
I'm thinking the answer could be something along the lines of:
select * from tableX
where id >= select min(*) from tableX where date = 'date' order by id
and id <= select max(*) from tableX where date = 'date' order by id
Most likely not correct sql, but you get the gist of the idea... Would even be nicer if one could do a select min(*), max(*) into a between select... But don't know/remember/... how to do that... :-)
DELIMITER $$
DROP PROCEDURE IF EXISTS `select_todays_ids_between_the_zeroes`$$
CREATE PROCEDURE `select_todays_ids_between_the_zeroes`
(
IN `target_date` DATE
)
BEGIN
DECLARE `v_min_id` INT;
DECLARE `v_max_id` INT;
SET `v_min_id` = (SELECT MIN(`id`) FROM `tableX` WHERE `speed` <> 0 AND `date` = `target_date`);
SET `v_max_id` = (SELECT MIN(`id`) FROM `tableX` WHERE `speed` <> 0 AND `date` = `target_date`);
/* The result from this SELECT will be returned to the caller: */
SELECT *
@holroy I think something like this^ might work fine - will have to test to be sure
SELECT * FROM tableX
WHERE id
BETWEEN ( SELECT min(id) FROM tableX WHERE speed > 0 AND date = '2015-01-01')
AND ( SELECT max(id) FROM tableX WHERE speed > 0 AND date = '2015-01-01' )
@Phrancis Interesting reading. I do agree with the inclusive/exclusive part! For this query the rounding part doesn't apply, though.
Humpty, dumpty, whilst waiting for the question to be reopened, here is another version (without BETWEEN, and combining the query):
SELECT tableX.* FROM tableX,
( SELECT min(id) as startId, max(id) as endId FROM tableX
WHERE speed > 0 AND date = '2015-01-01' ) tmp
WHERE id >= tmp.startId AND id <= tmp.endId
Hi guys, could you reopen the question below, so I can answer it?
I have a program that takes an input from the user (the user's name) and print a result with their name inside a border such as:
*************
* name_here *
*************
The code:
def style_1():
print "*" * (length_of_name + 4)
print "*", name, "*"
print "*" * (length_of_name + 4...