« first day (868 days earlier)      last day (3150 days later) » 

12:00 AM
RELOAD!
 
INTERRUPT
 
There are 1513 unanswered questions (94.4071% answered)
 
goddammit no!
no no no no no no no
 
You looking at my typing answer, there, @Ethan?
 
12:06 AM
Oh, never mind, you're looking at the increasing unanswered count.
 
yes and yes
I'm missed the RELOAD!, and there are too many zombies.
Unrelated, but oh dear: what-if.xkcd.com/140
 
12:20 AM
@EthanBierlein YIKES
I have that What If book, love it :)
 
same here
 
Would it make sense for a class that inserts data into a database to return the data itself in the form that it was inserted? Or should it just return nothing?
Or return the new ID of the thing you inserted?
@SirPython IDunno
Hey @Mat'sMug!
You've worked with code that uses databases, what do you think of the above question?
 
Yo
@Phrancis which one?
Oh
@Phrancis that's pretty common, and useful
 
12:40 AM
That ^^
 
OK cool
Hey @rolfl
This Groovy stuff is so easy and fun to write, I feel like I'm cheating
 
1:00 AM
Wow, is it hard to debug when you don't have a debugger.
I'm resorting to logging everything, but I'm having trouble explaining an object reference not set to an instance of an object error.
It doesn't get thrown in the sister file, though, so at least I have something to compare too.
 
@Hosch250 I deeply missed a debugger when I was writing that C-64 BASIC fizzbuzz. The youth is totally spoiled these days!
 
0
Q: to print output triangle by using alphabets

Shafiqah CdHow to print this output ABCDEFGHHGFEDCBA ABCDEFGGFEDCBA ABCDEFFEDCBA ABCDEEDCBA ABCDDCBA ABCCBA ABBA AA

0
Q: Debug error - Heap Corruption Detected, Application wrote to memory after end of heap buffer. What am I doing wrong?

Devesh AminThis is my first time coding with C++ and I can't see to understand everything yet, although I have coded the implementation but want to make sure that I implemented everything right or not. This is the given sequence.h header file: // FILE: sequence.h // CLASS PROVIDED: Sequence (patterned aft...

 
LOL.
 
@CaptainObvious @Mat'sMug Please nuke
 
This isn't C-64 BASIC - this is Roslyn!
 
1:07 AM
@CaptainObvious broken
 
VTC'ed both.
 
@EthanBierlein lol, no need to even ask ;-)
@Hosch250 wtf, no debugger??
 
I have no idea how to get to it.
 
You have tests, you write tests, and debug them... no?
 
The only way I know of to run the code and regenerate the file is to rebuild the solution.
And no, I can't get my tests to compile.
I mean, I can't get Roslyn to compile, which breaks my test.
 
1:10 AM
There's gotta be something you're doing wrong then
 
A lot of people haven't been able to get it to compile.
 
A lot of people have been doing something wrong then
 
Jeroen said he couldn't compile it either.
And the guy at MS doesn't know why I'm getting the error(s).
 
Can someone @ping me really quick?
 
@EthanBierlein.
 
1:12 AM
I need to test something
Thanks
 
@CaptainObvious btw - another title that would have triggered that red box
 
try again
 
@EthanBierlein boo
 
bbl, gonna go watch a movie
 
Oh well, I've got lots of school to do.
 
@Phrancis I think you mostly just prefer the dynamic typing. :p
 
Who wouldn't!
But yeah, I'm biased. But it feels like Groovy (and Python) do dynamic typing #TheRightWay™
Unlike, say... JavaScript?
 
Not sure what you mean. Maybe I need to do some more JS projects.
 
lol
 
Yeah, I think every weekend I should try to do something in an unfamiliar language.
What are you using Groovy for, out of curiosity? My guess is web-stuff.
card-shifter?
 
2:08 AM
Right now I'm writing MongoDB code, but in general, yes, for Cardshifter
 
This could be a good fit for Code Review but if you post there you may want to write a title that summarizes what your code does, rather than that you would like to improve its efficiency (which is implied there). — Phrancis 57 secs ago
 
Our web stuff surprisingly doesn't use Groovy much, if at all. We've been using AngularJS and a few other things (but no jQuery) for the web
Oh and Bootstrap of course
 
0
Q: why it can not return palindrome when it comes to long string?

ckmssthe purpose of this code is found the largest palindrome in a string, it works fine when the string is short,but every time I test this code with 1000+ characters in a string. It takes forever to give me the palindrome in it ex. string str="djclsodjfdjclsodjfdjclsodjfdjclsodjfdjclsodjfdjclsodjfd...

 
@CaptainObvious Fixed that one.
> Once you have acknowledged that you do need a form of schema anyhow, an interesting question is where to set the bar of strictness. Imposing a schema at the database level is a development burden that devs using SQL experience the hard way. Reality is that the data model of an application changes. Maybe because the need changes, maybe because the current design is imperfect. The data model does change and the cost of this reality is too high in SQL.
> No schema or documentation schema induce too high of a cognitive burden on the developer though.
Lots of wisdom so far .. If anyone is interested: longtermlaziness.wordpress.com/2012/08/24/…
 
2:46 AM
0
Q: Class Function String Array/Struct Return

AustinHave an RPG-like program that uses a Character class to specify and return information about an individual player/character. I was curious about a way to best set and return an inventory of strings in terms of memory and performance for this purpose. I gave some thought to creating a struct or us...

 
2:57 AM
Damn. I was meaning to pick that up too, not familiar with any form of database techs.
Thanks for sharing @Phrancis
 
Hey @Legato!
 
Hey there @SirPython.
 
3:14 AM
@Legato NP. If you have any database questions, I like to think I'm reasonably versed in that stuff, so don't hesitate
 
ReMoinking
 
I've noticed. :) @Phrancis I'll keep that in mind.
 
@EthanBierlein ReReReMoinking
 
Hey @EthanBierlein, hey @Phrancis!
 
> friend: i write web crap this year. i've done other stuff in the past
me: Sounds fun, I guess? Maybe not, I've written web crap too
friend: better than mining coal
^actual convo
 
3:20 AM
Huh
Virtual or real coal?
Huh
I just dug this up from my bookmarks:
May 19 at 2:29, by Ethan Bierlein
Oh well, if I'm watching trash, at least I'm not eating trash. I have a small plate of celery by me. It's delicious.
That seems like ages ago now.
 
Well, that was about 1/3rd of a year ago, so yeah it has been a while
 
Lol. We talked about tomatoes for a good hour, if I remember correctly.
 
Weird...?
Then again, weirder stuff has happened here...
 
it has?
 
Weirder than talking about tomatoes? No, I guess tomatoes it about as weird as The 2nd Monitor ever gets :)
 
3:34 AM
I dunno, the conversation seemed normal at the time. I enjoy having a nice chat about fresh veggies/fruits anyways. :-D
 
Tomatoes aren't veggies... ;p
 
Tomorrow we are going to harvest the fruit from the pear tree in our yard..... now, when my brother tells me to "grow a pair", I can say "I did".
4
 
LOL
3
 
I'm tired enough that I didn't get that joke for a second or two.
But LOL
3
 
assert monkeyPun == "funny"
 
3:41 AM
I can't tell if Groovy or Python
 
Groovy
 
Funny, Python's assert syntax is exactly the same
 
Guess both are awesome enough that distinction is tricky
 
Except you can add an optional message like this:
assert monkey_pun == "funny", "Not funny? How is that possible?"
 
assert monkey_pun == "funny": "Not funny? How is that possible?"
^^ Groovy
 
3:44 AM
Wow, almost exactly the same.
 
ikr
 
Sorta gives you an idea of what language inspired groovy :P
 
Sure! But Python uses Java anyways, doesn't it?
 
1 min ago, by Phrancis
assert monkey_pun == "funny": "Not funny? How is that possible?"
^^^ Java too
 
@Phrancis Wait, are you talking about the interpreter?
 
3:46 AM
except Java has a trailing ;
 
@EthanBierlein Maybe. I normally don't really know what I'm talking about.
 
Like now ^^^ ?
 
The interpreter is almost pure C
 
@rolfl Yup
 
So you normally do Know what you're talking about.... I am confused
 
3:47 AM
@rolfl Maybe.
@rolfl I'm skeptical, how much additional code is before that assert that you have to write for it to work in Java?
s/skeptical/cynical/
 
Say, for example, you have a function that shoudl always return a double value between 0.0 and 1.0
 
Sure
 
assert 0 <= value && value <= 1.0 : value;
if value is out of bounds it will throw an essertion error, and that error would look something like:
AssertionError: 1.5
with a trace
 
Is the : value; just what it returns/prints?
 
for (int i = 0; i < 100; i++) {
    double value = rand.nextDouble() * 1.1;
    assert 0.0 <= value && value <= 1 : value;
}
Exception in thread "main" java.lang.AssertionError: 1.037666772501805
	at CheckAssert.main(CheckAssert.java:11)
The : .... is optional.
Whatever is after the : will be used as the error message, if needed
 
3:55 AM
Ahhh OK, gotcha
 
assert 0.0 <= value && value <= 1;
produces just:
Exception in thread "main" java.lang.AssertionError
	at CheckAssert.main(CheckAssert.java:11)
 
So, Groovy's assert is really just regular Java?
 
Well, are you surprised?
 
Yes and no?
 
(except for the trailing ; ... ;-)
 
3:56 AM
class UserDocumentTest {
    private testUser = new UserDocument("myName", "myPassword", new Date())
    @Test
    void testUserDocument() {
        assert testUser.getUserName() == "myName"
        assert testUser.getPasswordHash() != "myPassword"
        assert testUser.getPasswordHash() == MessageDigest.getInstance("MD5").digest("myPassword".bytes).encodeHex().toString()
        assert testUser.getDateCreated() instanceof Date
    }
I've been writing stuff like that^ and thinking it's all Groovy awesomeness, while it might be the case it's actually Java awesomeness
 
Is that @Test a junit test annotation?
 
Yeah
 
Well, Groovy uses the JVM, no?
 
Sure enough
 
Well, then, don't go using the assert keyword like that, use the junit assertions.
 
3:58 AM
wat?
 
That assert is a language keyword, not a JUnit method.'
 
I thought it was just Groovy magic until now
 
JUnit borrows the "assert" name, but has additional parts, like assertEquals, etc.
I would expect assert testUser.getUserName() == "myName" to be something like:
assertEquals "myName", testUser.getUserName()
 
Wouldn't that be doing exactly the same thing?
 
Not really..... there's consistency, and more, that JUnit adds.
For example, there's a lot more than just the assertEquals method...
Also, the assertion failures are better documented.
it throws a better-populated error message.
 
4:03 AM
How do you even use it? You have to explicitly turn assert on in Java
Groovy doesn't require that?
 
Not sure. Interesting question
 
Give it a try with something that should definitely be false like assert 3 == 2 and see if it breaks or not
in the JVM you have to turn it on using the -ea flag
 
assert 100+30*3 == 200
//Caught: Assertion failed:
//assert 100+30*3 == 200
//        |  |  |
//        |  90 false
//        190
 
@Phrancis - you shoudl be careful of my recommendations....
it appears that some of the shortcomings of Java's asserts have been significantly improved in Groovy.
6
A: Groovy 'assert': How to display the value?

Bill KGroovy asserts are now quite impressive! They will actually print out the value of every variable in the statement (which is fantastic for debugging) for example, it might print something like this if b is 5, a is {it^2} and c is 15: assert( a(b) == c) . | | | | . 25 | != 15 ....

That indicates that many of the reasons for JUnit's assertion mechanisms are obsolete in Groovy
 
assert 100+30*3 == 200
//Caught: Assertion failed:
//assert 100+30*3 == 200
//        |  |  |
//        |  90 false
//        190
assertEquals ((100+30*3), (200))
// silent nothing
^^
 
4:07 AM
assert is a curious thing to use. Only do it to clarify assumptions you make as a developer, not to actually do validation. Frankly, using assert indicates a bigger problem
 
@JeroenVannevel Assert seems great for writing tests
 
@Jeroen assert in groovy appears to be different to that which is in "traditional" things like C/C++/Java
 
^
 
You can use it as documentation towards other developers ("at this point in the method we know that x will be bigger than 5") but actual validating (assert param != null) should probably be done through normal code
 
0
Q: Palindrome using stack

dataEnthusiastRecently i started learning java, algorithms and data structures. I am trying to check if a string is palindrome in java. I want you to review my code and give the comments. import java.util.Stack; class Palindromer { Stack<Character> stack = null; public boolean isPalindrome(String s) { ...

 
4:08 AM
My opinion was similar to yours a few minutes ago, but has now changed
 
Here is an actual test class I wrote, maybe this helps?
import com.mongodb.DB
import com.mongodb.DBCollection
import org.junit.Test


class CardshifterDBTest {
    @Test
    void testCardshifterDB() throws Exception {
        def testCSDB = new CardshifterDB()
        assert testCSDB instanceof CardshifterDB
        assert testCSDB.getHost() == "localhost"
        def testDB = testCSDB.getDB()
        assert testDB instanceof DB
        def testDBCollection = testDB.getCollection("test")
        assert testDBCollection instanceof DBCollection
    }
}
 
3 of those asserts are pointless by the way
Groovy is staticly/strongly typed so you're testing something that is implicitly guaranteed by the compiler
def testCSDB = new CardshifterDB()
assert testCSDB instanceof CardshifterDB

This will never be false
The getHost() one is good
 
shhhhh
If you point out all my code's shortcomings in chat, there will be nothing left to review in the (eventual) question!
 
Well I'm on a plane in a few hours so I can't answer anyway!
Now that we're on the topic of unit testing
 
4:11 AM
Where you flying to?
 
I offered my boss to incorporate some actual unit testing and a unit testing framework in the codebase as a proof of concept and he gave me the go-ahead
 
So now you are leaving the country?
 
I'll turn their code into something usable before my first day of officially starting work
I'm flying to Boston
 
@rolfl Does it work, or is it broken?
 
4:12 AM
Gonna say hello to the 'Muricanos
 
@Phrancis probably works
But, consider this:
Stack<Character> stack = null;

public boolean isPalindrome(String s) {
    for (int i=0;i<s.length();i++) {
        stack = new Stack<Character>();
        stack.push(s.charAt(i));
        System.out.println(stack);
    }
    String returnString = "";

    while (!stack.isEmpty()) {
        returnString = returnString+stack.pop();
        System.out.println(returnString);
    }

    return returnString.equals(s);
}
Actually, I lied.... it probably does not work.
 
@JeroenVannevel A friend of mine is moving to Boston tomorrow. Good for you it's summer though. Them Canada-like winters are the pits
 
for a string with n characters, that will create n new strings in memory. Slap him around the head for that. I just wrote a blogpost on the subject!
@Phrancis Yeah, it's warmer in Boston right now than it's in Belgium
 
I'm guesstimating that Stack<foo> is an actual construct type?
 
Yes, but he creates a new one for each character ;-)
It's oh-so-broken.
 
4:16 AM
Damn.
 
No idea what you mean by that but I believe Stack<T> is outdated and people use Deque<T> now
or is that .NET?
 
true for Java, may be .net too
 
Like, VTC-broken, or enlightenment-grade broken?
 
VTC broken, it produces this output for me:
[B]
[a]
[n]
[a]
[n]
[a]
[B]
B
not a palindrome
 
wat
 
4:17 AM
for the input in the question: BananaB
which is a palindrome.
 
Monkeys sure know their BananaBs
 
I'm voting to close this question as off-topic because it produces the wrong results for the example input you give. Things which are palindromes, like BananaB it says are not. (See ideone for example) — rolfl 1 min ago
 
You should try this, it's kinda fun to watch
def greeting = "Monking"
for (i=1; i<=100; i++) {
    println greeting
    greeting = "Re" + greeting
    sleep(500)
}
> ReReReReReReReReReReReReReReReReReReReReReReReReReReReReReReReReReReReReReReReReReReReReReReReReReReReReReReReReReReReReReReReReReReReReReReReReReReReReReReReReReReReReReReReReReReReReReReReReReReReMonking

Process finished with exit code 0
 
@Phrancis Actually, I know my palindromes... just answered one before that
@Jeroen - travel safe. Have fun
TTGTB
 
@rolfl Hm, which palindrome is the best palindrome?
Also, night rolf!
 
4:22 AM
Able was I ere I saw Elba
Also
Bob
 
What about the Panama one?
Look at this gem from Roslyn:
' Generate special members, that aren't the factories, but are used by the factories
Private Sub GenerateSpecialMembers()
End Sub
It is called several times, too.
 
wtf
 
The whole thing needs a blooming clean-up.
I can't build it, so I can't use the debugger or run my tests.
 
Hint, do the cleanup in a separate fork
 
I'm scared to touch things because I can't run their tests.
 
4:28 AM
Clearly they need a Duga
 
I'm sick of messing with this super copy/pasta generator and having incomprehensible errors.
I'm determined to fix my bug, though.
 
Fix your bug, then just screw it. You don't own that mess
 
I have several papers coming due in anywhere from 10-30 days, so I won't be able to program
@Phrancis Regular contribution will look good on my resume, though, and maybe even land me a job there.
 
I have priorities too... If I have to work too hard to work hard, then I work elsewhere.
 
@rolfl Yeah, I've been working in spurts, and I've actually been getting a surprising amount of work done.
 
4:30 AM
Seriously, if MS was committed to getting more people using Rosalyn on more platforms, then they should make it accessible to those who would use it, and having a way to build it is the first step
 
@Hosch250 Eh, "looking good on a resume" is not a good excuse to work on some code, IMO
 
So, theoretically, I could create a couple methods from the generator, but I'm getting an object not initialized error, or something like that.
 
By making it hard to build they are either shooting themselves in the foot, or doing it intentionally. Either one is a bad thing for Rosalyn
 
@rolfl They say it should build, and don't know why it doesn't.
They even asked me for a log and reviewed it.
 
SOmeone should take the code, and make it compile on Linux ;-)
 
4:32 AM
@rolfl They are.
 
OK, so it's a WIP thing, that's good
If they are willingly, and "enthusiastically" working with you to resolve it, then that's much, much better
 
> I should hopefully have Linux ready by end of week
From their chatroom by an employee.
 
Um, end of week happened a few hours ago ;D
 
They have their build status there.
 
Dilemma... to code or to Tetris?
 
4:39 AM
Code.
 
Actually, I might challenge my all-time nemesis Ninja Gaiden, and see how badly I get humiliated this time around
 
I'm off to bed after this build builds.
Ah ha, that explains the issue.
My major breakthroughs always come around 12:00 AM.
Night.
Hi, @Kaku
 
Well, night
 
> SUPER BONUS 15000PTS
 
5:09 AM
1
Q: DFS in Binary Tree

MehrdadI have written these three codes for DFS in binary tree. Any improvement or comments are highly appreciated. // Method 1: Recursive DFS public static boolean DFS(Node root, int k){ if(root == null){ return false; } else if (root.data == k){ return true; } els...

 
5:30 AM
 
5:44 AM
Code Review is a question and answer site for seeking peer review of your code. — Cyrus 50 secs ago
 
6:39 AM
If I write a follow-up question, should I repeat all the problem definitions like what the program does, etc.?
 
Oh, hell.
Old games are far more difficult than new games.
 
0
Q: Binary Bayes network classifier in Java - Part I - follow-up

coderoddeTERMINOLOGY We are given a directed acyclic graph (dag) \$G = (V, A)\$, where \$V\$ is the set of nodes and \$A \subseteq V \times V\$ is the set of directed arcs, and a weight function \$p \colon V \to [0, 1]\$. For any node \$u \in V\$, \$parents(u) =\{v \in V \colon (v, u) \in A\}\$, which is ...

 
7:00 AM
Code review & optimization seems the only option in such cases. — Rayon Dabre 38 secs ago
 
Bah.
I lose again.
 
8:00 AM
possible answer invalidation by simplicis veritatis on question by simplicis veritatis: codereview.stackexchange.com/posts/104723/revisions
 
0
Q: Extract data from table and put in submit form

user2114764please help me how insert data only value in tr "Layanan" and "Tarif" into database mysql. For note, this table sometimes have 2 row,and sometimes have 4 rows. So,dynamic result. Please help me to insert in database. <table class="table table-striped table-bordered table-hover table-result...

 
 
1 hour later…
9:12 AM
0
Q: Precision sum of doubles

Syd KerckhoveSumming doubles can cause a loss of precision. Summing integers, however, doesn't. (Assuming no overflow.) Here's a high precision sum function I wrote: #define BASE 10 bool is_int(double n) { double intpart; return std::modf(n, &intpart) == 0.0; } double solve(std::vector<double> nums) {...

 
0
Q: Adding large amount of code

MhmdI have a project of 300+ lines, however I only want to review a part of the project. The project is hosted on github. Does that mean that I have to post the full 300+ lines and highlight that I want a specific part of the code reviewed or is a link to the github project sufficient if I post her...

 
10:07 AM
Ask politely on the NLTK github issue for someone help implement it if you're having troubles. Better yet, try implementing, do a pull request with your working code and ask for a code review and i'm sure NLTK dev will help you out with it. Or wait until someone else code it =) — alvas 48 secs ago
 
10:30 AM
possible answer invalidation by Syd Kerckhove on question by Syd Kerckhove: codereview.stackexchange.com/posts/105084/revisions
 
11:13 AM
0
Q: C++ Finding Prime Divisors with Wheel Factorization

Artem MavrinI am just starting to learn C++, and I wrote was the following implementation of the trial division algorithm to find the prime factors of a positive integer. I'm hoping the community here can suggest changes to both the algorithm and to the implementation. I barely know any language-specific fea...

0
Q: Create word jumble in python e.g. like Countdown with lopp

2033Thanks for you help, I am trying to create a word jumble program (only one word) without using "jumble" but rather "for loops". Any help will be much appreciated and rewarded!!!

 
11:38 AM
Haha, that's a bot-fest :D
 
Monking.... though the invalidation report is interesting..... the edit actually corrects an invalid answer ;-)
 
Hey :)
 
11:51 AM
@Legato here you go:
0
A: Network chat app

Simon ForsbergServer I think you are over-using the static keyword. Don't make each and every function static, create an object of the class and use the object instead. You have some catch parts that are either empty or print very little information. I suggest you investigate a bit more about the different r...

this question could use some Mathjax: codereview.stackexchange.com/q/104892/31562
 
Monking
 
Hey :)
 
> A junior PHP dev works with sublime and tears.

A senior PHP dev works with notepad and vodka.
 
> An experienced PHP dev works with Python.
 
Are there any experienced PHP devs?
I mean, the moment a dev approaches "experienced", they move to something else.... right. Like, it's just like there's no experienced suicide bombers.....
 
12:00 PM
I don't know. I should stop badmouthing PHP though, I never really used it.
 
0
Q: Basic userform with node.js backend and angular frontend

deshI have tried to get myself into Node.js and Angularjs in the past few month, and I thought I was ready to apply on jobs with them. So I did. I was assigned to do a fullstack single page app form. The frontend should be static html + JavaScript, and communicates through REST API with the backend...

 
I can do PHP pretty well
It's okay, for some values of okay
@SimonForsberg see my update
 
@Quill what update?
 
The needs mathjax comment
 
oh, nevermind. that
the mathjax
looks better, but I think something is wrong with |R_−R_{i−1}|
it should be |R_i−R_{i−1}|
 
12:07 PM
Probably
I was in mobile, mistakes were probably made
 
me fix
 
Thanks
 
thank you for the mathjax!
 
So, I am this close: |------| to a 10th gold..... but the CR folk are all far to efficient for me to get it easily.
 
;-P
 
12:19 PM
Hmmmm.....
 
?
 
That's just one short
 
Haha :D
 
Undownvote something
 
Hey @Morwenn - in C++ what is the idiomatic way of doing something like double x = 2.0 / 3.0; printf("%.3f\n", x); - i.e. how to do printf of a float value, with cout
(in this case, rounding to 3rd decimal place)
 
12:31 PM
@rolfl printf is unfortunately the simplest tool for the job; iostreams have many flaws and being lengthy is one of them.
 
OK, that gels with what I was reading in other places.... what about an sprintf(...) embedded in the << chain ?
 
Use cppformat if you need a fast and light formatting library.
I don't feel confident enough to guarantee whatever about std::sprintf :p
The other solution is to use iostreams like that:
std::cout << std::setprecision(3) << std::fixed << some_value << '\n';
But that's horribly lengthy.
 
OK, thanks ... appreciated ;-)
That cppformat references Loki Format ... I wonder....
... different Loki
 
12:47 PM
@rolfl Massive OCD incoming
 
@rolfl Yeah, Loki is an old library by Andrei Alexandrescu.
Our Loki's main library is Thors IIRC :p
 
1:20 PM
@rolfl what gold is that?
 
From the description, it could be review gold.
 
Yup, 5 close votes from reviewer gold
 
1:43 PM
Last CR badge I got was for telling jokes in here.
I may never review another question
 
Your question should now be in the reopen review queue, and I believe it's now working enough for it to be on topic again. — rolfl 32 secs ago
@itsbruce There's a badge for that?
Ahh, outspoken ;-)
 
Outspoken
 
2:40 PM
this site may be more appropriate for this question — Manos Nikolaidis 14 secs ago
1) Do not add C tag for C++ code. 2) If your code works then it is OT here. SO is no code review site. If it does not work, please state what you have done and what specific problem you have and what you have do to solve yourself. — Olaf 26 secs ago
 
0
Q: Refactoring a case statement

MhmdI have finally finished the project of a calculator in ruby, which is not based on eval. Instead it parses input char by char, the project is hosted on github. However, I find a specific part of the program very annoying since whenever I have to add something I have to rewrite a portion of it ag...

0
Q: UPenn CIS 194 Homework 3: Code golf

dretsI am working through UPenn CIS 194: Introduction to Haskell (Spring 2013). Since I am not able to take the course for real I am asking for CR (feedback) as it could be from teacher in that course. HW3 - Code golf - Full description module Golf where import Data.List -- ["apple","orange","plum...

 

« first day (868 days earlier)      last day (3150 days later) »