Stack Exchange
log in
users (51)
rooms (36)
faq
Xanderhall
general
recent
conversations
The Nineteenth Byte
The Nineteenth Byte: General discussion for
codegolf.stackexc...
11
4
Xanderhall
Aug 22, 2017 12:29
It warms the cockles of my heart when I get a bunch of upvotes on a Java answer
Xanderhall
Jul 31, 2017 12:29
I would like to add in that I also like the challenge. I was just trying to argue the point that certain aspects weren't as clear as orlp seemed to think they were. Those points are clarified now, and I don't have any other problems with it.
Xanderhall
Jul 31, 2017 12:21
It's more clear now.
Xanderhall
Jul 31, 2017 12:19
@Mr.Xcoder I think that was a joke. x.x
Xanderhall
Jul 31, 2017 12:18
@orlp I think trichoplax's answer there explains it pretty well
Xanderhall
Jul 31, 2017 12:16
@orlp You're assuming people have seen them.
Xanderhall
Jul 31, 2017 12:13
@TheLethalCoder Obviously some people did, as they submitted answers.
Xanderhall
Jul 31, 2017 12:10
Your point makes no sense.
Xanderhall
Jul 31, 2017 12:09
@TheLethalCoder What if you believe it's clear enough to answer?
Xanderhall
Jul 31, 2017 12:08
If the parameters of the challenge are not clear, you can't be violating them if they're clarified afterwards.
Xanderhall
Jul 31, 2017 12:08
@TheLethalCoder But you can't be violating the spirit of the challenge if you don't know what the spirit of it is.
Xanderhall
Jul 31, 2017 12:06
Therefore, it's quite difficult to violate the spirit of it.
Xanderhall
Jul 31, 2017 12:06
@TheLethalCoder Because the challenge is unclear.
Xanderhall
Jul 31, 2017 12:03
@orlp And I disagree.
Xanderhall
Jul 31, 2017 12:00
And the Sandbox.
Xanderhall
Jul 31, 2017 12:00
There's a reason the standard loopholes exist.
Xanderhall
Jul 31, 2017 12:00
Don't get angry when a bunch of people try to take advantage of your exact wording.
Xanderhall
Jul 31, 2017 11:59
Make sure your challenge is clear then.
Xanderhall
Jul 31, 2017 11:59
you gave an end condition in the form of time.
Xanderhall
Jul 31, 2017 11:59
Go until the timer runs out
Xanderhall
Jul 31, 2017 11:59
while(i++)
?
Xanderhall
Jul 31, 2017 11:58
That's why people are hard-coding things. Because they're assuming they simply ahve to loop through as many
n
s as they can
Xanderhall
Jul 31, 2017 11:58
You didn't say the program had to take input. You simply said it had to generate the most combinations.
Xanderhall
Jul 31, 2017 11:57
"In this challenge you must generate all such combinations of positive integers, excluding permutations"
Xanderhall
Jul 31, 2017 11:57
You didn't specify that they had to.
Xanderhall
Jul 31, 2017 11:55
@orlp What
Xanderhall
Jul 31, 2017 11:54
@orlp How am I supposed to check if my code is generating complete sets?
Xanderhall
Jul 31, 2017 11:53
@orlp They're not perfectly clear. That's the problem.
Xanderhall
Jul 31, 2017 11:52
@orlp It's not their fault the challenge is confusing
Xanderhall
Jul 28, 2017 18:12
Check the examples for some ideas of what you can feed it for input
Xanderhall
Jul 28, 2017 18:10
Anyways, I shall leave you with the greatest function ever built into a language, belonging of course to PHP:
strtotime
Xanderhall
Jul 28, 2017 18:08
so I wouldn't be able to tell you
Xanderhall
Jul 28, 2017 18:08
Never used Powershell
Xanderhall
Jul 28, 2017 18:08
Wouldn't that be language dependant?
Xanderhall
Jul 28, 2017 18:08
No idea
Xanderhall
Jul 28, 2017 18:06
because (3/2) = 1.5, which rounded is 2
Xanderhall
Jul 28, 2017 18:06
That can either be a nice feature or an inconvenience
Xanderhall
Jul 28, 2017 18:05
Nice, it converts to double
Xanderhall
Jul 28, 2017 18:05
1?
Xanderhall
Jul 28, 2017 18:04
If you manually cast
"test"
to a number, ie
"test" + 0
, it will give you 0
Xanderhall
Jul 28, 2017 18:04
Actually, it's "let's cast everything that looks like a number to a number!"
Xanderhall
Jul 28, 2017 18:03
A non-empty string should evaluate to true. But I think PHP treats it as a number, in which case 0 evaluates to false
Xanderhall
Jul 28, 2017 18:02
that one's a weird case
Xanderhall
Jul 28, 2017 18:00
PHP's consistency is amazing Kappa
Xanderhall
Jul 28, 2017 17:58
I did have to output a CSV file through PHP once, tho.
Xanderhall
Jul 28, 2017 17:58
Not saying it would, just saying it's kinda like Excel going through rows.
Xanderhall
Jul 28, 2017 17:57
for($foo = 'a'; $foo <= 'z'; $foo++)
Xanderhall
Jul 28, 2017 17:56
@BusinessCat That feature is used for incrementing through string values. Think Excel
Xanderhall
Jul 28, 2017 17:55
not storing a function in the variable. Storing the name of the function, and then using that variable to call it
Xanderhall
Jul 28, 2017 17:54
"What do you mean
$f = 'doSomething'; $f($input)
works"