wake up at 6:15, check flags, handle the few flags that have been raised since 200's bed time (he's normally active until then....) Flags are normally pretty quick, comment flags, etc. About 10 minutes.... more if there's horrible flags like plagiarisms, migration mergers, etc. Check meta. You have to read everything.... otherwise you miss important stuff. Another 10 minutes if there is anything there. Check in on the review queues.... close votes are what take most time, especially if the language is not java.
Then, during the day, you keep a half-eye on chat, and on the mod rooms.... normally nothing significant if you don't need it, but, occasionally there's site-wide activity you need to be aware of.
Then you also get a ping for every meta question that's added....
I'm wondering if the unit tests I'm producing are readable, and if there is anything I can do to improve the readability of my unit tests in general.
This is an example of a unit test I've just written for a asp.net controller action to test whether the model's RequiresClassification flag is se...
Just wondering if there was someone out there that could offer help in optimizing my script.
<?php
/**
* If you don't understand what this does
* you have no hope as a programmer.
*
*/
function usage ( )
{
// Ahhh the marvels of echo, such a wonderful tool
// yet so advanced that a begin...
@GeorgeStocker Er, no. Unless I'm misreading the question, it's asking for help implementing a feature, which is OT on Code Review. Then again, there's a good chance I'm misreading the question. — QPaysTaxes25 secs ago
@QPaysTaxes Yea; this code works; the OP is looking to make it "DRY"; this is a code review task ("How can I make this code better?") — George Stocker ♦19 secs ago
It is not a code review question, I just hope that someone can do it in one statement. It is about normal LINQ, I think that is called linq to objects. — RayCW37 secs ago
You might get a good answer here, but this is probably more appropriate for CodeReview. If you don't get a reply, try there. — kobejohn59 secs ago
@QPaysTaxes looking again, OP removed too much stuff and made the code non-compilable
while trying to delete everything unnecessary - this isn't Stack Overflow, on this site it's better to leave as much of the context as possible in order to get useful and relevant answers/reviews. — Mat's Mug3 mins ago
I am trying to optimize the usage of TopicClients in my app. The instance is originally covered by interface and passed by IoC, so the IoC will dispose it at the end of the program life cycle. This way I think I am saving some resources for the create/dispose of the client.Is such an implementati...
I have 3 classes
StitchSorts
import GUIMain.*;
public class StitchSorts
{
public static void main(String[] args)
{
StitchSorts sS = new StitchSorts();
SortsGui.main(args);
}
}
SortsGui
package GUIMain;
import javax.swing.*;
import java.awt.*;
import net.migin...
@marmaa, if you can get this code into a working state (see my answer for a suggestion on that) then I would be more than happy to provide those suggestions if you were to make a post over on codereview.stackexchange.com . I suggest that site because this type of question is a lot more on-topic over there. — shuttle8742 secs ago
This post is the result of reading through and following the LOLCODE Specification 1.2 ("smoking the manual", right?), and writing and executing my code on compileonline.com.
My "hello world" was going to be a fizzbuzz. I like it because it nicely illustrates the basics of a language - variables...
@Mast nope. The underlying requirement behind these hardcoded constants is that you want prime numbers greater than 2. You need to parameterize a loop to fetch n primes and generate words for each one using a list of words that starts with "fizz" and "buzz" ;-)
I need to implement a decoding in the next JSONs:
First variant:
{}
Second variant:
{"one":{
one_data...
}}
Third variant:
{"two":{
two_data...
}}
Fourth variant:
{"two_vector":[
{
two_data...
},
...
]}
To the next enum:
#[derive(Debug)]
pub enum Value {
...
wake up at 6:15, check flags, handle the few flags that have been raised since 200's bed time (he's normally active until then....) Flags are normally pretty quick, comment flags, etc. About 10 minutes.... more if there's horrible flags like plagiarisms, migration mergers, etc. Check meta. You have to read everything.... otherwise you miss important stuff. Another 10 minutes if there is anything there. Check in on the review queues.... close votes are what take most time, especially if the language is not java.
@Mast since I started my "BA" job I've been automating Excel reports, and implementing a data warehouse system (trying to) with SSIS. Once that's done I'll probably do a bunch of SSRS reports and eliminate at least half of the Excel reporting, and expose SSAS cubes to eliminate all the ad-hoc querying I do. ....so I do lots of SQL Server stuff basically.
@RubberDuck you're here enough to run out of stars?
I've created a decorator in my rails application. However the initializer has 3 params. Is this generally acceptable in decorator or should I refactor this or try a different pattern?
FileBinderDecorator
class FileBinderDecorator
attr_reader :binder, :credential, :page
def initialize(binde...
I have the following 4 functions that work, however, I am sure that utilising promises will improve my code. I just find them so confusing.
$scope.takePictures = function() {
document.addEventListener("deviceready", function() {
var options = {
quality: 75,
...
FYI, there's no guarantee that someone will come along and explain promises, especially if promises aren't the best way to go about this (I don't know much JavaScript though - could very well be the case, I don't know) — Mat's Mug9 secs ago
fiddling with BASIC 2.0 on a Commodore 64 when I was 12. Later on got a "real" computer and discovered QBasic, then VB 4.0, then 5.0, then 6.0. Then later I got an office job and discovered VBA. Then about 8 years later I discovered .net and C#. Then I discovered CR and learned that I knew nothing.
I started in either BASIC or QBasic, not sure what it was exactly. Didn't do much with it. Later Pascal, C, C++, VHDL, Python and most recently JS. I experimented with ASM along the way, but never got the hang of it.
@QPaysTaxes I got interested in computers watching Star Trek reruns in the early 1970's. I took my first programming class in 1976 and dabbled with various things (mostly without success) until I took a Pascal class in 1984. In 1988 I got my first software development job and have been an application developer ever since.