« first day (707 days earlier)      last day (3608 days later) » 
00:00 - 17:0017:00 - 00:00

00:00
There are 1303 unanswered questions
At what reputation level to do gain the ability to vote to close/
@Duga 34 more to 1337...
nvm, looks like 3,000
@nhgrif 3k on grad sites
0
Q: Can we think how questions are migrated or nominated for migration?

nhgrifIf you try to vote a question to migrate away from Stack Overflow, you are presented with the following menu: And it doesn't matter who you are, these are the five migration options you get. And the fact of the matter is, I know I personally shouldn't be allowed to migrate to TeX or Stats. I...

@rmaddy: Class is just a specialized idnewacct 4 hours ago
@newacct Everything is just a specialized id... — nhgrif 18 secs ago
00:18
Another possible site for improving working code is Code Review. The code uses a quadratic algorithm. If you know the numbers are constrained (in your case, 1..9, though 5, 6, 8, 9 are missing anyway), then you can create a linear algorithm. On big sets of data, that would be an important improvement. It is also shuffling the data; is that intentional? Are you sorting and then counting the duplicates? Counting the duplicates in a sorted array is also a linear time operation, though sorting should be O(N.logN). — Jonathan Leffler 29 secs ago
I voted to close that on Stack Overflow. It's definitely off-topic there.
Questions seeking debugging help ("why isn't this code working?") must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Questions without a clear problem statement are not useful to other readers.nhgrif 1 min ago
But... I'm not sure whether that question would be on-topic here or not.
To the best of the asker's knowledge, the code actually does work. But his friend seems to think there's some sort of bug (but won't tell him what it is). Would this be appropriate for Code Review?
00:31
1
Q: Loop through folder names on a server directory

Anurag SinghI'm looking to optimize the code for faster performance. Sub PrintFolders() Dim wb As Workbook Dim ws As Worksheet Dim objFSO As Object Dim objFolder As Object Dim objSubFolder As Object Dim i As Integer Dim Folder_Name As String Application.ScreenUpdating = Fal...

00:53
0
Q: Linking to Bootstrap

KellyI'm very new to html and and am having trouble linking to bootstrap. Can anybody tell me where I have gone wrong in my code? <!DOCTYPE html> <html> <head> <!-- Latest compiled and minified CSS --> <link rel="stylesheet" href="css/bootstrap.min.css"> <!-- Latest compiled and mini...

Dinner time ;-)
1
Q: Calculator Snippet CC

rolflThe April 2015 Community Challenge requires building a calculator. Implement a simple calculator Where the definition of "simple" is whatever you make it - only supports basic arithmetic operators? Fine. It supports scientific notation, exponents and trigonometry? Fine! Takes input f...

01:08
@CaptainObvious Looks really good!
Layout, that is. Code is ugly because it's javascript
aw, "=" doesn't repeat the last operation!
var val = calc.stack.values[calc.stack.size];
I want uppercase characters in there
01:29
Why?
Because C# uses Pascal case and is in the minority in this regard?
For those of you who did not see:
6
Q: Can we rethink how questions are migrated or nominated for migration?

nhgrifIf you try to vote a question to migrate away from Stack Overflow, you are presented with the following menu: And it doesn't matter who you are, these are the five migration options you get. And the fact of the matter is, I know I personally shouldn't be allowed to migrate to TeX or Stats. I...

1
Q: Prevent "I'm voting to close this because it belongs on..." custom close reasons

nhgrifWe already have prevented posting the comment: What did you try? I suggest we also somehow prevent users from referring to other websites in the custom close reason. Per this Meta Stack Overflow question, potentially being on topic on another Stack Exchange site doesn't inherently make a...

Interestingly, the user who posted this comment:
Sigh. This nonsense has to stop. Here's a user to took his free time to help a lost puppy to find his home. Maybe its the wrong home but its not like he's wearing a name tag. Stop punishing users that try to help. — Hans Passant 1 hour ago
He has 537k SO rep.
He has 7k Meta SO rep.
He has 543 Super User rep.
He has 347 Programmers rep.
He has 346 English Language & Usage rep.
He also has a Mathematics account and an Electrical Engineering account, but the 101 rep you get just for creating an account.
So, outside of Stack Overflow and Meta Stackoverflow, he doesn't have the authority to vote to close questions (to say what's off-topic)... and yet through Stack Overflow he has the authority (sort of) to say what's on topic everywhere on the network, as long as it was posted originally to Stack Overflow
+3/-2 ...damn MSO
Who knows better what's on topic at Destination Site? Destination Site users or Origin Site users? — nhgrif 13 secs ago
For some reason, I can't see the up/down votes on MSE.
I can see the +3/-2 on MSO.
01:45
I think you need 1K on MSE.. or is it 1.5K? don't remember...
I think my MSE has +6/-1 though
I'm not sure. I have a weird rep count there.
Maybe it's +8/-3?
+8/-3
Heh, Shog9 answer grayed out.
-8
A: Reset votes on migrated questions

Shog9I liked this idea originally, but the more I've thought about it, and the more actual migrations I've reviewed, the more convinced I've become that the problem isn't the voting - it's the posts themselves. If you have a question asked and answered on one site, then shoved into another (where, a...

meta.stackoverflow.com/a/281870/2792531 @SimonAndréForsberg @sᴉɔuɐɹɥԀ and others who respond to @Duga
14
A: Off-topic pull requests to another site

Shog9I'm not sure that's a great question; he seems a bit confused about what he's doing, and frankly it's gonna take a bit of work to draw out where the real problem lies. Starting with finding out what shell he is using. If you or the author can provide some clarity to the question, then just flag ...

> If you or the author can provide some clarity to the question, then just flag it for moderator attention, select "other", and type something like "Please migrate to unix.stackexchange.com - I've fixed it up to be appropriate there." Then close it as off-topic.
> Otherwise, close it & leave a comment. Something like,
This question is off-topic for Stack Overflow as it concerns a user configuration rather than programming issue. Right now, it's unclear exactly what you're asking, but with suitable details it could be appropriate for [unix.se] - please check out the introduction there: unix.stackexchange.com/tour
Which is completely in line with what we tell SO users all the time.
> This question is off-topic for Stack Overflow as it concerns a user configuration rather than a programming issue.
That's the close reason.
 
2 hours later…
03:31
@nhgrif I'm more and more finding myself putting the burden on the OP to delete off SO and post to CR, if they want to and it's not off-topic on CR; though I have not (yet) flagged as off-topic for SO on any of @Duga's pings
@nhgrif I am not too young to have written paper letters, I've done it most of my life.
Unless you mean the process of emailing paper letters hasn't been invented yet.
I think despite some SO regulars voting/commenting code review-style questions as off-topic for SO (which they (the questions) are not, at least on paper AFAIK), it should be the OP's prerogative if they want to create an account on CR or not.
I don't know if it would be a good idea or not to ask on SO Meta whether questions seeking review/improvement of working code is off-topic on SO. But I'm not going to stir that pot. If it were to be asked I would think one of the mods on CR should inquire
04:34
What was the logic behind migrating this one to CR, codereview.stackexchange.com/questions/86051/…? Was it because 'faster' occurred in the original name, Numba noobie, can't get faster code? This is the only Q tagged with numba on CR, while there are 130 on SO. It's really a question about getting numba to work, or at least to do something useful.
the number of questions bearing a tag on source vs target site, isn't part of the criteria for migration
0
Q: Why does this code give me an error when a string is entered?

AyyyelianSo I'm working on making a random password generator my use and others use just for fun, and I get no errors from Eclipse when I use this code. Yet when I run it and enter a String value, which should be allowed, an error pops up. What's up here? package work; import java.util.Random; import jav...

It seems to meet the 6 things that make a good Code Review question:

Is code included directly in my question? (See Make sure you include your code in your question below.) -YES
Am I an owner or maintainer of the code? - YES, AFAIK
Is it actual code from a project rather than pseudo-code or example code? - REAL CODE
Do I want the code to be good code? (i.e. not code-golfing, obfuscation, or similar) - YES
To the best of my knowledge, does the code work as intended? - YES
Do I want feedback about any or all facets of the code? - YES
(my text in caps after each statement - Full post here)
04:51
@sᴉɔuɐɹɥԀ s/good/on-topic ;)
@Mat'sMug Close enough ;)
eventually people will grok that "code review" doesn't mean "dude, where's my bug? [wall-of-code]"
@Mat'sMug Yeah
This works, for some reason...
fun void foo( string s )
{
    while( true )
    {
        <<< s >>>;
        500::ms => now;
    }
}
spork ~ foo( "you" );
250::ms => now;
spork ~ foo( "me" );

while( true )
    1::second => now;
fun void foo ?
lol
From manual, edited. Why in the world would you call functions with arguments before you even go into your logic...?
(I just removed remarks)
> [chuck](VM): sporking incoming shred: 1 (Untitled 2)...
"you" : (string)
"me" : (string)
"you" : (string)
"me" : (string)
[chuck](VM): removing shred: 1 (Untitled 2)...
@Mat'sMug Translates to function void foo, not a fan of the fun short version
Though I guess... it's more fun?
Also, whose idea was it to use the ~ tilde as a function calling operator...
spork ~ foo has got to be some of the weirdest syntax I've seen
05:09
@sᴉɔuɐɹɥԀ probably someone with an appetite for destruction...
(~ is the token for a destructor in C#)
and with these wise words cough, cough... TTGTB
Night @Mug
night bud
Remember: Sporks have a few very short sharp prongs. Very very short.
05:26
@Hosch250 That's very funny
Isn't it?
Almost 12:30, and still can't get ready for bed... :(
@Hosch250 It's Friday night, dude! Like, the WEEKEND! I'm right there with you :)
So?
I've not got to bed before midnight for almost a week now.
Weekend, 2 days off!
Not for me, I've got finals coming and ends of classes being posted.
05:29
But, I think I relate in that I have really bad insomnia
I should probably be doing school now, actually.
@sᴉɔuɐɹɥԀ That's too bad, I used to too.
And I'll stop procrastinating... tomorrow.
Now, I sleep for about 10-11 hours, and I don't know what I'm going to do when I get a job.
Any less, and I can't think straight.
@Hosch250 You'll manage, I'm certain.
I hope.
I've not been getting up until almost lunch (which is really embarrassing for me).
05:33
I wouldn't say it's that unusual. I feel like destroying my alarm clock when it resoundingly wakes me up at 8:30 AM on week days, with some 4-5.odd hours of sleep
Ouch.
Thanks.
@Hosch250 Caffeine, man. It does wonders.
Ahh, I don't drink coffee.
Mountain Dew is better than coffee, for me at least. More caffeine in fewer milliliters
Mmm, don't drink pop either.
05:35
Eh... tea...?
Usually, water.
Nothing else in the house.
Anyway, cleared for getting ready for bed now.
Good night!
Why nothing else in the house?
Good night.
Because that is what we drink.
Tap water and sparking water for when we get sick.
0
Q: Natural merge sort - follow-up

coderoddeThe previous iteration at Natural merge sort Now my code relies on C++14 and looks like: natural_merge_sort.h: #ifndef NATURAL_MERGE_SORT_H #define NATURAL_MERGE_SORT_H #include <algorithm> #include <iterator> /******************************************************************************* *...

@Hosch250 Ah, OK. I've known many people who have opposed caffeine for religious or other related reasons, perhaps you and/or your parents are in that category. In any event, I hope you are able to get better rest :)
 
1 hour later…
07:10
If you want someone to review your code you should ask on Code Review, but check their help centre before you post. — Hobo Sapiens just now
08:00
0
Q: Parallel natural merge sort

coderoddeContinuing working on Natural merge sort, I have parallelized it. My code so far: parallel_natural_merge_sort.h: #ifndef NATURAL_MERGE_SORT_H #define NATURAL_MERGE_SORT_H #include <algorithm> #include <iterator> #include <thread> #include <vector> /*******************************************...

0
Q: Is this a properly written PHP+MVC example?

Daniele SqualoThe following codes will read a db, show the contents to the user and provide instruments to edit them. Tested and well working. model.php <?php class Collega { private $host="localhost"; private $user="root"; private $pwd=""; private $attiva=false; public function connett...

08:14
0
Q: Number of paths in a grid (matrix)

ArqamI am trying to solve this very popular question in which we find the number of paths from top left corner of matrix to bottom right. I am given a rectangular block inside the matrix which is blocked. I am using Dynamic Programming to solve with a time complexity of \$O(m*n)\$. It works pretty g...

08:34
0
Q: Piggybacking namespace pros and cons

gerdiI was wondering of there are any disadvantages to piggybacking namespaces in c# when creating extension methods. So for instance , I have a class being referenced by the main project as well as the testing project which just returns the absolute url based. namespace Project.Domain.Extensions { ...

0
Q: How to create composite objects using builder pattern

MeysamI need to decode and encode TLV (Tag, Length, Value) data which is a composite part-whole tree structure. Therefore, I've decided to use the Composite pattern for the TLV objects: class TLVComponent { public: TLVComponent(); virtual ~TLVComponent(); virtual void Decode(const std::s...

0
Q: Calendar application, scheduling a collection of events

gsoEonJS https://bitbucket.org/gso/eonjs/src/21a95726df7d?at=master It's early days for this at the moment, and with no more than cursory testing, however this should be working code. Coded in the upcoming ECMAScript 2015 standard.

09:07
0
Q: removeAll(closure) in Swift

vrwimFrom this library I wrote, I have created this function in Swift, but I'm not happy with the implementation. Can anyone suggest a better way to do this? I really don't like changing counters inside for-loops... /// Removes all items that conform to the given closure mutating func removeAll(closu...

09:18
09:29
0
Q: How can I turn a monadic function into a monadic state transformer?

Bartek BanachewiczBasically, what I want is this (hence why I'm posting here, not on StackOverflow): stateIO :: (s -> IO (a, s)) -> StateT s IO a stateIO f = do r <- get (a, r') <- liftIO $ f r put r' return a I tried to use state, but the inner liftIO is problematic. Is there another...

10:11
0
Q: Ruby - setting an object to nil - this feels like bad practice. Is it?

GhostRiderI am using the ruby sunspot gem to create a search users function on my site. It works fine and the users controller for the index page where there is a search form is this def index if params[:search].nil? @users = nil else @search = User.search do fulltext params[:search] end @u...

Questions on SO should include the relevant code in the question itself. – I haven't downloaded your code, but note that codereview.stackexchange.com is a dedicated site for the review of working code. — Martin R 41 secs ago
10:52
thanks i'll keep that in mind when I do my next code review. :) — sapatos 25 secs ago
11:03
@hpaulj I don't know who flagged that for migration, or who actually migrated it. I myself don't find it off-topic for Stack Overflow, so I wouldn't have migrated it.
That would be a lot of code... Should I close and repost in codereview? Thanks! — Gregzo 1 min ago
11:39
0
Q: The viola jones face detection implemetation

Amit RajThis is my first time in Code Review, I will be thankful if you would bear with my mistakes... I am trying to understand the VIOLA JONES algorithm and I came across this implementation in MATLAB. The problem here is that the ShowDetectionResult() function plots all the detected objects. How ca...

11:57
Monking
@rolfl The Trello app got an update yesterday and since then Google login worked again
I think they broke something ;)
12:11
0
Q: slow performance when query data from Quickbook using qodbc

Phengly EungI have a problem with query data from Quickbook by using SQL Server Link Server. The performance is damn slow. I have only 6718 records in Customer table it take up to 4mn to query all data. Anyone has idea on this? thank you before hand.

Monking ;-)
So, you want 4 downvotes, right?
Well, not exactly
Sep 30 '14 at 16:18, by rolfl
Well, I am close to cap today, so it can't go too far wrong .... and, 40004 is also a palindrome ;-)
12:28
@rolfl You got 10001 after you got 40004?
ah, different sites of course...
No, same sites, just different sort order on search results.
Oh, but yes, different sites too
12:48
translate: Здравствуйте, меня очень заинтересовал стартап Preply. На сайте preply.com легко найти репетитора, который подойдет и по квалификации и по кошельку!
(from Russian) Hello, I am very interested in startup Preply. On the site preply.com/easy to find tutors, who will come and on qualifications and on the wallet!
0
Q: Double link list: iterator/pointer arithemetic

tukLooking for feedback on how to improve my code writing & implementation ideas, using a double linked list container I've written as the working example. The textbook I'm using is from 2001, so feel free to point out where later versions of the c++ standard should be used instead. Notes: List::...

@rolfl I understood the words "сайте" (=sajte = site) and "квалификации" (=kvalifikatsiy = qualifications)
c --> s, a --> a, й --> j/y, те --> te
13:38
@skiwi So, do they allow deleting a board now?
Congrats @rolfl for hitting 60K!
Thanks @Mats I have an agenda / goal I am pushing for... (and not, it's not actually an attempt to be #1 rep - It is to get an 8th gold badge though).....
13:56
@Mat'sMug I don't know? Why wouldn't they
@Mat'sMug Nope, just hiding pretty well
14:11
If someone would double-check for me, that this link "just works": http://git.tuis.net/ubench/calc.html. thanks.
(hopefully my firewall rules work for everyone, not just me).
@skiwi They've never allowed it in the past
ta
@nhgrif Ah okay, that's kinda weird, isn't it? You could archive everything though
14:33
0
Q: Huge terminal game (in development)

Marius MacijauskasI'm developing a big (for me, as a beginner) terminal program "Brainfuck - The Game", in which you have to complete Brainfuck challenges. I would like your review on existing code (and project structuring) before I continue to expand it even more. main.py """ Brainfuck - the game. """ def main...

Well, learned something new today.
@MartinR Is there a way to do that for Objective-C code, or is this Swift only?
Heh....
I created a new Stack Overflow tag today.
14:52
iOS8.3?
15:05
0
Q: Optimizing Manhattan-distance method for N-by-N puzzles

MichielWhen I try to solve certain puzzles some take no time but others take to much time to the point that I run out of memory. I think it's due to how I calculate the manhattan distance. Below you see the Board class, an instance of this class holds a puzzle in the variable tiles. The methods getRo...

0
Q: Send POST request to PHP script with SWIFT

mattiaI am starting to play with POST request to save in my server the user token so I can send push notifications in SWIFT. This is the code so far. It works but I am not really sure this is the best way to do it. I am especially confused about synchronous and asynchronous request. Any advice would be...

15:22
I'm VTCing that as too broad. Should be two questions.
15:39
@rolfl Start with the fact that if you agree with me that the question should be closed the following is purely hypothetical... but...
Let's suppose someone posted a single question asking for a review of two distinct things (should be two questions, not even a comparative review)
And let's say it receives an answer for each implementation (2 implementations in question, 2 answers one reviewing each)
The question still needs to be fixed up. Is it possible for a moderator to migrate an answer from one question to another?
nope
Okay.
So this should be on hold before it gets any answers then?
0
Q: Send POST request to PHP script with Swift

mattiaI am starting to play with POST request to save in my server the user token so I can send push notifications in Swift. This is the code so far. It works but I am not really sure this is the best way to do it. I am especially confused about synchronous and asynchronous request. Any advice would be...

Do you guys think this is a good Class Diagram?
I'm confused @skiwi
You're always allowed to be confused
15:43
I would say... I'm not sure if your actual class layout is good or not, because I'm not certain how to interpret the diagram. It could be that I'm an idiot and I'm not used to looking at class diagrams though.
Without explanation I can see now that it's more difficult to interpret...
I am going to agree with @nhgrif on this one. Answers will be in two distinct groups because this is two distinct questions, and would be better served as two distinct questions on Code Review too. Please pick which one you want as part of this question edit out the other one, and ask the removed one as a separate question. I am closing this question until that is done as "too broad". — rolfl ♦ 18 secs ago
I'm trying to design a web interface for @Duga to make the repositories and their webhooks, so Repository is the central element here, it has a list of users that are allowed to modify it, a list of input sources (it does not actively obtain the input though), a list of active events and a list of endpoints to which it will send the event
Afternoon @all °/
processEvent as method name could be vague
15:46
@rolfl And now that tim has posted a php answer, hopefully the user chooses to make this the php question.
afternoon @DJanssens
@skiwi skiwi, are you looking for opinions on the diagram, or the actual overall design of your code?
RepositoryService? What is this, Java?
@nhgrif I haven't drawn class diagrams in a long time, so looking for opinions mainly on that... Opinions on the overall design of the code are fine too
@JeroenVannevel Yes... might need a better name? ;)
@rolfl what's the calculator for? It looks fancy ;)
15:49
I'd say so too
What does it even do?
It has one method that is also contained in Repository
I don't even know why it's called RepositoryService, it's supposed goal is to handle events (already in class-form as they're parsed from JSON before this step). It does so by finding to which repository that event belongs
ayy mamacita
The description raises eyebrows
@skiwi In this regard, if it requires explanation, then it probably needs some improvement. But again, I'm not regularly looking at these things, so perhaps I just don't know how they're supposed to be interpreted.
@nhgrif Aaah, the interpretation of the shapes, arrows, etc. requires no interpretation, that's defined by the class diagram "standard"
That's not something I made up myself here :P
@JeroenVannevel I know... right
Better improve the class and method names before they attack @SimonAndréForsberg
(He's going to be the main victim)
Right, can you run throw what they each mean real quick to see if that makes it make more sense for me?
15:56
Sure
Every rectangle here is a class, they have variables under them and methods under that, + is public access, - is private access (there's other modifiers too)
The line with a hollow diamond towards another class means that that class is an attribute of another class, the number at the arcs is the multiplicity
The line with a hollow pointer means that a class is a subclass of, pretty much
Which end is which?
Repository is an attribute of Repository Service?
GitHubEvent is a subclass of Event? (To me the arrow should point the other way, but I don't know)
Take Repository: It has name and active as private members, processEvent as public method, activeEvents member as list of Event (0 or more), inputSources member as list of InputSource (0 or more), endpoints member as list of Endpoint (0 or more) and users member as list of User (1 or more)
@nhgrif Yes, it's called "generalization", it's kind of counter intuitive that it's the other way around
@nhgrif Yes that also, there's 0 or more of that attribute, so it's in list-form
Okay, I think I got it now... so let me look at the actual design now.
Okay ;)
Because already here's one thing that concerns me...
RepositoryService has a process event... and Repository has a process event... and the Event class knows which Repository it's on...
something here (or multiple things) is redundant.
16:02
@DJanssens What rock have you been under?
Also, why do GitHubEvent and TravisEvent need to exist? They have no properties or methods of their own... so why can't the Event class suffice?
16
Q: April 2015 Community Challenge

Mat's MugLast time we created and reviewed Simon Says games, and that was a lot of fun. So, what should we do this time? Feel free to resubmit non-winning ideas from previous rounds, although new ideas are usually more successful. Post an answer to this question with your challenge Vote for those answe...

@nhgrif My thought is that when an Event enters the program, some class needs to determine to what Repository it belongs, and then that Repository will process it
Then Event doesn't need to keep track of what repository it belongs to
Event should keep track of what the actual event is?
@nhgrif It's to make clear that Event is subclasses in practice (There is an interface element in UML diagrams but it's ugly and I've never seen it during university)
@nhgrif In practive (this part already exists) there's things like GithubPushEvent that extends GithubEvent which extends Event, and GithubPushEvent has all kinds of data in it
I don't think I should model all possible subclasses of Event though, because it's not really relevant in the bigger picture
16:06
Okay.
@rolfl I haven't checked the chat in two days, did I miss something :D
It seems to me that either the events should keep track of what repository they belong to, or repositories should keep track of which events they own, but not both.
@nhgrif I see what you are saying... since Event already does keep track of what Repository it belongs to, the RepositoryService itself might be irrelevant
0
Q: Rolling my own markdown parser in javascript

tHIScOdeIsBeNaNaSFor several days i was messing around trying to create a markdown parser.This is the best I could come up without using regex So I was wondering if I'm on the right track.(I only covered the '*','**' case ) var str = "**f*"; function parser() { var i; var string = ' '; for (i = 0...

Not quite sure on that yet though
16:09
When you say "event already does keep track" do you mean per your diagram, or based on whatever API this is connecting to to manage this stuff?
I'm assuming there's some sort of github api for this stuff?
What does it look like?
@nhgrif Correct
Github sends it's events in JSON form to an url as GET request and @Duga simply reads those; An example of a PullEvent is that it mentions the repository to which it belongs and a list of commits (and various other data)
Can you show an example of the JSON?
Obviously, we can't change what the Github API is sending (at least not anywhere easily) so the best way to have this discussion is if everyone is familiar with the parts you can't change.
16:15
0
A: Javascript/ECMAscript 6 classes organization

user5321531Regarding using modules. It's over a year since the last post, however, my two pence ha'penny worth, which largely revolves around coding https://bitbucket.org/gso/eonjs/src/. I chose not to use modules because of the overhead on the test workflow, native node.js testing from what I could gathe...

0
Q: Fixing a huge inefficient LINQ query

AlternatexI have a website that acts like a search engine for books and authors and the search goes through multiple libraries. This searching functionality is on the face of the site and is going to be the most used part of it so I need the LINQ query that returns the results to be efficient. At the momen...

Can someone else take a peek?
I don't get what is going on here, so I didn't take action.
I noticed another design flaw: The Repository object inside the Event and the Repository class in the diagram are not actually the same Repository object in code (the former can be seen as a JSON-object straight from the webhook, and the latter as a clean Repository object in my model)
Yes, that confuses many people, I'm pretty sure
Going to have dinner now though..
Everyone should make class diagrams and review them thoroughly before you start coding, better to make design mistakes in those than in the actual code
In this case I didn't really have a clue how to approach the whole problem of creating a web interface for something that's being done purely via code as of now, so I had to start with designing as I had no clue where to start programming
@Hosch250 It looks like a blog entry of sorts.
@rolfl That is what I thought.
16:19
It is not an answer, it is not a question. It's a "here's something I am working on and it's not yet done" thing.
Almost like advertising or something.
I didn't know if it was an answer or not.
No, it's not an answer.... I am trying to decide how to process it though.
(rather, how to word the comment I am going to have to add to it).
At a minimum, we can all go downvote it.
What is this? This doesn't look like an answer to me. I'm not really a JavaScript person, but I can't see how this relates at all to the question. Is this intended to be a blog post? Stack Exchange is not a network of forums. This is not Reddit. Answers are expected to actually address the question. — nhgrif 7 secs ago
The advantage of not being a mod... I don't have to choose my words so carefully...
0
Q: Save token id into a database in SWIFT

mattiaI want to save my users tokens id into my database using POST request in Swift (here PHP code here). I am a bit confused about synchronous and asynchronous request. Is this code the right way to do it? would the app crash if there is a connection problem while it is sending the synchronous re...

well, that's a not-so-subtle way to say go away.
I am not sure how to categorize this post. It is not a review - it does not give feedback on the original question. It is also not a request to review your new code. As such, it fits neither the model of a question, or an answer on Code Review. If you have your code in a working state, and you want it reviewed, please post the code in a new question. — rolfl ♦ 11 secs ago
16:28
@skiwi I'd use the GitHub JSON format as a starting point for your class diagram...
Start there. Eliminate what is unnecessary if you want, then add in what is necessary.
@skiwi I am not everyone.
if(everyone.contains(Simon)) {
    Simon.makeClassDiagrams();
    Simon.reviewClassDiagrams(thoroughly);
}
Simon.startCoding();
I never make class diagrams.
2
I hate UML.
Me too. I'm just giving you a hard time.
With that said, I will use Excel or whiteboards to draw out table diagrams before doing any restructuring in SQL.
I think things through in my head, write up some ideas on paper or in a text document, then I start to code.
16:35
@SimonAndréForsberg I rarely do that.
I just write the code.
2
programming is more fun when you just jump into it without thinking about it
0
Q: Bootstrap dropdown menu

Tammu1000CPI'm trying to create a dropdown menu with Bootstrap. This is the code, it works on the website where I found it but not here. <ul class="nav navbar-nav"> <li><a href="http://www.tammutries.tk">Home</a></li> <li><a href="#">Profile</a></li> <li...

I think long and hard (sometimes), but I only make notes if I start losing track of what is going on.
... and then let Code Review sort out your mess?
2
well, aren't the best questions the ones that need the most fixing up?
16:37
Yes.
Well, yes.
But I try hard to not have a mess.
It's good practice for the health of Code Review. ...but probably bad practice for necessarily being a good programmer...
Hrmm... I'm not sure that comes out right.
But, if you're working for a company developing software, letting the Internet sort out your troubles isn't always an option.
3
Well, have my latest questions been that much of a mess?
And even if you are not, letting the Internet sort out your troubles shouldn't always be the option of choice.
3
16:48
Now, I don't know if I'm letting the internet sort out my troubles, but I most certainly learn from the reviews.
On a different note, I installed the Windows 10 for Phones preview.
It is slow and buggy for now.
But, the new Mail app is great, and it has a real File Explorer.
It doesn't have Office - yet.
One thing I liked about 8.1 better was how the right-click (tap/hold) produced a bar across the screen.
This just brings up a narrow popup like in the desktop Windows.
> It must be at least 3 minutes long, but there is no upper limit on the time. (nothing longer than an hour)
00:00 - 17:0017:00 - 00:00

« first day (707 days earlier)      last day (3608 days later) »