« first day (1014 days earlier)      last day (3005 days later) » 
00:00 - 16:0016:00 - 00:00

12:00 AM
RELOAD! There are 1829 unanswered questions (94.1698% answered)
 
Greetings.
 
0
Q: "Functional style" array processing methods in Lazy.js

ToadfishI've just started using Lazy.js, which is my first exposure to a "functional style" javascript library. I'm still utterly lost as to which of the hundred different functional javascript libraries to use, but so far I like Lazy.js, so I've used it to write a tag harvesting module for a blog engine...

 
I'm about to kill an old zombie. I'm still four answers away from that tag badge.
 
12:23 AM
0
A: Simulating a linear linked list using an array

Jamal For assigning data members in a constructor, it's more common to use an initializer list: node() : data(-1) , prev(-1) , next(-1) {} Moreover, you don't really need to initialize data as well. It may even be misinterpreted as an actual data value at the start, which you may not w...

It's a start, at least.
 
@Quill and anyone else interested in giving feedback on RD's UI, can you meet me in the other room? chat.stackexchange.com/rooms/14929/vba-rubberducking
 
And in case someone wants to kill the last zombie (in Java):
3
Q: OOP paradigm implementation of a Dictionary data model

overexchangeHere is the implementation of interface Dictionary using chained hash table class HashTableChained. Despite item 22* saying Favour static member classes over non static in Effective Java, I used non static member class DListNode in class DblyLinkList, because any instance of the DListNode ...

 
I put a bounty on it
 
@Duga Still decreasing percentage of answered questions... That's not good
 
CodeReview is more appropiate for this kind of question. — SebasSBM 31 secs ago
 
12:48 AM
1
Q: Summation calculator of integers, squares, and cubes

chris360Code works exactly how I want it to, but any simplification to the code that could be made would be much appreciated (granted this program uses almost everything within the scope of my C++ knowledge). // sum calculator #include<iostream> #include<string> //integer sum: 0 + 1 + 2 + ... + n int ...

 
0
Q: Newest Reddit Submissions Grabber

OwenMy program does exactly what I want it to do and it works well. However, I feel like it's very clunky and I'd love you fine people's help. I'd like my code to be more efficient. By that I mean, I'd like it to accomplish what it already can, but in the best way possible and in the least amount of...

 
I reccommend you to post this in CodeReview. It is the perfect site for questions asking to review code that works. — SebasSBM 42 secs ago
 
@StackExchange lel
 
@Jamal Couldn't you have just migrated it?
 
This may be good for Code Review, as long as A the code works and is not incomplete and B the code is non-hypothetical — Quill 39 secs ago
 
1:16 AM
0
Q: Newest Reddit Submissions Grabber

OwenMy program does exactly what I want it to do and it works well. However, I feel like it's very clunky and I'd love you fine people's help. I'd like my code to be more efficient. By that I mean, I'd like it to accomplish what it already can, but in the best way possible and in the least amount of...

 
1:35 AM
@CaptainObvious Answered.
 
1:53 AM
0
Q: Using namespacing to avoid global variables

Mike Wfunction pagination(holder) { var g = {}; var resultNum = []; g.ix = 1; g.yx = 1; var ex = $(holder).length; vx = 1, recordGoup = 6, bx = 5, shoPageNum = 4; var remainder = ex % recordGoup; //alert(remainder); $(holder).each(function() { $(this).addClas...

 
2:10 AM
possible answer invalidation by Lee on question by Lee: codereview.stackexchange.com/posts/119574/revisions
 
@Duga I don't know about this. Jamal rolled back a similar edit.
 
I was wrong... He corrected the actual code output. Not the code in the question...
 
3:07 AM
0
Q: allow user to choose function Depth First Traversal

StudentInNeedsimple coding that allow user to choose function Depth First Traversal

 
3:51 AM
@WeatherVane I've heard of answer invalidation (on Code Review) but not.. comment invalidation? If the mistake has nothing to do with the question why does it matter? — Insane 6 secs ago
 
4:14 AM
0
Q: ToPaginatedListAsync<T> how to make it async?

Bart CalixtoI'm using this method and I would likely have a code review. Also, I have one concern and is that source.Count() is executing synchronously and I don't know how to make it async in this context. Any advice overall is greatly appreciated. public static class IQueryableExtensions { p...

 
4:33 AM
0
Q: Reformatting a structured string like "a-b-c|A-B-C" into "a-A|b-B|c-C"

cFreedThe code below was inspired by this post in Code Review. Here is how it was first intended by its author: I have the following code that converts a string that looks like : aaa-bbb|ccc-ddd|eee-fff to two strings that look like aaa|ccc|eeeand bbb|ddd|fff Somebody already proposed an answ...

 
4:51 AM
0
Q: Multi client media player in java with clients own playlist

princetrying to make a single server multi client media player in java , each client having own playlist and clients can access each others playlist and server can broadcast any file and also stop any clients access if needed ,,, urgent help needed

 
5:26 AM
-1
Q: which IDE takes less startup time netbeans + eclipse+sublime+notepad++?

Gitesh kumarI just wanna know which IDE takes less space to execute any programming language. I am using Netbean it takes around 700mb data and I wrote 1GB using java code now my memory is crashing. how can I use the my project so that memory should not crash.So I am thinking to change my IDE which IDE I sho...

 
Good job, @Jamal. You got it almost before it was posted.
Anyone want to help party?
in VBA Rubberducking, 7 mins ago, by Hosch250
@Mat'sMug @RubberDuck The old settings are officially gone in this fork!
Oh boy, did I break the unit tests deleting the old view.
 
5:48 AM
0
Q: Persistent set (Red black tree) follow up

MAGFollow up of this question Things I changed: Fixed some typos. Renamed variables and method to more descriptive names.(Eliminated 1 letter variables) Added static method pop_front. Refactored some methods. Added roll_back method. #pragma once #include <functional> #include <utility> #inc...

 
The question might be better suited here: codereview.stackexchange.compaljenczy 29 secs ago
 
6:13 AM
0
Q: Alphabetical Sort

Ashwin GuptaI have the following first-letter only alphabetical sorting algorithm: Code: (note, FileManager is just a file io class that reads in the unsorted words from a textfile then writes the sorted ones back out). public class Sorter { static String list[]; public static void main(String a...

0
Q: Paging through results

shrewquestWithout using the dynamodb mapper which of the poss# listed below is a better way of fetching results from ddb? I need to page them but I need to cache the results as well. Apologies for the rough code as I was just doing some quick dirty testing out with some tables. public class TestTable { ...

 
6:27 AM
@Z.van Bruggen: your implementation would have been comparatively slow already if it took 3 seconds for enumerating the primes up to 500,000,000 (adequate algorithms do that in less than a second even in Delphi); at 3 hours your code clearly belongs in the Sieve of Smith category. Stack Overflow and Code Review are full of topics regarding various prime sieving algorithms, with lots of tips, tricks and useful advice. Use the search function. — DarthGizka 49 secs ago
 
6:47 AM
1
Q: Medical diagnosis selector

NxSAlright, so my code is 'all over' and missing some fundamentals as regarding to the MVC design pattern.I should separate my concerns and I don't have a model layer and i'm clueless to how to implement it in the current situation. My two classes are : public class GuiPanel extends JPanel { publ...

 
 
1 hour later…
7:50 AM
You might want to bring this to codereview.stackexchange.com. — Andrew Cheong 55 secs ago
 
8:01 AM
0
Q: Node: Routing through controller's file name

Ali SaleemBefore I started learning Node.js I was happy doing my projects with PHP codeigniter. So when I learned Node.js, I tried to implement the routing mechanism codeigniter use by looking up controllers file names. So this is how my Node.js app routing is: app.get('*', function(req, res) { // URL ...

0
Q: Mock Unit test with Service locator

M005I am new to Unit testing, so can someone please guide me how to implement Mock unit testing for my code. HomeController namespace Mynamespace { public class AuthenticationController : AuthorizedController { private readonly IFormsAuthentication formsAuthentication; private readonly IUse...

 
8:43 AM
Also, if your code already works and you want some input on possbile improvements, there's also codereview.stackexchange.comsloth just now
 
Zak
Monking @all
 
Monking :)
@CaptainObvious all kinds of bad in this question :(
it's a good question, just really crap code
guess I'll do a review at lunch if I have time
 
9:00 AM
Ripe zombie; open question with answers, at least one answer having score 0, no answer having score > 0: Scala TryWith that closes resources automatically
 
@RoboSanta No naruto answer?
 
0
Q: Check WiFi Connectivity and internet connectivity in Background thread - with a return value

User3I have written this class to check internet connectivity on Android, while there are many instances when WiFi is connected is taken as an implication that internet is connected as well. I wanted to have a method which actually checks if internet is connected. One issue was to run the internet cod...

0
Q: JavaScript - Function for to compare strings

bo256If've wrote this function for to check if two strings are equal. Can I improve it? Is there a better way to accomplish the task? // Compares two Strings concerning equality. // -- Parameter -------------------------------- // 1. String - The string to compare against. // 2. String - The ...

 
@janos is that meant to happen? (See @RoboSanta).
 
Zak
> Sub cmdg2b2 ()
Awesome naming right there
 
9:38 AM
0
Q: Converting CSV To MYSQL With PHP In My Custom Wordpress Plugin

wunoI have a function which converts a file from CSV to MYSQL The file could be 5,000 rows long up to 90,000 rows long. Based on that I decided in case of problems with uploading the file I would just have the client upload the file with an FTP to a predefined path and then have my program execute ...

 
Morninggg
 
If the code works, this is more of a code review thing and as such might be better at codereview.stackexchange.comSami Kuhmonen 47 secs ago
 
@DanPantry It might've run out
 
Also please spell my name properly, it's Pimgd =) — Pimgd 2 mins ago
@Pigmd Yeah it's all the same to me !!! :D :-p — AneesAhmed777 29 secs ago
bleh.
You can't win em all, but you can also decide not to play in the first place, that way you don't lose
 
0
Q: Compare sequence & maps headers in fasta file

ArunThis is the perl code which compares the sequence in fasta file & maps the header. Though the code is working well, I still would like to make it more efficient. Since the files I compare has >100000 sequences it is taking huge time despite using hashes. Can you please suggest more efficient way ...

 
9:47 AM
1
Q: Self-answering on Code Review?

RaystafarianSo, to me it seems like self-answers here at Code Review are bad form. At other SE sites, if you receive answers that help you to the correct answer, normally you'll give those the credit and post your answer for your exact problem. I know we can't control what others do and I have a down-vote b...

 
I'll have a look and post an update if something works out, also try posting it hereSatej S 9 secs ago
It's a lot of code, so your best bet is the code review stack exchange. Also, I've updated the answer with a return false, which you could keep or remove depending upon your requirement. — Satej S 27 secs ago
 
10:08 AM
0
Q: Updating offers based on selected products

komalI have some nokia mobile models with some offers. There are two objects, one for nokia models with price, another one for offers. For example I have offers for these two models: "brandname": "Nokia" "model":"Lumia" "submodel": "Lumia 735 TS" "brandname": "Nokia" "model":"Lumia" "submodel": "Lu...

 
Zak
Selfies are not inherently bad form. Each answer should be judged on its' merits, regardless of who wrote it. In this case, it is a bad answer, which has been flagged as such. The identity of the author is irrelevant. — Zak 5 mins ago
 
it's a bad edit, edits the code everywhere
but " I enabled angular so the snippet works"
I can't see the change so I can include it
 
Zak
@Pimgd There are no answers yet, so the OP is free to edit the code to their heart's content.
 
it's not the op that made the edit,
and identation is also subject to review
it also doesn't look like this is some copy-paste error
so I rolled it back
found out that revision 2 added angular
revision 5 was just appending to the summary
 
Zak
is rev 2 allowed? Does that count as editing the code?
 
10:41 AM
Honestly, I don't think it's that bad
fixing the snippet when the original works - ehh why not?
looks like they posted a partial (Their html starts with a div, not with <html><head>...)
and making them include the entire html isn't going to help matters anyway, because it's probably not that related anyway
 
Monking
 
Morning
 
Hey there
 
10:59 AM
css is not fun
 
haha
what's the issue
 
global styles clobbering my css module styles
 
css
3
 
California Style Sheets
 
dangit I was just too slow
 
11:07 AM
 
Zak
11:22 AM
I just coughed so hard I'm seeing stars.
 
this question needs more voting love - 2 answers, 0 votes everywhere
0
Q: Hex-to-octal converter

li liThe code converts hexadecimal into octal. The function is working, but it takes more than a second to process the input. How can I optimized this? import java.util.Scanner; public class BasicTranformSixteenToEight { public static void toBinaryTransform(int n, char[][] arry, Stri...

 
11:47 AM
0
Q: A function determining intervals of values greater than threshold (Haskell)

penkovskyI wonder if there exists a shorter/more elegant functional programming way than listing all the possible cases. Here, a function that determines beginning and end of subintervals greater than threshold is coded. The idea behind the listed code is to mark and retain the beginning of such an interv...

 
Have you considered posting this question on CodeReview? — MSeifert 15 secs ago
@MSeifert is probably right, this fits the code review scheme better. — Jonas Wielicki 17 secs ago
 
12:05 PM
0
Q: Efficient way of coding a comparison function

Mpizos DimitrisI got a function that has as input 2 strings,computes the string similarity of all the combinations and give back and output the highest similarity. For example you are and are you will have 1 as similarity value. The functions are the following: import itertools from difflib import SequenceMatc...

 
Zak
Yay, I get to re-design our central business-submissions-details spreadsheet.
Helloooooooo Data Validation.
 
Greetings, Programs.
 
12:20 PM
-1
Q: Unity tiles endless map 2d

domofilaDo anybody put all work code for this (Unity3D)? Please help me! Only code for this map. When player goes create new generation tiles. for example, I need this: http://dondgames.netii.net/ this is 32x32 tile endless map (all sides) random create white, black and enemy block 35% create black t...

 
You should move your question to codereview.stackexchange.comkosmos 51 secs ago
Just a friendly reminder you might wanna post this question to codereview.stackexchange.com before somebody makes it irrelevant here and you get a lot of down votes. Happened to me. — Anfal 55 secs ago
I'm voting to close this question as off-topic because it is a code review request. — 1615903 49 secs ago
 
12:50 PM
possible answer invalidation by Ricardo on question by Ricardo: codereview.stackexchange.com/posts/119129/revisions
 
handled
25
A: Allow moderators to manually ban >2k users from suggesting edits to tag wikis

Shog9There's no UI for this, but the functionality exists. Drop this into your console, fill in the userID, optionally adjust the days to be banned, and it's done. $.post("/admin/ban-suggested-edits", {userId:whateverUserId, days:4, fkey: StackExchange.options.user.fkey}) If this is commonly-needed,...

@Quill my revision not change the question and if I need post another question with my update the question will be closed by duplicate — Ricardo 1 min ago
An updated version of your code will not be closed as a duplicate. Please don't update your question with your updated code, this invalidates the answers — Quill 41 secs ago
 
0
Q: Geocoding and Reverse in python using Geopy

Vipin RaiI had done this program that takes an input from STDIN and processes it to check if it is a Latitude/longitude combo or a place's name. Then it uses geocoding and returns an address corresponding to the latitude longitude or returns a latitude and longitude if the input is an address. I am using ...

 
Just wrote some cool code I'm quite happy with for Angular :D
interface ComponentController {
  $inject?: string[];
  mapState: (state: any) => any;
  new (...args: any[]);
}

function connectToStores(controller: ComponentController) {
  return function ConnectedComponent($scope, $ngRedux, $injector) {
    const unsubscribe = $ngRedux.connect(controller.mapState);
    $injector.invoke(controller, this, { $scope });
    $scope.$on('$destroy', unsubscribe);
  };
}
Now ng-redux "just works". Boilerplate elimination ftw
 
@Quill I need to put the update in my question — Ricardo 29 secs ago
Seriously?
 
1:02 PM
looks like TS, or am I mistaken?
 
TS/flow
TS and Flow are syntax compatible aside from their casting - and TS supporting string unions
 
Which is it that you're using?
 
We use TS in-house
 
@Quill Gotta fight the system
wtf I'm throwing errors on a comment line
javascript is silly
 
wat
wtf are you doing indeed
 
1:07 PM
maybe it's lying to me about line numbers
 
What's the error?
 
lel
 
TypeError: Cannot read property 'values' of undefined
I know that's my fault
 
Nice
 
just wish it'd point at the correct line
 
1:08 PM
I think I'm gonna go on a JavaScript hunt this weekend
clear out some of the zombies that've been hanging around
 
hmm, comment all the codez, see how you like that, javascript
 
@Pimgd ctrl+f values
 
@DanPantry I was going to comment that, but my smartass quota has been awfully high lately
 
0
Q: Reflection optimization

LennoxIn a web application I'm working on I have a class that Map objects to other (different) objects. It is implemented with something like: public interface IMapper { object Map<T>(T item); } public class Mapper { private static ConcurrentDictionary<Type, Delegate> cache = new ConcurrentDi...

 
@CaptainObvious Title optimization
 
1:13 PM
f5 = nope
CTRL+f5 = hey, look, the line numbers changed
 
do you build/minify the code?
 
yes
aaand fixed
the problem was a severe lack of type safety me expecting the variable I was accessing to be wrapped in another object
 
turns out I screwed up and my code doesn't work. :D
 
Also the logging is still off by 2-3 lines but I don't really care
 
@DanPantry I screwed my routing at midday today and I couldn't fix it the entire day :D
 
1:21 PM
nvm I fixed it
function connectToStores(controller: ComponentControllerConstructor) {
  return function ($scope, $ngRedux, $controller) {
    const instance = $controller(controller, { $scope });
    const unsubscribe = $ngRedux.connect(instance.mapState)(instance);
    $scope.$on('$destroy', unsubscribe);
  };
}
Turns out I shouldn't use $injector with constructor functions
 
mini angular question: who watches the $watch-ers
 
You could post it on codereview. — Raidri 38 secs ago
 
hang on, the answer to that is probably "it depends"
 
@Pimgd Quis custodiet ipsos custodes?
 
@Quill yes latin to you too
 
1:30 PM
> It is literally translated as "Who will guard the guards themselves?", though is also known by variant translations.
 
It amazes me the you fools are still writing non-Swift languages.
 
If you're in need of a coder or a code review, please use the relevant sites for this. You'll have (hopefully) more succes at codereview.stackexchange.comJoris Meys 57 secs ago
 
@nhgrif It amazes me that you fool are still having trouble with non-Programming languages. /s
 
I'm stopping by the grand opening of one of our new offices today.
 
Where's that in?
Did you say Nevada the other day?
If I had a decent app idea, I'd make the jump over to swift
 
1:32 PM
but what if you're writing things for, well, you know
not-phones?
Surely you can't just swift everything
 
@Pimgd Well, you actually can these days
Swift runs on OSX and Linux (coming soon, IIRC)
and they're writing a server-side implementation
 
@Raidri It's not about a codereview; it's to demonstrate my "solution" to a problem and I'm wondering if I may need to take a whole different approach. — RobIII 57 secs ago
 
does it work in IE6
wait, I should use realistic requirements based on real world scenarios
Will it work on windows server 2003
 
@Pimgd nothing works in IE6.
 
> server-side implementation
@Pimgd I'd imagine it would have its own server software
 
1:35 PM
@DanPantry that's the joke
 
Which is OSX Server, anyway
 
We can't upgrade to java 8 yet because it has to run on old servers
so this is probably gonna be met with a long discussion
but, .... what's so much better about swift, anyway
<--- non-mobile dev
 
The syntax is beautiful, the language is fresh and extensible
Can someone confirm something for me never mind
 
@Quill suspicious
 
1
Q: What did it just happen to the profile pages?

Ionică BizăuGetting errors on all the profile pages, on all the SE websites: I know you're fixing it, but I'm just curious what happened?

 
1:41 PM
[785]
that's a big queue
 
Swift runs on OS X, iOS, and Linux.
I mean, it's open source. So it'll run on Windows as soon as someone takes care of making that happen
 
I'm voting to close this question as off-topic because this should have been posted on Code ReviewNathanOliver 43 secs ago
 
0
Q: Assembly code to accept a integer from the user

james khanalCHECK THIS CODE section .data inout :dw 'enter any number' inoutl : equ $-inout inin : dw 'the number you entered was' ininl: equ $-inin section .bss king: resb 5;reserves 5 bytes and return to the kind variable section .text;for linker it should be declared global _start _start: ;FOR PRI...

 
NO!
 
@Quill Dat war…
 
1:50 PM
3fast5him
 
but I liked "CHECK THIS CODE"
 
2rollbacks and an edit in one minute
not bad
 
It's a pretty honest statement
 
I don't hate you. I just feel this should be on Code Review as that is what it is for. Stack overflow is for specific problems mostly. — NathanOliver 28 secs ago
@NathanOliver just because something is on-topic on Code Review, doesn't mean it's off-topic here. Don't just create your own reasons for closing posts. — Quill 13 secs ago
 
look ma, I'm on tv
 
1:55 PM
Haha no bother, I suppose I'll take this to the Code Review section then... I'll try and close this here. — AskMeOnce just now
possible answer invalidation by Quill on question by james khanal: codereview.stackexchange.com/posts/119762/revisions
2
 
@Duga Nope
 
There is a delete button by the edit button. You could delete this and ask on Code Review — NathanOliver just now
 
fking bugs in stackexchange
can't share an answer from review queue
because the share box instantly closes
0
A: Arithmetic operation from string

Jonathan MagnanDisclaimer: I'm the owner of the project Eval Expression.NET on GitHub This library is the easiest way to dynamically evaluate arithmetic string at runtime and support almost all the C# Syntax Using your example // return 34 var result = Eval.Execute<int>("4 + 6 * 5");

I think it's acceptable as a review, but only barely (55% sure it's okay)
 
Almost reads like spam
 
Of the past 50 first post queue reviews I did, 21 were reviewed, and 29 were skipped
 
2:00 PM
Please read the Code Review rules carefully before posting a question there. They're even stricter than Stack Overflow. — PM 2Ring 48 secs ago
 
and the 50 before that reviewed only 12
I really like the skip button
@Duga it's a ping-pong game of SO and CR
but it'd work fine on either, as far as I can see
=/ shame that that answer I linked is getting downvotes tho
do we really think it's spammy?
 
It's okay on code review, might need a better title, but it wouldn't get closed over there. — Pimgd 41 secs ago
 
I'mma give it some points
 
> This library is the easiest way to dynamically evaluate arithmetic string at runtime and support almost all the C# Syntax
Sounds like spammy bullshit
there's no justification or anything
 
well you know I think it does add value
 
2:05 PM
just "use my library"
add some justification, maybe
 
but... only in this instance
 
at the moment, it's just a library suggestion. Which IIRC is NAA
 
but if we were talking about java
and the suggestion was
You could use a Multimap for that
from Guava collections
 
Not to mention it's a paid library
 
wait, what?
 
2:07 PM
Your question looks suitable for Code Review to me. However, I'm not a Code Review user, but I know that they are pretty strict over there, and they expect people to read & understand their rules before posting questions. Please see A guide to Code Review for Stack Overflow users for further info. — PM 2Ring 42 secs ago
 
well wtf their licensing model is silly
 
 
you can just alter the code and increase the character limit
that's what MIT license allows you to do
 
It's on GitHub and they charge for it
 
as long as you attribute it back to them, tho
 
2:09 PM
I know my flag was rejected by @Simon, but I stand by it.
 
I think it's questionably fine, but a second answer like that would start raising flags for me too
 
No, It's a non justified review, which gets -1s for being NAA and a code dump to begin with
Secondly, it's a non justified link to a paid library
 
I'm saying it has non-negative utility.
 
If I swap a Dictionary to a LinkedList and say "This is the best method on the planet for doing this specific thing" + a code dump
I'll get downvotes
He links to his own paid library, and does the same. And you upvote.
 
(code dump of 2 lines)
 
2:16 PM
@Pimgd A code dump is still a code dump if you don't explain it
 
yes but I think the longer the dump the worse it is
 
The length doesn't matter
It's shit, either way
> Spam: Exists only to promote a product or service
But hey, reject my flags and upvote spam. Sounds good
 
I dunno
 
1
Learn Stack Overflow

Proposed Q&A site for beginners to Stack Overflow and Stack Exchange, and English-as-a-second-language speakers, wanting to learn how to best use the site and partipate in a constructive manner.

Currently in definition.

 
Consider moving it to "Code Review". — slartidan 13 secs ago
 
2:28 PM
@Quill now that's meta
and also a bad question site waiting to happen
hi how i maek snipet to fix probelm giv code pls
 
@Duga Strict?
Yeah, we have a dedicated migration meta
meanwhile you guys have close voting circles and bots to find shit to flag and close
 
It's a case of perceived strictness
it's not that we are strict
it's just that we come rushing in every time someone says our name and then say "no because guideliiiines"
And then, soon,
we are the site-that-must-not-be-named
... maybe that's overly dramatic.
0
A: Arithmetic operation from string

Jonathan MagnanUsing the solution you started will be soon or later way more complex when you will have to support operator precedence and parenthesis. Disclaimer: I'm the owner of the project Eval Expression.NET on GitHub This library is the easiest way to dynamically evaluate arithmetic string at runtime an...

It's been edited
 
wow
> Using the solution you started will be soon or later way more complex when you will have to support operator precedence and parenthesis.
tl;dr, your solution will need rewriting when it adds complexity
a standard phrase that applies to a majority of programming
 
how is "it doesn't scale" not a valid point
 
it's a broad point that means little
 
2:40 PM
but I don't get it
if he writes a review like the top answer
and then says "but you know, you really could do this easier by using my library"
then you'd still argue he ought to take it out, or what?
Because you seem to think it's a bad point that detracts from the answer
 
No, that'd be a valid review
that says "this issues and pitfalls that you've fallen into"
 
it can't mysteriously become good if there's other points present because they don't relate
 
"here's why, and how to fix them"
 
but that's still a detached point
you'd be tolerating it based on the other points
if he explained his library was better because it did that then they'd be related
 
what point are you trying to make
 
2:45 PM
but otherwise it would be "you do x wrong and this is bad because it doesn't work for cases where y" and a few other valid review points
and then a code dump "here, I fixed them for you"
that I don't understand why you think it's a bad answer because it only contains his library
but do think it's okay when there's a regular review in front of it
strawman version: Do you really think writing a review entitles you to ad-space, and all ad-space must be earned?
 
Because that regular review is the minimum
it doesn't meet that minimum
you can't just link a library and say "this is better"
you have to explain it. which he didn't and doesn't
he wrote some bullshit point about scaling brackets and it's really just a glorified advertisement
 
but what about this one
3
A: Arithmetic operation from string

tinstaaflOne of the simplest and easiest ways to evaluate math expressions is to use the Compute method of the DataTable class: DataTable dt = new DataTable(); int answer = (int)dt.Compute("2+(4*3)*4", ""); answer is 50. One caveat you'll have to trap exceptions to catch invalid expressions.

it's the same darn thing
except this time the library is a built-in
This DataTable library is the simplest and easiest way of doing dynamic math string evaluation <example>. Oh yeah, you gotta catch exceptions if it fails.
 
It's inbuilt, and nearly as bad IMO
 
But it's the same answer!
So why is that not spam and not downvoted - because it's not an external library?
 
Because it's not an external, paid library
 
2:52 PM
0
Q: Optimize JQuery for personal portfolio animations

brndngI built my portfolio page using Bootstrap and JQuery, but on lower performance computers the animations seem choppy. I am interested in JavaScript optimization and was hoping you all had some ideas on how to more efficiently execute my code. You can see it live here: bgottschling.github.io. Below...

0
Q: GWT TextBox, DateBox, and such doesn't share same base input-class

Kevin CruijssenI'm currently working on an existing GWT project. In this project I've added a list on the view which looks something like this: Label1 : [TextBox] Label2 : [DateBox] Label3 : [TextBox] Label4 : [TextBox] Label5 : [DateBox] Label6 : [TextBox] I've made a widget derived from a FlowPanel in whi...

 
... well you can downvote it all you want, but I don't think it's spam.
 
Neither does the mod who rejected my flag
here and here
here and here
 
I'd suggest posting this on codereview.stackexchange.comroryap 25 secs ago
 
well, I suppose you could raise a custom flag on those
see what SO mods think about it
 
2:59 PM
Maybe turn it into a meta over here as well
 
if you want to turn it into a "fun" discussion you post it as a meta question to SO
 
0
Q: Implementation of Disjoint Set in Java with Linked- List

Revekka PalaiologouI have just wrote a linked list implementation of Disjoint Sets in Java for Rainfall Problem. Can you take a look and tell me if there is something missing and also make a judgement in performance matter? Also any help on how to use this implementation in the Rainfall problem would be very apprec...

0
Q: Enchance recursive algorithm

Alex ZhukovskiyI use a lot T4 templates and want to avoid extra code writing when it could be generated. Currently I have following class: class Recursion { private readonly string _function; private readonly Func<int, string> _appFunc; public Recursion(string function, Func<int, string> appFunc) ...

0
Q: Complex Space Factorization

Fred VioleI have posted a discussion on Math.SE regarding visualizing the complex space and effects of factorization methods on that space. A quick link to the paper is available here. I have 3 routines in that paper, the first is the complex space generator. It works, but it is very slow and would appr...

 
@Quill Do you understand how serious spam flags are?
 
@SimonForsberg Yes I do
 
3:10 PM
i.e. what happens if I would actually validate that flag, or use that flag myself (as I am a moderator) on that answer?
 
And I have followed up on SO with a moderator flag
@SimonForsberg then your name is linked to the addition of the user to a spam filter, I'm guessing?
 
It was a relevant library to what the code was doing and it had a "Disclaimer" at the top, then I don't consider it spam.
2
 
52
A: Is moderator retirement supposed to affect possibility of undeletion?

George Stocker Note that I hold him in very high esteem, but this particular case seems questionable; I cannot see anything about the answer that should have triggered a moderator to step in and nuke it. It was deleted because the user has a lot of posts that are just posts that link to their own website. ...

This is a similar situation (the answer)
 
@Quill I don't care who's name is attached to the fact that the user goes to the spam filter. It is the fact that the user goes to the spam filter that I want to avoid.
 
Thanks for the suggestion. I didn't know about Code Review. I posted it here. Should I delete this question? — morgantaschuk 17 secs ago
 
3:16 PM
This user only has one answer on Code Review where they share their library. If they had more answers here with that behavior, then that would be different.
 
And thus why I'm not making any more a case to you
Turning it over the mods over at SO to handle the 25+ answers fitting the description
 
I was not aware of his SO behavior, and judging by that I understand and agree with your concern @Quill. Let the SO mods deal with it. If that will end up being a network-wide suspension, then so be it.
 
It will most likely end up a mass answer deletion, as he has answers that don't fit the description
 
If you would have stated in your flag that they had similar behavior in answers on SO, then I would handle things differently.
 
I did not know that when I flagged it originally
I only discovered it afterward
 
3:18 PM
0
Q: Filter column and row according to regex in header

morgantaschukI'm writing a script that can grep the rows and columns from a text file that match a regex. I have an implementation but I'm looking to make it more elegant. This is my input.tsv: a b c d a 2 9 6 1 b 6 4 7 0 c 3 ...

 
possible answer invalidation by Elogent on question by Elogent: codereview.stackexchange.com/posts/109948/revisions
 
I'm excited. Getting C# In Depth 2nd Ed. in about a week. Going to remake one of the games I made in college and post it here to help me learn.
2
 
@Duga looks okay, I think
@Matt That sounds awesome. How much did you pick it up for?
 
@Quill 20 CAD shipped in province. Could have got it for 10 but didnt want to worry about duty from the states.
 
3:40 PM
auto-refreshing on 403 forbidden combined with an api request that gives 403 forbidden on page load makes for a pretty awesome disco
because then you get a refresh loop
I'm afraid this question does not match what this site is about. Code Review is about improving existing, working code. Code Review is not the site to ask for help in fixing or changing what your code does. Once the code does what you want, we would love to help you do the same thing in a cleaner way! Please see our help center for more information. — Edward 1 hour ago
okay... but...
-1
Q: Assembly code to accept a integer from the user

james khanalThis code is designed to accept a integer from the user. section .data inout :dw 'enter any number' inoutl : equ $-inout inin : dw 'the number you entered was' ininl: equ $-inin section .bss king: resb 5;reserves 5 bytes and return to the kind variable section .text;for linker it shoul...

the code ... does things.
and from what I can see, it does what it needs to do
 
0
Q: Read Twitter direct messages and check messages for links

JuholeiI'm learning Clojure and I'm doing a little thing that reads direct messages from Twitter using twitter-api wrapper. The code doing that is below. (ns twitterbot.my-twitter (:require [twitter.oauth :refer [make-oauth-creds]] [twitter.api.restful :refer [direct-messages]] ...

 
00:00 - 16:0016:00 - 00:00

« first day (1014 days earlier)      last day (3005 days later) »