« first day (1164 days earlier)      last day (2856 days later) » 

12:00 AM
RELOAD! There are 2521 unanswered questions (92.9307% answered)
 
@Zak Heya
 
@Phrancis I think you can't not put stuff in namespaces
but eh that may be wrong :)
In general it's good practice though. For Modularization Purposes
 
12:17 AM
@Vogel612 That may be a LINQPad thing that lets you not put stuff in namespaces
Since it's more or less a REPL
@CaptainObvious @Vogel612 what do you think about that one?
The OP to me doesn't seem to be looking for a review. This was from Stack Overflow but they suggested to post it here, and they did, even though Loki commented back telling them not to post it on here
 
@Vogel612 You probably can create empty (partial) namespaces, but I haven't checked.
@Phrancis I told him it was a bad idea. He didn't listen.
Thanks a lot for your comments, I am not asking someone to explain me the code, I just wanted to know if my run time complexity analysis was right or wrong, I was not asking the complexity of the program, it was for one method. I am newbie for the site, thanks a lot for positive and encouraging feedback. I am pretty sure most of the people who voted me down would not have read my question entirely :( — sri_84 1 hour ago
He's looking for verification.
 
Hm.
Should we just let it slide? Likely someone here will address that anyways, as well as review the code
 
@Phrancis Yeah, it is...
 
12:32 AM
@Phrancis I'd say it's setting a bad example, but I'll leave it up to you, @Vogel612 and whoever else is interested in that crap to figure it out.
TTGTB
(third attempt, so I could just as easily be back in an hour)
 
OK good night @Mast !
 
Night.
 
Note, if you just edit your question to say "How can I improve the time complexity and the code in general?" then it would be fine and on-topic. — Phrancis 12 secs ago
When in doubt, leave a comment. OP seems well-intentioned.
 
@Phrancis When in doubt, bow out.
 
Amen.
 
12:41 AM
0
Q: In memory B+ Tree in C++

MAGI know B+ trees are not meant to be use in memory, I just implemented it as an exercise. I'm looking for a general review. Code: #ifndef B_PLUS_TREE_H #define B_PLUS_TREE_H #include <vector> #include <algorithm> namespace mds { template <typename T, typename D, typename Func = std::less<T>>

 
Hello fellow developers... I have a question... I just received a notification that my answer for a question has been migrated to a code review page. I tried looking up the FAQs on why it happens and haven't found anything... What does it mean when my answer has been moved there?
 
Hello
That means that a question you answered got migrated to Code Review
 
uh... Yeah but why?
:-\
 
The question you answered was off-topic for Stack Overflow (or wherever it was from), so it got moved here
 
Oh... So it's not because of my answer?
 
12:45 AM
Your answer is good :)
Not your fault in any way
 
@Sometowngeek When a question is migrated, all the answers go to the other site with it. If the answers are on-topic on the other site then they are kept, otherwise the community or a moderator delete the off-topic answer(s)
It's not ideal but that's how the Stack Exchange system works with migrations. Glad you checked in with us!
Feel welcome to hang around on Code Review if you like, we're a friendly bunch :)
 
Gotcha. Thanks @Phrancis and @Quill :)
I'll stick around for a bit. I'm not an expert developer, though. Just started as an intern in January.
I do like chatting though... Sometimes I make awkward or random comments :P
I like your profile's intro @Phrancis ;)
 
@Sometowngeek Ok good. Feel welcome to ask questions too, get your own code reviewed
 
0
Q: Checking if a string has all unique characters (C++)

jellyxbeanI've looked around and haven't seen this solution to this question posted (in C++), but if I missed it please let me know and I'll go ahead and delete this. Am wondering if this code can be optimized in terms of time complexity. The problem is checking to see if a string has all unique character...

 
@CaptainObvious The time is actually O(n)
Derp... didn't mean to ping you, @CaptainObviouis. Thought it would just bring a reply to that question without pinging.
 
12:54 AM
@Sometowngeek CaptainObvious is just a RSS feed, we ping it all the time
 
oh.... facepalms
 
re-Monking.
 
@SirPython Monking!
 
Honking
 
Hey @Phrancis! How're you?
 
12:55 AM
Good, just solved PE6 (way too easy to do with programming). How are you?
 
Hey @Sometowngeek! Welcome to the room.
 
Howdy @SirPython :D
 
I'm sure there's a smart math algorithm better than brute force, but I can't be bothered to work it out
 
PE6?
 
@Sometowngeek Project Euler 6 : projecteuler.net/problem=6
 
12:55 AM
@Phrancis Doing well, reading about the Apollo Guidance Computer and the source code.
 
clueless
oh.... that
 
PE5 was kind of difficult to do programmatically, it was simpler on paper really
@SirPython How old is that computer?
 
@Phrancis Whoa.... I can do math, but not at that depth. >.>
 
Not sure... 49? It sure's interesting, though.
 
PE7 should be relatively simple to do programatically.
 
1:01 AM
@Sometowngeek It's pretty simple to solve as code: pastebin.com/LyV0mUQC
 
@Phrancis Derp... I meant for PE5
 
Oh, yeah that one gave me some pause
 
0
Q: Basic Brainfuck Interpreter in C

DarklightusI have written a small Brainfuck interpreter in C. Hosted here. Though I have experience with lots of languages C is mostly new to me. Also I have found it very hard to test my interpreter because writing a program in Brainfuck is somewhat hard (or at least very tedious) and many snippets I fo...

 
Not the dogfoodling again....
XD
 
The code for PE5 is a lot more complicated than PE6 pastebin.com/gSYD5zVS
But if you know some math you can solve it with pen and pencil pretty easily
(disclaimer: I don't know math very well, so it took me a good while to work it out even that way)
@CaptainObvious Huh-oh, Brainf*ck... better call @SimonForsberg
 
1:06 AM
@Phrancis LOL
Alrighty folks... I'm off to bed :(
Gotta get up at 4:30
 
Okay, see you next time!
 
tips invisible hat
 
1:50 AM
0
Q: C program that reverses a string

Null SparkAs practice with the (ever so painful) C Strings I wrote a string reversal program. I am new to C, so I wanted to make sure that I am not using bad coding practices. It runs just fine (at least with expected input), but I am not sure if the logic is as good as it could be. (Note: I do have #inclu...

 
@CaptainObvious That program is surprisingly easy to read, for C code
 
2:17 AM
-1
Q: Basic if else and return improvement

jtlindseyIn the example below the code looks longer than it needs to be. When i tried to shorten it, I get unexpected results. Please see code notes. Can someone point out what I did wrong? Or at least point me to what I need to re-read in the developer.mozilla.org docs? var contacts = [ { "f...

 
@CaptainObvious closed at lightspeed jamal-speed
 
2:55 AM
possible answer invalidation by Jamal on question by Simon Augustus: codereview.stackexchange.com/posts/134037/revisions
 
monking
I wrote a review and then asked the op to add includes he mentioned in the text of the post, then he added the includes (and only includes). I hope it doesn't violate any rule. The following is the link to the post
1
Q: C program that reverses a string

Null SparkAs practice with the (ever so painful) C Strings I wrote a string reversal program. I am new to C, so I wanted to make sure that I am not using bad coding practices. It runs just fine (at least with expected input), but I am not sure if the logic is as good as it could be. (Note: I do have #inclu...

 
possible answer invalidation by Null Spark on question by Null Spark: codereview.stackexchange.com/posts/134490/revisions
 
Be careful whilst playing Pokemon Go that you don’t accidentally walk onto a legacy Angularjs project
 
@Quill LOL
@OlzhasZhumabek Looks all fine and well
 
@Phrancis, thanks.
 
3:08 AM
You're welcome!
Nice answer by the way
 
@Phrancis yield return
 
@EBrown Cool. I thought that one read easier than the other
 
@Phrancis, were my first lines of code after very long directx 11 engagement. Very distressing engagement xD
 
@OlzhasZhumabek Sounds like it lol
@EBrown I noticed you got a new answer by mjolka too
 
@Phrancis Yeah, it would be a potential improvement on the algorithm.
 
Hmm, @EBrown I used the code of that yield return version and just got a "Unable to cast object of type '<ExceptExact>d__01[System.Int32]' to type 'System.Collections.Generic.List1[System.Int32]'" exception
 
You can't cast with the yield return version.
You need to use .ToList() on the result.
 
Ah, OK
 
What does your code look like?
 
remainingFactors = (List<int>) primeFactors.ExceptExact(factorsTempCopy);
 
3:18 AM
Yeah, never do that. Lol
 
;_;
 
remainingFactors = primeFactors.ExceptExact(factorsTempCopy).ToList();
 
There we go
 
0
Q: Computation of primality

Sam PearsonI believe I have achieved computation of primality! That is, the computation of prime numbers. The code I am about to post will give you every prime there is, in order, starting with 2. Can we call this a major win guys? using System; using System.Collections.Generic; using System.Linq; publ...

 
@EBrown lol indeed
 
3:22 AM
@CaptainObvious uh, okay, congrats bro
 
was there any case when whole groups/organizations used CR for code reviews?
 
@OlzhasZhumabek Not that I am aware, a lot of groups and especially organizations/companies have internal code reviews
 
@CaptainObvious cool story bro
2
 
@Phrancis, I would like to suggest CR to some of my future groupmates when teaching them basics of C++, so I wanted to know what impact it will have on the site. I'm afraid of zombie flood
 
@OlzhasZhumabek Now that you mention it, the developers of Rubberduck VBE add-in have posted a great deal of their code on this site for review. You might check with @Mat'sMug and @Hosch250 for details.
 
3:28 AM
@Phrancis I wonder who those impartial, unrelated developers are
 
@Quill >_>
 
@Phrancis, thanks!
 
@OlzhasZhumabek Oh, do check out the tag if you want to see their posts
 
@Phrancis, already done so :) it seems like the posts come only from them
 
Correct
By any means, it's fine to recommend Code Review to your groupmates or whatever, just make sure that you point them to the Help Center or at least the Tour so they know what is on-topic here
 
3:32 AM
@Phrancis, ok, that's the first thing I will do!
 
Excellent
 
3:45 AM
This question would probably be better suited for Code Review.SE. — Miles Budnek 21 secs ago
On Code Review this would be expected to have a title and explanation of what the code does, as making code better is implied there. — Phrancis 31 secs ago
Questions about improving working code belong on codereview.stackexchnage.com. — WhozCraig 15 secs ago
possible answer invalidation by Jamal on question by Mani: codereview.stackexchange.com/posts/46465/revisions
 
@Duga hmmm
@CRMods This might need a user merge: codereview.stackexchange.com/review/suggested-edits/60279
 
Zak
4:08 AM
Monking @all
 
Still waiting for the Pokémon Go update that lets you capture strangers' pets.
3
 
@Zak Monking!
 
Zak
@Phrancis My back is killing me :(
 
@Zak I believe you!
 
4:23 AM
0
Q: Triangle class implementation

NinjaDeveloperI need some advice to improve my Triangle class. I know some of my code is sloppy, such as in the Triangle constructor. can someone give me advice on how to improve it? #pragma once #include "Shape.h" #include <algorithm> class Triangle :public Shape { std::vector<Point> _vertices; floa...

0
Q: Making a sorted linked list into a balanced binary search tree

Thomas NguyenMy code works, but I need help on revising it to make it shorter and simple if possible on my main.cpp part ONLY. The other files is to make the program compile and work out if you want to see the output. main.cpp: #include <stdio.h> #include "bintree.h" #include <string.h> #include <list> #inc...

 
4:44 AM
0
Q: matlab function, applying a mean to values of a column

atomsmasherI'm not familiar with matlab, and I'm attempting to translate over some functions from a script into python, using numpy and pandas. The operation that I'm a bit confused about is below. From what I've searched, it seems, but I'm not sure, that this is taking the mean, column wise, not including ...

0
Q: Personal project Archiejs - a node framework (for managing large nodejs projects)

flipflopappI recently finished a first milestone in (https://github.com/archiejs)[ArchieJS] and wanted to put it out for review. I am trying to get feedback from nodejs programmers and take insights on how to proceed with my project. Brief: ArchieJS is a way of organizing your nodejs code (esp for larger ...

 
This is a request to review a side project - the code is quite large and there are multiple repositories. — flipflopapp 2 mins ago
Need some CVs there
 
@CaptainObvious uhhhhh... wat?
 
5:01 AM
guys what do you think about this refactoring hint: if you think that lifetime of name (object, reference, whatever just the name shouldn't appear in current scope) should end now and the function doesn't, the code starting from creation of the name and supposed end are good candidates for a different function
 
5:18 AM
You should post this on codereview.stackexchange.com if there are no problems with your code. — Ito A 33 secs ago
 
@OlzhasZhumabek How about "are good candidates for considering a different function"
 
@Phrancis, like throw that away, write again? :D
 
Monking all !
 
sorry for the language, didn't know what that word mean
 
@OlzhasZhumabek Well, your statement is probably true in a lot of cases, but there are always edge cases where a different function might be clutter if it's only used in that one spot
It's a very "It Depends" type of case
 
5:24 AM
Only four more days until Sheriff for all of the mods except for Janos (not until September 2nd). Time really has flown by since last July.
8
 
Monking
 
@Heslacher Monking
 
@Phrancis, yeah. I tried to pack directx 11 initialization all in a constructor, but it was around 150 lines. All of the actions were logical to constructor, so I started creating small private functions, to make the constructor more managable, but the order in which calls are made matters, so it wasn't really a solution
@Heslacher, monking
 
Monking @Heslacher
 
@Jamal already one year ? I can't believe it.
 
5:25 AM
@Jamal, Sheriff? Search in meta didn't bring any results
 
@OlzhasZhumabek I'd say if all the initialization actions are only used in that constructor, maybe you just need to add some comments
I'd move them to functions if they are used elsewhere in the code
 
And around election time in the U.S. (November), I'll be at year 3 as a mod.
 
@Jamal, got it, thanks
 
HI JAMAL
 
@Jamal congrats, man
@OlzhasZhumabek It's a badge elected moderators get for serving for at least a year
 
5:29 AM
3 years... it's around finishing master's degree in terms of time o_O
 
@Phrancis HI
Maybe I'll have more time to do things after my season with the IRS ends in a month. I still don't have another job offer.
 
I don't have any job offer :(
 
@Jamal Didn't realize you were still on that job/season
Tax season was >3 months ago, I guess it takes a while to catch up though
 
It's 3-5 months, though it may still into August. Apparently there are still a lot of people filing paper tax returns.
 
do you really break a sweat and work on the job? Never imagined formal designing architecture and writing code
 
5:33 AM
@Jamal I bet those are fun... Surely the IRS has form-scanning software? Or do people type those into the computer by hand?
 
@OlzhasZhumabek depends, I guess
if you're not the architect, it's just problem solving
 
@Phrancis We do, but it can't account for every form. We do still have to enter them by hand (that's what I do), and we do still make quite a few errors. It's not as simple as entering everything verbatim.
 
@Jamal Yeah I know the feeling, done data entry work before, it's harder than it sounds
 
data entry is painful
> 3.24.38.3.1.1 (01-01-2016)
 
5:35 AM
And that's only part of it. We have a large book that accounts for almost every edge case.
 
welcome to version number hell
 
@Quill I wouldn't say painful, but it can certainly get a bit boring
I remember this old lady at my former workplace, Ruthie; every day, she would print out Excel spreadsheets, on sideways legal paper, and just start typing, and that's all she really ever did
She would use her highlighter to mark the rows she already entered
Not sure if she liked it or not
I'd wager not, but who knows
 
Absolutely. It only gets "fun" when we get to process more than one type of return in a day. Last Friday, we did five different ones, including jurats and 1040EZs.
 
Perhaps I'm just impatient
 
Sad part is that the stuff she was entering was going into a SQL database, so with a few well crafted Excel formulas, you could shove most of that stuff directly in with queries, and only deal with the exceptions
Even better, an ETL process
 
5:47 AM
any thoughts on what you want to do next @Jamal?
 
Maybe something in IT, unless I can somehow get something in software development.
 
@Jamal Sounds reasonable
 
6:10 AM
Congratulations @JeroenVannevel on reaching 10k!
9
user image
4
Also, monking @all
 
Monking @Mast
congrats @JeroenVannevel !
 
@Mast So handsome
 
@Mast, monking
@JeroenVannevel, congrats!
 
@Phrancis Don't feed his ego :P
 
But... but... @JeroenVannevel is handsome... D:
2
 
6:25 AM
is returning local array in C UB? As long as I remember, it should be
 
Why?
 
automatic storage duration?
 
It's C.
There is no automatic anything.
3
 
The other day I learned automatic GC started with Lisp
 
but...
34
Q: Returning an array using C

user1506919I am relatively new to C and I need some help with methods dealing with arrays. Coming from Java programming, I am used to being able to say int [] method()in order to return an array. However, I have found out that with C you have to use pointers for arrays when you return them. Being a new prog...

that's lie then?
 
6:28 AM
It may be better for you to read the second answer, the use of "automated" feels quite strange here
 
@OlzhasZhumabek return &(returned[0]);
That's returning a reference, not actually returning the value.
 
Congrats @JeroenVannevel good job
 
The reference breaks on moving out of the original scope.
 
@Mast, well, that was kinda confusing. What will be on typecast? nothing I guess
 
Casting is a bad habit on C, IMO.
 
6:30 AM
@Mast I guess this is because the array is allocated on the stack and thus collected when the scope ends, and therefore why the answerers suggest using malloc?
(I don't know C)
 
Heck should I know how it works under the hood.
But the moment you leave a loop or whatever other kind of scope-limiting construct, your references are UB.
If you want to return a local value, return the full value. Not a reference.
 
ok, so what will be on returning T*, not T[N]? :D it's like variable creation in C++ with auto
 
@OlzhasZhumabek No, not at all.
You have some odd ideas about C.
@OlzhasZhumabek It will return a pointer to the value, which will also UB.
A reference and a pointer share the same problem because they both point at something. If that something goes out of scope, the thing pointing towards it will obviously be UB.
Does that make sense @OlzhasZhumabek?
 
@Mast, Yes, finally! I've never learnt C :( I use my intuition to predict C behavior from odd C++.
 
Don't.
The other way around could work, but don't learn C from C++.
 
6:38 AM
@Mast, the other way around won't work too, since C++14 and 17 :) it's transforming to CPlusThon (very bad name, I know)
we will have things like [a, b, c, d] = func() //returns tuple or other kind of heterogeneous container
and we have clear wording on return value optimization, at last... And some things related to function evaluation sequence
 
I only learned part of the tricks of 11 and haven't tried 14 yet. It's not supported yet in my line of work.
 
@Mast, well, I think it is better to wait for 20 and upgrade to it skipping previous ones... Although 17 is good, like 5-7 features were not added to it, like concepts (aka iterable, runnable, etc)
 
possible answer invalidation by Jamal on question by Owen: codereview.stackexchange.com/posts/134376/revisions
 
@Duga Nah.
 
@Zak now I figured out that you're the one who answered my question on workplace
 
Zak
6:48 AM
@Dex'ter You know, I never even noticed that ^^
 
hehe ^_^
 
Zak
@Dex'ter How are you finding work 8 months on?
 
lol.upvote
 
well, I'm pretty confident now. I've been rewarded multiple times for my good work. It's kind of nice
 
Zak
Awesome ^^
I'm glad it's working out.
 
6:53 AM
BTW.OneLessSqlNewb
Educated someone just now
Talked them out of executing queries in a loop
 
@Zak yeah, there was such a high demand for project from us... the HR team had to hire a new software developer. Just couldn't handle things anymore. They were too many ^^
 
@Phrancis Is using a loop to add them to an array and execute the entire array of queries a better idea? :P
 
@Mast Yes
But not much better
Ideally, you leave the database alone, and when you need it, you get a set of data and let the app code deal with the result set
(assuming the database query is well-written and only returns relevant data)
If I catch someone passing a bunch of strings as queries to my database, we're gonna have a serious meeting.
 
7:17 AM
True, but there's nothing wrong with executing a couple hundred prepared queries in a batch.
Is there?
 
I think this would be better off at Code Review (codereview.stackexchange.com). — Sean Francis N. Ballais 35 secs ago
 
@Mast YES
Every query is a connection and a transaction putting load on the database
 
Zak
@Duga Would that be stub code?
 
Even the most benign query like a select becomes <open connection>begin transaction; select foo from bar where x = y; commit transaction;<close connection>
Show <3 for your DBA and limit your queries to the minimum your program needs.
 
I guess this answer solves your problem. Code performance based question can be asked here : codereview.stackexchange.com/questions/tagged/performanceHimanshu Tyagi 43 secs ago
 
7:24 AM
@Zak Left a comment, hope they read it
 
This would not be fit on Code Review, as the OP is asking a specific question and not seeking a review of their code. — Phrancis 1 min ago
 
0
Q: Is my code safe from SQL injection?

JasTonAChairJust wondering if you would consider this to be safe from SQL injection. I'm using Python3 and SQLite3. A peculiarity of my program is I need to dynamically access table names depending on my scenario. This is not for publishing online, but I wish to know if this approach is any good. def sav...

0
Q: Undirected graph implementation in java

Aneesh DandimeHere is my code which implements a undirected graph in java. I'm fairly new to java(I come from C) and I am not sure if this is a good implementation. Here are a few things i worry about - Did I use encapsulation in the correct way? Did I overuse/underuse it? Is this a good way of implementing...

 
Aw man, Project Euler 8 headache ;_;
string theBigNumber =
    "73167176531330624919225119674426574742355349194934" +
    "96983520312774506326239578318016984801869478851843" +
    "85861560789112949495459501737958331952853208805511" +
    "12540698747158523863050715693290963295227443043557" +
    "66896648950445244523161731856403098711121722383113" +
    "62229893423380308135336276614282806444486645238749" +
    "30358907296290491560440772390713810515859307960866" +
    "70172427121883998797908792274921901699720888093776" +
    "65727333001053367881220235421809751254540594752243" +
1000-digit numbers are difficult
 
7:40 AM
@Phrancis Ah, of-course.
So, put everything in one transaction when possible.
 
Craaaap.
Turns out one of our servers went down on Friday while I was on call but I didn't investigate it
2
 
@Mast Yes
@DanPantry Your boss is nice, I hope
 
@Phrancis My boss isn't the kind that gets angry over this sort of thing, just tries to prevent it in the future
The problem is that these sorts of things happen so rarely and each individual person isn't on call for ~6 weeks at a time that you tend to forget the procedure when things go down on call
I mean for the first 6 months I was on call I didn't get a call once
 
8:00 AM
VSCode has tabs! VSCode is now one of my favourite editors
Never thought I'd say that..
what
 
0
Q: I saw no notification about my answer that was to be deleted

NakilonI spotted the deletion only because I forgot to close the browser tab: http://codereview.stackexchange.com/a/134503/665 It's ridiculous that I was not notified that someone saw some issue with my answer and doidn't point out what exactly I should do, but just deletes. How many of my answers ha...

 
That's a humbling number
 
I always wondered what reached actually means
ohh, it's explained if I hover that ^^
 
8:18 AM
Monking
 
Monking @MathiasEttinger
 
Monkinng !
 
Monking
 
Ripe zombie; open question with answers, at least one answer having score 0, no answer having score > 0: Fetching a number of data tables from a stored procedure
 
8:33 AM
For review of your code this is the correct place for second question : codereview.stackexchange.comPriyank Kapadia 15 secs ago
@PriyankKapadia: It sounds like it's not really code review (that was my first thought too) as the OP is trying to get rid of an error, and can't work out how to do so. — Jon Skeet 36 secs ago
@PriyankKapadia: It's certainly not entirely clear - but I'd say that while the code doesn't work, it's on-topic here rather than in code review. — Jon Skeet 22 secs ago
 
I found out why I haven't liked TypeScript. Reason: I've been using it (tsconfig.json) wrong.
Turns out there's two properties: files and include. I was using files when I should have been using include. >.>
 
For working code in need of optimizations, Code review is a better place. For select replacement, look here: How to avoid using Select in ExcelVincent G 18 secs ago
 
-2
Q: Import Error: No module name numpy

Asif AhmedI am new at ubuntu and seeking help to execute a python code. I am using python 2.7.12 in ubuntu 12.04 in virtualbox and although i installed numpy, it shows import error. same goes for matplotlib. After execution it shows, Import Error: No module name numpy. Numpy is already installed and shows ...

 
8:57 AM
Monking?
 
9:08 AM
"String Literal" instanceof String
> false
 
String is the wrapper class
"String Literal" is the raw class
 
Yeah, I've worked that out now, just a little unintuitive how typeof("String Literal") == String will work, but instanceof won't
 
Here is a nice answer. It would be nice to have this user answer more questions :)
 
9:24 AM
0
Q: Simple Cache Mechanism

RuchanI have this simple cache mechanism for a repeated task in service. It uses static variable to store the information. Please suggest on how is it and if it could be better. Premise: I need to verify transaction from stores. There can be lots of transactions happening repeatedly from multiple stor...

 
I'm feeling a very strong pull into playing Pokemon again ( the DS games, not Go)
 
I think you're right, I'll move it to codereview. — DaveM 32 secs ago
 
9:52 AM
0
Q: ArrayIndexOutofBounds while doing merge

Rohitclass Merge{ static ArrayList<Integer> list; static int l; static ArrayList<Integer> tempMergList; public static void sort_list(ArrayList<Integer> inputlist){ list = inputlist; l = inputlist.size(); tempMergList = new ArrayList(); doMerges(0,l-1); ...

 
Monking
 
@Vogel612 Monking
 
you can use codereview for a code analysis — Hisham Maudarbocus 7 secs ago
 
10:13 AM
@Duga RBA, possibly incoming.
@DanPantry Took them long enough.
While I agree not getting notified is odd at best, I strongly disagree with the tone of your post. Please consider re-writing it in a more neutral, objective manner. — Mast 18 secs ago
 
10:33 AM
-1
Q: C# call a method from another solution

locke84I have a working piece of code that takes an input out record from a db, from that generates results, but it does so for its of cases and is quite slow. Eg Class generateResults() { DataTable record = GetInput() DataTable scenarios = GetScenarios(record) Results results = GetResults(scenarios) ...

 
@Mast +1, OP is acting very.. irreproachable
 
Monking
I wouldn't go as far as to defend the OP there, but I can sympathize with him at least
@Nakilon I see :( No notification about the post notice, and no notification about the deletion. That's bad, and at least to me, completely unexpected. I'll investigate this and keep you posted. I'm at work now, so please don't expect fast results. Thank you for raising this issue. — janos ♦ 33 mins ago
No notification is very bad
 
Yup.
But how OP reacts on it is not the way to go.
 
I don't know, I don't see any swear words, one threat and an annoyed user
Seems like a perfect way to describe his feelings and to hopefully change the behavior of this feature
 
He's basically shooting the messenger, at least that's how it feels
 
10:44 AM
He's shooting a the entire network, hoping someone bites.
 
10:55 AM
possible answer invalidation by Ruchan on question by Ruchan: codereview.stackexchange.com/posts/134518/revisions
 
11:05 AM
0
Q: Is it necessary to learn any other programming language before learning C#

Green HarrySuggest me that should I learn any other programming language before learning C# programming.

 
@CaptainObvious boooo
 
@Duga Don't.
@CaptainObvious 3 more VTC.
 
Not sure why I was invited to a chat about Salesforce, but while I was there, I got to see code of the day:
in Discussion between Ratan and sahisfdc, 25 mins ago, by Salesforce
@RestResource(urlMapping='/create Event1/')
 global   class  createevent1
  {
  public List<eventitems> eventitems = new list<eventitems>();
  @Httppost

    global static list<event> Eventhelper(){
    list<event> returnlst = new list<event>();
    savepoint sp = database.setsavepoint();
    system.debug(sp);
     try{
         RestRequest req = RestContext.request;
         RestResponse res = RestContext.response;
         Blob body = req.requestBody;
         string body1=body.tostring();
         system.debug(body1);
 
*scratches head
 
@SimonForsberg Is it sorcery?
 
11:16 AM
0
Q: I am using boost::process to call an external process, and using stdout, stderr, and stdin to supply/retrieve data

DaveMI have some program which takes input via stdin, writes output to stdout, and errors to stderr. I would like to call that program from another program, supplying data via stdin, and capturing output/errors via stdout and stderr. I have written the below, which seems to work fine - however, I do...

 
@SimonForsberg TF is this? Something that should break right now in any case
 
@MathiasEttinger @skiwi I've lost count of how many compiler errors there is in that code. I assume that it is supposed to be Java, but... errr.... global ? Uppercase and lowercase mixed like crazy, and just.... wow....
 
If that's really supposed to be Java then I'm an unicorn... just wow
6
 
@SimonForsberg oh, wow
 
did someone say bacon?
no, never mind
 
11:29 AM
I would be more surprised if you can find a compiler that can run that code though
 
0
Q: Looking for primes with all-different digits

BusyAntI recently answered a question on Mathematics Stack Exchange, where I used a small Python program to check the following : For all 6-digit numbers, with all digits being different, choosing the digits one by one from left to right, the second last digit can always be chosen so that the number wi...

 
@skiwi Me too. I was considering telling him that it can't possibly compile, but I don't think I want to be dragged into it...
 
@SimonForsberg Wise decision
 
@SimonForsberg That almost looks like mangled Python with C#.
 
@Mast For which values of "almost"?
 
11:39 AM
On second sight it looks more like a mess of random languages thrown together.
That ain't anything.
What language has property decorators like that, uses braces and has global as keyword?
It's crap.
 
And is not case sensitive?
 
I'd say that's a typo.
 
a typo?
Try ten or so typos.
 
There are only a couple of languages which are case insensitive and most of them are dead.
Cobol, Forth...
 
1
Q: Converting string to control

FatManThis is my first post here. I had a look for my question, but nothing quite answered what I'm looking for. I've just started learning C#. I have an up-down numeric control on my form (attEdgeUpDown), which has value 0-8. I have eight checkboxes (attEdgeBox1 to attEdgeBox8). I want to display as ...

 
11:43 AM
It doesn't look like Basic or Lisp either.
I'm going to mow the lawn, messed-up snippets like that give me the jeebies.
 
Delphi is also case-insensitive. But Delphi uses begin end and not { }
 
Maybe this is JAVA…
7
 
possible answer invalidation by Darklightus on question by Darklightus: codereview.stackexchange.com/posts/134489/revisions
 
@MathiasEttinger Must be it.
 
BTW.Work
 
11:55 AM
@MathiasEttinger Maybe it's maybelline.
@Nakilon I totally see your frustration and I agree that you should be notified if your post was marked for deletion. My answer mainly deals with the fact that, as it stands, your answer is considered low quality because there are no explanations for your review. The fact that your answer didn't notify you is a completely separate issue. The justification that you would be repeating Flambino's points is IMO not a justification at all. Either you can explain your review, or you haven't written one. — Dan Pantry 5 mins ago
Is this rude? I don't think it is, but want a second opinion.
 
In what way is that rude?
 

« first day (1164 days earlier)      last day (2856 days later) »