« first day (806 days earlier)      last day (3507 days later) » 

00:10
Where's reload?
0
Q: Is there any room for improvement on my HeapSort?

OrestisI have implemented the heap sort algorithm which passes my tests. Although, I would like to ask you if I can improve anything from readability to performance. Here is my code in Java: import java.util.List; /** * Created by Orestis on 17/07/2015 */ public class HeapSort { public static <...

Duga isn't even in the room
@SimonAndréForsberg, is @Duga in the shop?
Reload did happen yesterday, but Duga seems down...
It is
There isn't even a single comment from Duga
00:16
@IsmaelMiguel s/It/She
anyways I'm off to bed..
'night
@Vogel612 ?
Duga is a she.
At least, that is the official word from @SimonAndréForsberg.
It's a bot
00:50
@IsmaelMiguel Siri is a bot, but it's still a she
@Quill I could say a few other things that Siri is, but in the end it's just a bot with a purpose
@200_success: Do and look similar enough for synonymization or something?
@IsmaelMiguel Just don't ask her to divide by zero ;-)
@Quill I don't have apple stuff
01:03
Pfff
Worst than I am? Hardly
"Lasagna is just spaghetti flavored cake" -.- He forgot the meat!
01:31
@Quill: It looks like your wiki excerpt for was misleading (and I was about to synonymize it with ). I corrected it based on SO's tag wiki.
01:53
3
Q: Evaluating Valid Date

DCoderI want to write a function which returns true if a selected date is smaller than the current date, else return false. This function is working as expected but I want to know the best possible way to do this. private boolean isValidDate() { if(year<yearCurr) { //selected year i...

Interesting checkmark choice for this question.
02:07
0
Q: Optimize Iterating over JSON file and output to HTML

user2647510So this is my first time iterating over a json file and appending the values to a HTML element. I'm still learning and want to know if there is a better way to write this piece of javascript code, specifically the appending part. I tried doing it with Javascript using appendChild, but couldnt fig...

@CaptainObvious Vote to Close - Doesn't have code
@Jamal It has code now, but still off-topic
Actually, it isn't off-topic now
But now the HTML formatting is messed up.
Actually, it's missing
The HTML, the JS is there
It's there; check the markdown tab.
It's not appearing because there's no break after the label.
02:25
I couldn't see it since I'm busy playing at the same time
@Jamal The title needs an edit.
What kind of edit?
"Iterate JSON GIF collection array to HTML file" --> that's the title
It sounds like that it is saving gifs inside an HTML file using Javascript
Feel free to revise it.
I have no idea what to write
In fact, the code works by miracle!
The question has a mangle of garbage from other tries
03:23
@Jamal Apologies
It's cool. I was just letting you know.
@IsmaelMiguel oh wow
@Quill What? o.O
The video?
Yeah, :-)
That guy is crazy. But at least you now know how NOT to make an electric guitar
If anyone want to take a look:
0
Q: Should we allow images from external sources (other than placeholder services)?

Ismael MiguelThere have been a few questions with images from external sources. The most recent I can remember is the following question: Iterate JSON GIF collection array to HTML file It contains the following link: http://buffalogrove.sat.iit.edu/thumb/turkey_karadeniz_region-t2.jpg It belongs to the Ill...

03:46
@Jamal Thanks for the edit, wasn't aware of those tags
0
Q: Should we allow images from external sources (other than placeholder services)?

Ismael MiguelThere have been a few questions with images from external sources. The most recent I can remember is the following question: Iterate JSON GIF collection array to HTML file It contains the following link: http://buffalogrove.sat.iit.edu/thumb/turkey_karadeniz_region-t2.jpg It belongs to the Ill...

04:28
@Jamal I'm not familiar with ATL at all, so I don't have an expert opinion. In the absence of any compelling reason, I'd leave it. @Mat'sMug may have input.
0
Q: Raffle Draw Program in c#

carmel franciscoI want to create a console program that simulates a raffle draw. It should be able to do the following: Enter the number of students Allow the user to input the student's names (only after asking the number of students) Display the names of the students Display all winners Reset the winner list...

04:48
@CaptainObvious ewwww.
    static void P(string message)
    {
        Console.WriteLine(message);
    }
    static void P(string message, int x, int y)
    {
        Console.SetCursorPosition(x, y);
        Console.WriteLine(message);
    }
@IsmaelMiguel Good answer on the related question
@Quill Thanks. It took me over 40 minutes to write
@CaptainObvious Off topic.
And if that scares you, check this:
0
Q: Prime generator program SPOJ wrong answer

FreeznetProblem Statement Input The input begins with the number t of test cases in a single line (t<=10). In each of the next t lines there are two numbers m and n (1 <= m <= n <= 1000000000, n-m<=100000) separated by a space. Output For every test case print all prime numbers p s...

                if (ans == 1)
                {
                    x.stu();
                    y.rangen();
                }
                else if (ans == 2)
                {
                    x.pop();
                }
                else if (ans == 3)
                {
                    x.disp();
                }
                else if (ans == 4)
                {
                    y.disp();
                }
                else if (ans == 5)
                {
                    y.reset();
04:52
@200_success @Jamal I don't know ATL, but COM probably has nothing to do with it... it's the pre-.net platform for Windows programming
Oh hi, @Mat'sMug, got a second?
I have a duck question.
ATL sounds like a COM wrapper API from the looks of the wiki
@Hosch250 sure
I'm in the duck room.
Wow. Just made some cleanup and had over 120 files opened on Notepad++
@IsmaelMiguel That's almost as bad as @skiwi's tabs!
04:55
Like, 30 web browser tabs?
30? more like 1k!
What browser?
How much is that? 1TB RAM?
I opened 5000 Preview windows once from Terminal
3
04:58
The worst I've done was around 300 popups
I had a Javascript to do some nastyness
To extract some data from some websites
And then build an SQL query out of it
@Quill have a star for that! ;-)
@Mat'sMug I did it on purpose, though
I have an awfully large archives folder of funny pics from the web that I thought would be nice to sort randomly
I set the script to 5000 to see what would happen, and I had to wait half an hour it to stop (opening animations take longer than usual)
@Quill Don't worry, I tried to run format c: /x /q
05:23
...kids these days...
lol
Calling it a day, 'night @all
05:34
@Mat'sMug Goodnight dude
I really love how Tera can average 0fps
@Mat'sMug night
 
1 hour later…
06:58
0
Q: Red Black Tree not matching standards of Java

DanteI asked this question on stackoverflow.com but was suggested to ask the question here.So here it goes. For a program for constructing a symbol table where a key is a word and value is the frequency of the word in a text file and finding the word with maximum frequency, I did it in two ways: Fir...

07:21
0
Q: Processing files with streams

404CodeNotFoundI'm using iojs. I have to read some, file streams, process them with a common function.. and join them back into a stream. I decided to create my own solution with Transform streams and PassThrough streams, This is what I came up with, "use strict"; let fs=require('fs'); let filePaths=[...

 
1 hour later…
08:40
0
Q: These words are so dirty

LegatoChallenge: Write a program that will clean up the words from extra numbers and symbols. Specifications: The first argument is a path to a file. Each line includes a test case with a list of words: letters are both lowercase and uppercase, and are mixed with extra symbols. Print the...

09:06
0
Q: what menu code is this?

typo_78this is the source and i'm interested in finding out if the left menu that activate the product rollover images it's generated by a js / jquery plugin or we have pure css custom made code. I've found in console a div class called boxy but not a js / jquery related in js source files folder. Coul...

09:37
0
Q: Stone Game - Remove Last

harika muthaboyinaAlice and Bob are playing a game called "Stone Game". Stone game is a two-player game. Let N be the total number of stones. In each turn, a player can remove 1, 2 or 3 stones. The player who picks the last stone, loses. They follow the "Ladies First" norm. Hence Alice is always the one to make th...

10:10
@CaptainObvious RBA
@CaptainObvious Hypothetical code
0
Q: Java beginner (Arrays)

Lance Da KotaSAI'm new to java and I need help completing the question below. If anyone could help me with a simpler solution of this question. I tried to provide a working solution but I got stuck at number #10. Create a new file called Rebel.java; Create two arrays. One of them must store integer numbers an...

@CaptainObvious Broken/unwritten code
10:43
Monking
@jacwah On a meta post somewhere, there's a chrome extension that has a bunch (10ish) placeholders comments. It's much easier than writing it out, or copy-pasting it from a document
Monking
0
Q: observable template in modern c++

Matias SuarezTitle says it all, i'm trying to create a modern template class for a generic observable, here's my attempt so far: typedef int SUBSCRIPTION_ID; template<typename EventType, typename Event> class Subject2 { typedef struct { std::function<void(const Event&)> m...

20
Q: Frequently Posted Comments

Simon André ForsbergOn Code Review we often encounter questions with the same kind of problem over and over again. Some of us are using the auto comments script which allows you to maintain a list of comments to post. What are some useful tin-can comments that can be good to have in your list of comments? If you ...

11:00
@Mast Thanks :-)
Monking!
@Quill Might be handy
@CaptainObvious ?
I don't use Chrome, but I can still do the c-c c-v
There's a firefox add-on too!
Perhaps he isn't aware and doesn't have a wheel to use for comparison. In that case, the tag wouldn't bring value.
@Mast I don' know C++, but sounded like it from
> (obviously Subject2 and Callable2 are in fact Subject and Callable :) )
There hasn't been a question on that hasn't been closed for 4 days
And there has been at least one a day
(That has been posted and then closed or RBA)
11:25
Not many people post anyway.
I haven't written it in a while either.
If you look before that, it was at least a non-closed question per day
I haven't been around here long, but at least a month back
I see.
Well, bad luck with questions I guess.
If this goes on longer there may be a problem, but we have some experts keeping an eye out.
Although nobody has earned a Gold badge yet.
11:41
Not enough questions
Hi!
My internet decided to completely break down yesterday.
You survived!
welcome back?
Monking btw
@SimonAndréForsberg Is that why @Duga was down?
yup.
Without internet, not even @Duga can do very much
11:50
I don't know about that, @Duga is pretty powerful :P
3
How much work would it be to make @Duga have distributed back-ups?
@Mast good question. I am way too inexperienced in the distributed computing area.
I know that when I went to Ukraine in April and @Duga went down, @rolfl set it up as "StackMonkey". It would be nice to have something trigger automatically though
If Duga's script can be queried, other tasks could 'check' if she's still alive.
If you have a couple of layers asking the layer above whether it's still alive, it should be sufficient.
Yours would be primary, two more would solve most.
@SimonAndréForsberg Everyone with a small server with continuous uptime could run it, right? Of-course there are security concerns, but it can be done.
Nevermind you already said that
@Mast I am using a Java/Groovy webserver and a database. But beyond that, yes, anyone could run it.
at least my script to detect Minesweeper Flags multiplayer downtime is working...
Now that I have internet again, I can reply to some things here.
@Mast @200_success @jacwah when I reached for Marshal back in December, I did that by using SEDE to look for obsolete comments (I think @rolfl knows this very well also). It would be very strange for me to tell people to not flag obsolete comments now. That said, I do appreciate "easy" comment flags such as "thanks, edited" as they are very easy to decide on. If you have to think for 10 seconds whether or not it is obsolete, a mod is likely to think for maybe 15-20 seconds.
@RubberDuck keep the secret stuff in a file that is gitignored. That's how I do it. I am personally not a big fan of using environment variables for that.
@IsmaelMiguel @janos Questions that have low view count, and < 0 score and no answers automatically get deleted on sites after a while.
12:23
@SimonAndréForsberg isn't that kind of risky? I mean... I suppose I could use a .secret file extension and gitignore that.
That would take some risk out.
@RubberDuck well not unless you actually commit it anyways...
2
Eh. I'm a windows dev. Environments variables will work fine.
At least I'm not stuffing it in the registry. =;)-
@jacwah funnily enough, in Delphi/Pascal, that is actually called a word.
@RubberDuck Everything is risky if you're not aware of what you actually commit. I've used gitignore for that for a long while and I do perfectly alright.
@SimonAndréForsberg it's not me I worry about. It's Visual Studio I worry about. The integration is still fairly young and .gitignore gets flaky sometimes from inside VS.
@RubberDuck you could run git commands externally though and make sure that you don't commit anything you shouldn't
12:36
As code is correct, codereview.stackexchange.com seems more appropriate. — Jarod42 47 secs ago
@Duga Welcome back!
@SimonAndréForsberg I could, but that shiny button is right there...
The one that says "commit" inside my IDE.
So...? ;)
As long as committing happens through Git then nothing can go wrong
12:38
Nothing can really go wrong anyway. Not when you know how to properly re-write history.
exactly ^^
I don't believe this refactoring will work. Are you sure about if (board[m][n] != firstField) ? — Simon André Forsberg ♦ 40 secs ago
(that's not just me, right? ^^)
@SimonAndréForsberg Yeah... If he's always comparing to the first field
Well, actually
If all fields need to be the same, then they all need to equal the first field
yes, but he's only checking rows/columns. He's not switching between them.
for (var n = 1; n < board[m].Length; n++)
        if (board[m][n] != firstField)
            return false;
You can't use that code to check both columns, rows, and diagonals.
@SimonAndréForsberg True
feel free to down-vote. or post a better answer
12:45
But the AllFieldsTheSameMethod is correct
It's just that it's called wrong in the SomeoneWins method
in Code Review Moderator Election 2015, yesterday, by Ethan Bierlein
Shouldn't this room be frozen or something?
@EthanBierlein It will be frozen automatically after 14 days of silence ^^
@skiwi I don't see a way to call it correctly.
@SimonAndréForsberg and now we wait another 14 days ;-)
Monking all.
Monking
I got interrupted by internet failure yesterday right when I was replying to your message, @rolfl. I was going to say that this was good advice:
yesterday, by rolfl
@SimonAndréForsberg - rule-of-thumb: comments are by default garbage and they need a reason to exist, not a reason to delete.
Oh, I thought you were just ignoring me ;-)
13:00
I was certainly not. My ISP was, however.
@Duga @RubberDuck already deleted the repository again?
no, wait...
wrong link. Dammit.
@SimonAndréForsberg No braces!
@nhgrif yeah, that too. not what I was focusing on though. Functionality over formatting.
stackoverflow.com/q/31500905/2792531 An hour before it gets a close vote. :/ SO is sometimes bad about closing questions.
Well, that leaves the formatting for other people to criticise.
Oh, dear, @janos got legendary, fewer answers: data.stackexchange.com/codereview/query/161411/…
13:12
0
Q: Eloquent Scope and Normal Way

Brian CoolidgeI read the documentation part of Eloquent, especially scopes. It describes Scopes allow you to easily re-use query logic in your models. To define a scope, simply prefix a model method with scope: And so, with using Slim, I'm retrieving an object of Employee Type and pass it to my view. I only ...

0
Q: Find the highest occurring digit in the prime numbers present between L and R (both inclusive)

Ankur Anand Given two numbers L and R, find the highest occurring digit in the prime numbers present between L and R (both inclusive). If multiple digits have the same highest frequency print the largest of them. If there are no prime no.s between L and R, print -1. My Code. package com; import ...

13:25
@Duga late to the party aren't we?
2 hours ago, by Simon André Forsberg
Without internet, not even @Duga can do very much
LOL.
I missed that @SimonAndréForsberg.
My internet was down for about 24 hours
That sounds awful.
If you want a review, Code Review is the place to go. — Gerald Schneider 24 secs ago
13:33
Sometimes, I think that, with Duga's assistance, Stack Overflow could handle a direct migration path to Code Review. There are still bad recommendations, but I'm certain that's the case with the other direct migration paths as well.
But ultimately, migration has to work in some other way. It can't stay under the close dialog.
3
0
Q: A program to find the tallest and find the index number of the next taller guy in a circular queue both on left and right side of the i th place

susil95Input given is: Each test case contains two lines. The first line contains a single integer N (1 ≤ N ≤ 105), the number of persons playing the game. The second line contains N integers i(height) (1 ≤ hi ≤ 109) the height of the i-th person. They are numbered 1 to N starting from Druid. Output g...

Should I try to push for a community ad to my blog? ;)
@nhgrif at least we're not getting the same amount of bad suggestions that Programmers get.
Yeah.
@nhgrif I was actually thinking about that when I saw the meta post. I think you could do that.
13:43
I should come up with "The Ten Commandments of Programming"
Sep 10 '14 at 13:46, by Simon André Forsberg
First commandment: Thou shall fix ugly code.
On the list would be:
- Thou shalt use braces.
- Thou shalt not compare floating-point numbers with ==.
- Thou shalt never tell another programmer simply "but it does not work".
(read the transcript there, @Mat'sMug and I created some)
Sep 10 '14 at 13:47, by Simon André Forsberg
Third: Thou shall honor the conventions.
Honor conventions is a good one. Including context I think gets wrapped into "but it does not work". And while I consider fixing ugly code to be important, in the real world it's not something you necessarily always have time for
13:46
* unless the conventions are crap and everyone agrees that they're crap.
- Thou shalt use Source Control
2
@nhgrif yup, I am aware that sadly ugly code is left ugly :/
@nhgrif ooooooh yes, that is a good one
@RubberDuck then you make new conventions
- Thou shalt write automated tests.
I will make a blog post with the 10 commandments and then write an article for each one...
I was about to write something about "does not work"
I think I'll still write "does not work" first.
The 10 commandments post will simply be a link to 10 other articles... some of them may not be written yet.
- Thou shalt not prematurely optimize.
2
So, that's 7...
- Thou shalt not (knowingly) check in broken code
13:49
Braces, floating point ==, "does not work", honor conventions, source control, automated tests, premature optimization
@RubberDuck I think I'd count this as part of source control.
I could see that.
Like I'm counting "include all context" as part of not saying just "does not work"
I kind of want to include something about comparing object with == versus the equals method... but that's not universal enough. Not all languages are OOP, and for some, == isn't the reference comparison
- Thou shalt use the right tool for the right job.
That's a good one.
And something maybe to tie in to my elephant post.
- Thou shalt not be clever
Perhaps that's part of pre-mature optimization?
13:53
Hmm. Being clever is sometimes good though. It's important to not go out of your way to be clever, and yeah, it can be wrapped into premature optimization
0
Q: Bucketizing time (eg, 4 min => 0-5 min)

Arthaey AngosiiSpecification: Given a string (eg, the content of an article), print the estimated reading time by bucketizing time into increasingly large chunks in the form "5-10 min" or "48 min-2 hr", eg. Notes: Distribution of time into buckets is arbitrary, to make it "look nice" for the defau...

@nhgrif I mean being overly clever when a simple solution exists. i.e. Write for people, not machines.
14:15
0
Q: Shorten code as much as possible

VictorI have taken part to a coding challenge. They ask for the shorted possible solution (speaking about the number of chars in our code). I submitted the code with 129 chars, but the winner had 50 chars. Below is my C++ function: int Rocks(int n) { int c = 0, i, m = n, d = 0; while (m) { d++...

@CaptainObvious The OP is asking for his/her code to be golfed. Isn't this off topic?
Greetings
@SirPython Yes, it is
Under what close reason?
@SirPython This is kind of borderline.
@rolfl Can you explain a little better your comment?
@jacwah Golfed code is the oposite of clear and readable code.
I saw a meta about this
14:25
@CaptainObvious RBA
5
Q: Are questions about how to further golf a program on-topic here?

John BensinI have a simple algorithm that I'm using for code golf, and I'm hoping to find ways to golf it further. The algorithm is somewhat golfed in Python already, and works flawlessly. I asked on meta.codegolf.SE if a question about it would be on topic there, and per the discussion, the community think...

That's not exactly what's being asked though.
@IsmaelMiguel Thanks, but still: under what close reason?
But I'm answering to SirPython's answer
@jacwah No freaking idea
It doesn't matter because the downvotes encourages self-deletion. But the question wasn't off-topic really.
14:27
I haven't seen the question, and I only answered to SirPython's question
There's no mention that the post is off-topic
@nhgrif I don't think so either. Readability is not inherent in reviewing
Just that code-golfing is
It kinda seems like a request to golf it
1. The source of the question is from a code-golfing contest. The only way the code's source has a bearing in the question being on/off topic is if the question asker isn't the owner/maintainer isn't the author.
2. The question being asked isn't how to golf the question, but rather how to reduce the size of the source code, which is actually a perfectly valid question here.
14:29
The "as much as possible" has a distinct taste of "code golfing"
That's why I said it looks like a request to golf it
Having a distinct taste of something and being something are not the same thing.
Exactly.
(Notice that I'm being vague and I'm not say it is either on or off-topic, but simply saying why I think it was seen as off-topic)
@nhgrif I always thought code golfing was reducing the size of the source code as much as possible. What's the difference?
Moreover, any reasonable review of that code (one I was about to start writing) would have criticized the cryptic unreadability of the code. It would have never earned the check mark, because the recommendation would've resulted in MORE characters, not less. But it would've earned more upvotes than anything the OP would've been willing to give the checkmark.
@jacwah Code-golfing is a game to use the least amount of characters in order to win some sort of contest.
There are real reasons, outside of the game of code-golfing, for reducing the size of your source code.
@nhgrif I see
14:33
We have a tag for it.
In fact, you have used it yourself.
6
Q: Adding support to Busybox vi for reading file from stdin

jacwahI am writing a patch for Busybox's implementation of vi, the classical command line code editor and predecessor of vim. It can open up a files through filenames given as command line arguments. My patch allows initial text to be loaded in to the buffer through a pipe on standard input too. # nor...

Do you see the difference between your question and code golfing?
But that's not about source code, but executable size
@nhgrif I think that there's a difference. In jacwah's question, he still asks for readability, while on the other question, readability is thrown from a cliff.
That's only because C is a compiled language.
What if you were asking about PHP? Where your end user downloads your source code script to be interpreted?
Then you're asking about reducing the size of the source code.
It's not about golfing. It's about allowing the script to be downloaded faster.
That makes sense
@IsmaelMiguel We regularly get questions that are horrendously unreadable and aren't concerned about readability at all.
14:36
True.
Moreover, some people simply mistakenly thing that fewer lines of code is objectively better.
The O.P. has the following code:
while(m){
  d++;
  m/=10;
}
This question earned the downvotes it did because the OP's desire seemed too closely related to code golfing, but didn't really deserve close votes because it's not really explicitly asking for help golfing the code.
0
Q: Trie data structure in java

JayeshStarted learning and implemented Trie datastructure. I have implemented Trie datastructure in my way though it is very similar to what major implementations I found but would like to get it reviewed by experts. I don't see the need to store character in TrieContainer class as position within th...

And that enourmous for that I won't copy
I can't see it
14:38
@IsmaelMiguel There's nothing wrong with this other than short variable names. I've written loops exactly like this... just didn't have 1-letter variable names.
while (input) {
    ++digits;
    input /= 10;
}
I didn't copy the whole source
I gave up after a while
@IsmaelMiguel The source code really can only make the question off-topic if it's broken.
What if his question was "I need help making this more readable?"
Same source code. You'd have no problem seeing that the question was on-topic then, right?
Did anyone left a comment?
So the problem can't be the source code.
Jamal commented on his poor title.
Or it was simply downvotes without explanation?
Just that?
14:40
Jamal commented on the poor title. It had 4 downvotes and was deleted.
Not that is not the way how you do it
Huh?
But dang, it was downvoted fast
The only reason I can see for it to be closed is that it is unclear what the code does.
He doesn't actually say what it does.
That's a good reason
But at least there would be a reason
Not like that
14:43
But what he's asking for isn't off-topic.
Simply downvoting without asking about the code
There's nothing wrong with downvoting a question.
With or without comment.
But now he won't know what he did wrong
If he wanted to know, he could have asked.
And will think we are just a bunch of StackOverflow-like idiots
14:44
Or...
Or, we can think about why he's really being downvoted?
Or we could have asked if he was trying to golf it or not
That wouldn't help.
Code Golfing is clearly off-topic here.
He wasn't technically asking for htat.
I know
I don't even know what he was asking
Just shorter code
His question was technically on-topic but was skirting so close to code golfing that no one here thought it was a good question.
What kind of shorter? I don't know
14:45
Maybe he self-deleted because he figured it out.
May I ping him so he can join us in the chat to discuss that?
Why? If he wants to know, he can ask. Also, unless he's been in this chat, you can't ping him.
Right...
Well, just let it die then
I don't see what there is to discuss though.
Why the downvotes
14:49
He's not asking. And unless you downvoted, you can only make an assumption as to why any downvotes exist at all (which is no better than he can do). And even if you did downvote, you could only explain your own downvote. You're still making assumptions about the other downvotes.
So all you'd be doing is offering him unsolicited speculation.
-1
Q: Can we do a function inside another function ?

开发人员Can we do a function inside another function ? function getReportTitle() { var segmentArray = window.location.pathname.split('/'); var segment_4 = segmentArray[4]; var segment4Array = segment_4.split('-'); function ucFirst(str) { ...

Or I could ask him questions for him to improve his code
@nhgrif There is a question among our six magical questions about "Do I want the code to be good code?" the question you've been talking about would answer this question with a "No", which makes it off-topic. Code-golfing is not on-topic here, that question was about a code-golf challenge.
It's a gray area, really.
@nhgrif PHP source code is not downloaded to clients and then interpreted, it is interpreted server-side.
14:57
I mean, most likely, if we started asking him questions about what he actually wanted, it'd probably lead to closing his question as code golfing.
One could argue that OP's use case for "good code" is as short as possible. I think it's a grey area as well
But as written, it's just not there.
The only thing that was wrong with the question as written was that the OP didn't explain what the code does.
@SimonAndréForsberg I agree in most part, but he could want to reduce the number of instructions. We would beat him for having unreadable code, but the number of instructions could be reduced. He then could reduce the variable names again.
@nhgrif the fact that we get questions with unreadable code is mostly because people don't know any better. This one wrote unreadable code on purpose.
Isn't that sort of irrelevant?
14:58
@CaptainObvious Closed.
The source code either works or doesn't work. The rest boils down to what the user is asking. We have decided as a community that while asking for code-golfing is off-topic, asking for shortening code isn't inherently off-topic.

« first day (806 days earlier)      last day (3507 days later) »