subreddit stringclasses 7
values | author stringlengths 3 20 | id stringlengths 5 7 | content stringlengths 67 30.4k | score int64 0 140k |
|---|---|---|---|---|
lolphp | squiggleslash | f341aed | <|soss|><|sot|>What even is variable interpolation<|eot|><|sost|> <?php
define('foo', 'bar');
$foo = array('yes');
$b = 'no';
echo "r1: $foo[0]\n";
echo "r2: ${foo[0]}\n";
echo "r3: ${ foo[0]}\n";
echo "r4: ${foo[0] }\n";
echo "r5: ${foo [0]}\n";
echo "r6: ${foo[0 ]}\n";
... | 13 |
lolphp | Targren | f350eas | <|soss|><|sot|>What even is variable interpolation<|eot|><|sost|> <?php
define('foo', 'bar');
$foo = array('yes');
$b = 'no';
echo "r1: $foo[0]\n";
echo "r2: ${foo[0]}\n";
echo "r3: ${ foo[0]}\n";
echo "r4: ${foo[0] }\n";
echo "r5: ${foo [0]}\n";
echo "r6: ${foo[0 ]}\n";
... | 12 |
lolphp | Miserable_Fuck | f35oiiv | <|soss|><|sot|>What even is variable interpolation<|eot|><|sost|> <?php
define('foo', 'bar');
$foo = array('yes');
$b = 'no';
echo "r1: $foo[0]\n";
echo "r2: ${foo[0]}\n";
echo "r3: ${ foo[0]}\n";
echo "r4: ${foo[0] }\n";
echo "r5: ${foo [0]}\n";
echo "r6: ${foo[0 ]}\n";
... | 5 |
lolphp | D1551D3N7 | 92u55q | <|sols|><|sot|>PHP getopts() makes boolean options False when they are used<|eot|><|sol|>https://secure.php.net/manual/en/function.getopt.php<|eol|><|eols|><|endoftext|> | 67 |
lolphp | mikeputerbaugh | e392tpz | <|sols|><|sot|>PHP getopts() makes boolean options False when they are used<|eot|><|sol|>https://secure.php.net/manual/en/function.getopt.php<|eol|><|sor|>Not an intuitive or logical behavior, not the same functionality of the C function of the same name, not adequately explained in text ofthe function documentation --... | 33 |
lolphp | chinahawk | e38l56d | <|sols|><|sot|>PHP getopts() makes boolean options False when they are used<|eot|><|sol|>https://secure.php.net/manual/en/function.getopt.php<|eol|><|sor|>true<|eor|><|eols|><|endoftext|> | 10 |
lolphp | sproingie | e44ek33 | <|sols|><|sot|>PHP getopts() makes boolean options False when they are used<|eot|><|sol|>https://secure.php.net/manual/en/function.getopt.php<|eol|><|sor|>true<|eor|><|sor|>False<|eor|><|sor|>FileNotFound<|eor|><|eols|><|endoftext|> | 7 |
lolphp | amunak | 3fmesq | <|sols|><|sot|>empty((string) '0'); // === true - because fuck you, that's why<|eot|><|sol|>http://ideone.com/ZqytvO<|eol|><|eols|><|endoftext|> | 64 |
lolphp | KeinBaum | ctqaicx | <|sols|><|sot|>empty((string) '0'); // === true - because fuck you, that's why<|eot|><|sol|>http://ideone.com/ZqytvO<|eol|><|sor|>Even better is the [documentaion](http://de2.php.net/manual/en/function.empty.php):
>Prior to PHP 5.5, empty() only supports variables; anything else will result in a parse error. In other ... | 47 |
lolphp | prewk | ctqapmp | <|sols|><|sot|>empty((string) '0'); // === true - because fuck you, that's why<|eot|><|sol|>http://ideone.com/ZqytvO<|eol|><|sor|>Even better is the [documentaion](http://de2.php.net/manual/en/function.empty.php):
>Prior to PHP 5.5, empty() only supports variables; anything else will result in a parse error. In other ... | 22 |
lolphp | prewk | ctq1rs8 | <|sols|><|sot|>empty((string) '0'); // === true - because fuck you, that's why<|eot|><|sol|>http://ideone.com/ZqytvO<|eol|><|sor|>Do you mean `'0' // == false - because fuck you, that's why`?
What are you trying to prove? Casting a string into a string(?) and then checking its falsyness to give an example of PHP's fun... | 21 |
lolphp | ajmarks | ctqdqet | <|sols|><|sot|>empty((string) '0'); // === true - because fuck you, that's why<|eot|><|sol|>http://ideone.com/ZqytvO<|eol|><|sor|>Even better is the [documentaion](http://de2.php.net/manual/en/function.empty.php):
>Prior to PHP 5.5, empty() only supports variables; anything else will result in a parse error. In other ... | 18 |
lolphp | TheBuzzSaw | ctpyxt5 | <|sols|><|sot|>empty((string) '0'); // === true - because fuck you, that's why<|eot|><|sol|>http://ideone.com/ZqytvO<|eol|><|sor|>This is [well documented](https://secure.php.net/manual/en/function.empty.php#refsect1-function.empty-returnvalues) and well discussed. By now most people should know that with PHP's type ju... | 17 |
lolphp | the_cornell | ctqovwl | <|sols|><|sot|>empty((string) '0'); // === true - because fuck you, that's why<|eot|><|sol|>http://ideone.com/ZqytvO<|eol|><|sor|>Do you mean `'0' // == false - because fuck you, that's why`?
What are you trying to prove? Casting a string into a string(?) and then checking its falsyness to give an example of PHP's fun... | 16 |
lolphp | amunak | ctpyeht | <|sols|><|sot|>empty((string) '0'); // === true - because fuck you, that's why<|eot|><|sol|>http://ideone.com/ZqytvO<|eol|><|sor|>This is [well documented](https://secure.php.net/manual/en/function.empty.php#refsect1-function.empty-returnvalues) and well discussed. By now most people should know that with PHP's type ju... | 12 |
lolphp | weirdasianfaces | ctpxk88 | <|sols|><|sot|>empty((string) '0'); // === true - because fuck you, that's why<|eot|><|sol|>http://ideone.com/ZqytvO<|eol|><|sor|>This is [well documented](https://secure.php.net/manual/en/function.empty.php#refsect1-function.empty-returnvalues) and well discussed. By now most people should know that with PHP's type ju... | 10 |
lolphp | phoshi | ctqvl9k | <|sols|><|sot|>empty((string) '0'); // === true - because fuck you, that's why<|eot|><|sol|>http://ideone.com/ZqytvO<|eol|><|sor|>Do you mean `'0' // == false - because fuck you, that's why`?
What are you trying to prove? Casting a string into a string(?) and then checking its falsyness to give an example of PHP's fun... | 10 |
lolphp | KeinBaum | ctqo1io | <|sols|><|sot|>empty((string) '0'); // === true - because fuck you, that's why<|eot|><|sol|>http://ideone.com/ZqytvO<|eol|><|sor|>Even better is the [documentaion](http://de2.php.net/manual/en/function.empty.php):
>Prior to PHP 5.5, empty() only supports variables; anything else will result in a parse error. In other ... | 8 |
lolphp | vita10gy | ctqm59w | <|sols|><|sot|>empty((string) '0'); // === true - because fuck you, that's why<|eot|><|sol|>http://ideone.com/ZqytvO<|eol|><|sor|>TRWTF is that a query function is not called is_empty.<|eor|><|sor|>Even if it was it would have been isemp() or something else goofy.<|eor|><|eols|><|endoftext|> | 7 |
lolphp | wutf | ctqw5k4 | <|sols|><|sot|>empty((string) '0'); // === true - because fuck you, that's why<|eot|><|sol|>http://ideone.com/ZqytvO<|eol|><|sor|>Even better is the [documentaion](http://de2.php.net/manual/en/function.empty.php):
>Prior to PHP 5.5, empty() only supports variables; anything else will result in a parse error. In other ... | 7 |
lolphp | amunak | cu4uzzs | <|sols|><|sot|>empty((string) '0'); // === true - because fuck you, that's why<|eot|><|sol|>http://ideone.com/ZqytvO<|eol|><|sor|>Sorry, but what is wrong? This is in Documentation described.
http://php.net/manual/pl/types.comparisons.php
<|eor|><|soopr|>The fact that *it's even a thing*. (Thankfully) most of PHP's o... | 6 |
lolphp | domstersch | ctqxju0 | <|sols|><|sot|>empty((string) '0'); // === true - because fuck you, that's why<|eot|><|sol|>http://ideone.com/ZqytvO<|eol|><|sor|>Even better is the [documentaion](http://de2.php.net/manual/en/function.empty.php):
>Prior to PHP 5.5, empty() only supports variables; anything else will result in a parse error. In other ... | 6 |
lolphp | squiggleslash | ctqb2rm | <|sols|><|sot|>empty((string) '0'); // === true - because fuck you, that's why<|eot|><|sol|>http://ideone.com/ZqytvO<|eol|><|sor|>This is [well documented](https://secure.php.net/manual/en/function.empty.php#refsect1-function.empty-returnvalues) and well discussed. By now most people should know that with PHP's type ju... | 6 |
lolphp | the_cornell | ctrjqkm | <|sols|><|sot|>empty((string) '0'); // === true - because fuck you, that's why<|eot|><|sol|>http://ideone.com/ZqytvO<|eol|><|sor|>Do you mean `'0' // == false - because fuck you, that's why`?
What are you trying to prove? Casting a string into a string(?) and then checking its falsyness to give an example of PHP's fun... | 6 |
lolphp | captainramen | ctqbw1a | <|sols|><|sot|>empty((string) '0'); // === true - because fuck you, that's why<|eot|><|sol|>http://ideone.com/ZqytvO<|eol|><|sor|>TRWTF is that a query function is not called is_empty.<|eor|><|eols|><|endoftext|> | 5 |
lolphp | LastElemental | ctqnj2u | <|sols|><|sot|>empty((string) '0'); // === true - because fuck you, that's why<|eot|><|sol|>http://ideone.com/ZqytvO<|eol|><|sor|>Even better is the [documentaion](http://de2.php.net/manual/en/function.empty.php):
>Prior to PHP 5.5, empty() only supports variables; anything else will result in a parse error. In other ... | 5 |
lolphp | ajmarks | 1s8r1j | <|sols|><|sot|>Now Python can have the reliability of PHP (x-post /r/Python)<|eot|><|sol|>https://github.com/ajalt/fuckitpy<|eol|><|eols|><|endoftext|> | 61 |
lolphp | tdammers | cdvavl9 | <|sols|><|sot|>Now Python can have the reliability of PHP (x-post /r/Python)<|eot|><|sol|>https://github.com/ajalt/fuckitpy<|eol|><|sor|>Admirable attempt, but not quite there yet. In order to compete with PHP, we need at least the following:
* Two more independent and non-optional error handling systems next to the e... | 32 |
lolphp | jamwaffles | cdwkujj | <|sols|><|sot|>Now Python can have the reliability of PHP (x-post /r/Python)<|eot|><|sol|>https://github.com/ajalt/fuckitpy<|eol|><|sor|>Admirable attempt, but not quite there yet. In order to compete with PHP, we need at least the following:
* Two more independent and non-optional error handling systems next to the e... | 18 |
lolphp | aftli | cdvgqu0 | <|sols|><|sot|>Now Python can have the reliability of PHP (x-post /r/Python)<|eot|><|sol|>https://github.com/ajalt/fuckitpy<|eol|><|sor|>Inside tests.py:
def test_context_manager():
with fuckit:
pass
assert 'P' != 'NP' # proof is left as an excercise for the reader<|eor|><|sor|>I l... | 14 |
lolphp | tdammers | cdx8x34 | <|sols|><|sot|>Now Python can have the reliability of PHP (x-post /r/Python)<|eot|><|sol|>https://github.com/ajalt/fuckitpy<|eol|><|sor|>Admirable attempt, but not quite there yet. In order to compete with PHP, we need at least the following:
* Two more independent and non-optional error handling systems next to the e... | 11 |
lolphp | neslinesli93 | cdve8pk | <|sols|><|sot|>Now Python can have the reliability of PHP (x-post /r/Python)<|eot|><|sol|>https://github.com/ajalt/fuckitpy<|eol|><|sor|>Inside tests.py:
def test_context_manager():
with fuckit:
pass
assert 'P' != 'NP' # proof is left as an excercise for the reader<|eor|><|eols|><|... | 10 |
lolphp | Sarcastinator | cdxdnd9 | <|sols|><|sot|>Now Python can have the reliability of PHP (x-post /r/Python)<|eot|><|sol|>https://github.com/ajalt/fuckitpy<|eol|><|sor|>Admirable attempt, but not quite there yet. In order to compete with PHP, we need at least the following:
* Two more independent and non-optional error handling systems next to the e... | 10 |
lolphp | Holkr | cdv1bve | <|sols|><|sot|>Now Python can have the reliability of PHP (x-post /r/Python)<|eot|><|sol|>https://github.com/ajalt/fuckitpy<|eol|><|sor|>While this is jest, this part stands out as kinda useful:
>###As a context manager###
>Use fuckit as a context manager to save yourself from having to type out try/except block to si... | 8 |
lolphp | infinull | cdvgtk0 | <|sols|><|sot|>Now Python can have the reliability of PHP (x-post /r/Python)<|eot|><|sol|>https://github.com/ajalt/fuckitpy<|eol|><|sor|>from tests.py
def test_chaining():
fuckit(fuckit('fuckit'))
assert 'false' # Good thing this isn't PHP
see: https://github.com/ajalt/fuckitpy/blob/master/te... | 6 |
lolphp | tdammers | cdwqsh3 | <|sols|><|sot|>Now Python can have the reliability of PHP (x-post /r/Python)<|eot|><|sol|>https://github.com/ajalt/fuckitpy<|eol|><|sor|>Admirable attempt, but not quite there yet. In order to compete with PHP, we need at least the following:
* Two more independent and non-optional error handling systems next to the e... | 6 |
lolphp | tdammers | cdz0ljt | <|sols|><|sot|>Now Python can have the reliability of PHP (x-post /r/Python)<|eot|><|sol|>https://github.com/ajalt/fuckitpy<|eol|><|sor|>Admirable attempt, but not quite there yet. In order to compete with PHP, we need at least the following:
* Two more independent and non-optional error handling systems next to the e... | 5 |
lolphp | SjaakRake | m0kucy | <|sols|><|sot|>DateTimeInterface::ISO8601 - Note: This format is not compatible with ISO-8601.<|eot|><|sol|>https://www.php.net/manual/en/class.datetimeinterface.php#datetime.constants.iso8601<|eol|><|eols|><|endoftext|> | 63 |
lolphp | ZiggyTheHamster | gq9esfm | <|sols|><|sot|>DateTimeInterface::ISO8601 - Note: This format is not compatible with ISO-8601.<|eot|><|sol|>https://www.php.net/manual/en/class.datetimeinterface.php#datetime.constants.iso8601<|eol|><|sor|>There was an RFC (not sure if it was called that back then) that discussed this. Some ppl wanted REAL_ISO8601, but... | 24 |
lolphp | elcapitanoooo | gq8zy9s | <|sols|><|sot|>DateTimeInterface::ISO8601 - Note: This format is not compatible with ISO-8601.<|eot|><|sol|>https://www.php.net/manual/en/class.datetimeinterface.php#datetime.constants.iso8601<|eol|><|sor|>There was an RFC (not sure if it was called that back then) that discussed this. Some ppl wanted REAL_ISO8601, but... | 17 |
lolphp | Takeoded | gq90vyk | <|sols|><|sot|>DateTimeInterface::ISO8601 - Note: This format is not compatible with ISO-8601.<|eot|><|sol|>https://www.php.net/manual/en/class.datetimeinterface.php#datetime.constants.iso8601<|eol|><|sor|>has been discussed countless times before,
and before someone comes saying "it doesn't really break the specs", ... | 17 |
lolphp | Takeoded | gq91gwu | <|sols|><|sot|>DateTimeInterface::ISO8601 - Note: This format is not compatible with ISO-8601.<|eot|><|sol|>https://www.php.net/manual/en/class.datetimeinterface.php#datetime.constants.iso8601<|eol|><|sor|>There was an RFC (not sure if it was called that back then) that discussed this. Some ppl wanted REAL_ISO8601, but... | 8 |
lolphp | supereater14 | 8zn3zj | <|sols|><|sot|>Admitting their own faults.<|eot|><|sol|>https://twitter.com/official_php/status/1019024916811866113?s=19<|eol|><|eols|><|endoftext|> | 64 |
lolphp | SaraMG | e2kjd2b | <|sols|><|sot|>Admitting their own faults.<|eot|><|sol|>https://twitter.com/official_php/status/1019024916811866113?s=19<|eol|><|sor|>(_)
I prefer to call that
( _)>-
Self-deprecating humor
(_)<|eor|><|eols|><|endoftext|> | 25 |
lolphp | girst | e2k20xd | <|sols|><|sot|>Admitting their own faults.<|eot|><|sol|>https://twitter.com/official_php/status/1019024916811866113?s=19<|eol|><|sor|>that twitter account is quite ... something:
> Searching in strings using integers (which are cast to their ascii ordinal values???) now deprecated in PHP 7.3
[(s)](https://twitter.co... | 13 |
lolphp | bj_christianson | e2k8vuu | <|sols|><|sot|>Admitting their own faults.<|eot|><|sol|>https://twitter.com/official_php/status/1019024916811866113?s=19<|eol|><|sor|>that twitter account is quite ... something:
> Searching in strings using integers (which are cast to their ascii ordinal values???) now deprecated in PHP 7.3
[(s)](https://twitter.co... | 8 |
lolphp | shitcanz | 5kj176 | <|soss|><|sot|>Laravel Elixir is renaming the project. In part because of name confusion with Elixir-lang. New name is "MIX" https://laravel-news.com/laravel-elixir-to-laravel-mix For those who don't know: "MIX" is the Elixir lang build tool. HAHAH!<|eot|><|sost|><|eost|><|eoss|><|endoftext|> | 60 |
lolphp | Conradfr | dboainm | <|soss|><|sot|>Laravel Elixir is renaming the project. In part because of name confusion with Elixir-lang. New name is "MIX" https://laravel-news.com/laravel-elixir-to-laravel-mix For those who don't know: "MIX" is the Elixir lang build tool. HAHAH!<|eot|><|sost|><|eost|><|sor|>As a PHP dev currently trying Elixir that... | 15 |
lolphp | porkslow | dbobskd | <|soss|><|sot|>Laravel Elixir is renaming the project. In part because of name confusion with Elixir-lang. New name is "MIX" https://laravel-news.com/laravel-elixir-to-laravel-mix For those who don't know: "MIX" is the Elixir lang build tool. HAHAH!<|eot|><|sost|><|eost|><|sor|>Why not just use Node.js directly instead... | 13 |
lolphp | dwcmwa | dbplmlb | <|soss|><|sot|>Laravel Elixir is renaming the project. In part because of name confusion with Elixir-lang. New name is "MIX" https://laravel-news.com/laravel-elixir-to-laravel-mix For those who don't know: "MIX" is the Elixir lang build tool. HAHAH!<|eot|><|sost|><|eost|><|sor|>Why not just name it "Left Pad"?<|eor|><|... | 6 |
lolphp | ealf | 51kqyu | <|sols|><|sot|>Let's just say don't use parse_url for your oauth implementation<|eot|><|sol|>https://3v4l.org/GqOOI<|eol|><|eols|><|endoftext|> | 63 |
lolphp | sloat | d7cutpa | <|sols|><|sot|>Let's just say don't use parse_url for your oauth implementation<|eot|><|sol|>https://3v4l.org/GqOOI<|eol|><|sor|>It seems that filter_var with FILTER_VALIDATE_URL validates according to RFC2396, [although somewhat incorrectly](https://3v4l.org/EkfBM). The 3rd URL and "tel:" URIs should be valid as near ... | 22 |
lolphp | graingert | d7dz68y | <|sols|><|sot|>Let's just say don't use parse_url for your oauth implementation<|eot|><|sol|>https://3v4l.org/GqOOI<|eol|><|sor|>`parse_url` is a mess. It probably needs a ground-up rewrite.<|eor|><|sor|>Just shell out to `python3 -c __import__(urllib.parse")...'`<|eor|><|eols|><|endoftext|> | 18 |
lolphp | the_alias_of_andrea | d7d3pgk | <|sols|><|sot|>Let's just say don't use parse_url for your oauth implementation<|eot|><|sol|>https://3v4l.org/GqOOI<|eol|><|sor|>`parse_url` is a mess. It probably needs a ground-up rewrite.<|eor|><|eols|><|endoftext|> | 13 |
lolphp | stesch | d7i0fjj | <|sols|><|sot|>Let's just say don't use parse_url for your oauth implementation<|eot|><|sol|>https://3v4l.org/GqOOI<|eol|><|sor|>So I dug into this with my limited knowledge of the PHP bug tracker. I found this hilarious issue, please read the comments:
https://bugs.php.net/bug.php?id=54369
Just to get you started, t... | 12 |
lolphp | ealf | d7dx55b | <|sols|><|sot|>Let's just say don't use parse_url for your oauth implementation<|eot|><|sol|>https://3v4l.org/GqOOI<|eol|><|sor|>It seems that filter_var with FILTER_VALIDATE_URL validates according to RFC2396, [although somewhat incorrectly](https://3v4l.org/EkfBM). The 3rd URL and "tel:" URIs should be valid as near ... | 9 |
lolphp | kmag2 | d7mbnqv | <|sols|><|sot|>Let's just say don't use parse_url for your oauth implementation<|eot|><|sol|>https://3v4l.org/GqOOI<|eol|><|sor|>`parse_url` is a mess. It probably needs a ground-up rewrite.<|eor|><|sor|>Works as expected. Will not fix.
If you want RFC3986 URL validation, set PARSE_URL_NEW_NEW=3968 in php.ini and use... | 8 |
lolphp | kmag2 | d7mbua6 | <|sols|><|sot|>Let's just say don't use parse_url for your oauth implementation<|eot|><|sol|>https://3v4l.org/GqOOI<|eol|><|sor|>So I dug into this with my limited knowledge of the PHP bug tracker. I found this hilarious issue, please read the comments:
https://bugs.php.net/bug.php?id=54369
Just to get you started, t... | 7 |
lolphp | emilvikstrom | d7fcwed | <|sols|><|sot|>Let's just say don't use parse_url for your oauth implementation<|eot|><|sol|>https://3v4l.org/GqOOI<|eol|><|sor|>So I dug into this with my limited knowledge of the PHP bug tracker. I found this hilarious issue, please read the comments:
https://bugs.php.net/bug.php?id=54369
Just to get you started, t... | 6 |
lolphp | bs4h | 2ykfex | <|sols|><|sot|>Static type checking? Of course!<|eot|><|sol|>http://stackoverflow.com/questions/4103480/really-php-argument-1-passed-to-my-function-must-be-an-instance-of-string-s<|eol|><|eols|><|endoftext|> | 63 |
lolphp | DoctorWaluigiTime | cpapmdy | <|sols|><|sot|>Static type checking? Of course!<|eot|><|sol|>http://stackoverflow.com/questions/4103480/really-php-argument-1-passed-to-my-function-must-be-an-instance-of-string-s<|eol|><|sor|>[deleted]<|eor|><|sor|>Because when I see types being used like *every strongly typed language in existance*, I'm supposed to g... | 26 |
lolphp | TheBuzzSaw | cpaja81 | <|sols|><|sot|>Static type checking? Of course!<|eot|><|sol|>http://stackoverflow.com/questions/4103480/really-php-argument-1-passed-to-my-function-must-be-an-instance-of-string-s<|eol|><|sor|>I just don't understand PHP enthusiasts. PHP has the *worst* of every language. PHP only _complicates_ programming. It simplifi... | 24 |
lolphp | DoctorWaluigiTime | cpax4o0 | <|sols|><|sot|>Static type checking? Of course!<|eot|><|sol|>http://stackoverflow.com/questions/4103480/really-php-argument-1-passed-to-my-function-must-be-an-instance-of-string-s<|eol|><|sor|>[deleted]<|eor|><|sor|>Because when I see types being used like *every strongly typed language in existance*, I'm supposed to g... | 23 |
lolphp | Sarcastinator | cpbdmmh | <|sols|><|sot|>Static type checking? Of course!<|eot|><|sol|>http://stackoverflow.com/questions/4103480/really-php-argument-1-passed-to-my-function-must-be-an-instance-of-string-s<|eol|><|sor|>I just don't understand PHP enthusiasts. PHP has the *worst* of every language. PHP only _complicates_ programming. It simplifi... | 20 |
lolphp | DoctorWaluigiTime | cpauos2 | <|sols|><|sot|>Static type checking? Of course!<|eot|><|sol|>http://stackoverflow.com/questions/4103480/really-php-argument-1-passed-to-my-function-must-be-an-instance-of-string-s<|eol|><|sor|>[deleted]<|eor|><|sor|>Because when I see types being used like *every strongly typed language in existance*, I'm supposed to g... | 19 |
lolphp | cite-reader | cpbndxw | <|sols|><|sot|>Static type checking? Of course!<|eot|><|sol|>http://stackoverflow.com/questions/4103480/really-php-argument-1-passed-to-my-function-must-be-an-instance-of-string-s<|eol|><|sor|>The real wtf here is that type hints are not at all resolved to an actual class name.
I mean, why is the following allowed, w... | 18 |
lolphp | DoctorWaluigiTime | cpazzvp | <|sols|><|sot|>Static type checking? Of course!<|eot|><|sol|>http://stackoverflow.com/questions/4103480/really-php-argument-1-passed-to-my-function-must-be-an-instance-of-string-s<|eol|><|sor|>[deleted]<|eor|><|sor|>Because when I see types being used like *every strongly typed language in existance*, I'm supposed to g... | 15 |
lolphp | willfe42 | cpban6e | <|sols|><|sot|>Static type checking? Of course!<|eot|><|sol|>http://stackoverflow.com/questions/4103480/really-php-argument-1-passed-to-my-function-must-be-an-instance-of-string-s<|eol|><|sor|>[deleted]<|eor|><|sor|>Because when I see types being used like *every strongly typed language in existance*, I'm supposed to g... | 13 |
lolphp | myaut | cpb9mw2 | <|sols|><|sot|>Static type checking? Of course!<|eot|><|sol|>http://stackoverflow.com/questions/4103480/really-php-argument-1-passed-to-my-function-must-be-an-instance-of-string-s<|eol|><|sor|>[deleted]<|eor|><|sor|>Because when I see types being used like *every strongly typed language in existance*, I'm supposed to g... | 12 |
lolphp | DoctorWaluigiTime | cpb2r7a | <|sols|><|sot|>Static type checking? Of course!<|eot|><|sol|>http://stackoverflow.com/questions/4103480/really-php-argument-1-passed-to-my-function-must-be-an-instance-of-string-s<|eol|><|sor|>[deleted]<|eor|><|sor|>Because when I see types being used like *every strongly typed language in existance*, I'm supposed to g... | 9 |
lolphp | Rolegros | cpbf8ss | <|sols|><|sot|>Static type checking? Of course!<|eot|><|sol|>http://stackoverflow.com/questions/4103480/really-php-argument-1-passed-to-my-function-must-be-an-instance-of-string-s<|eol|><|sor|>The real wtf here is that type hints are not at all resolved to an actual class name.
I mean, why is the following allowed, w... | 8 |
lolphp | DoctorWaluigiTime | cpbbi63 | <|sols|><|sot|>Static type checking? Of course!<|eot|><|sol|>http://stackoverflow.com/questions/4103480/really-php-argument-1-passed-to-my-function-must-be-an-instance-of-string-s<|eol|><|sor|>[deleted]<|eor|><|sor|>Because when I see types being used like *every strongly typed language in existance*, I'm supposed to g... | 7 |
lolphp | OneWingedShark | cpaocr5 | <|sols|><|sot|>Static type checking? Of course!<|eot|><|sol|>http://stackoverflow.com/questions/4103480/really-php-argument-1-passed-to-my-function-must-be-an-instance-of-string-s<|eol|><|sor|>I just don't understand PHP enthusiasts. PHP has the *worst* of every language. PHP only _complicates_ programming. It simplifi... | 6 |
lolphp | OneWingedShark | cpb6m83 | <|sols|><|sot|>Static type checking? Of course!<|eot|><|sol|>http://stackoverflow.com/questions/4103480/really-php-argument-1-passed-to-my-function-must-be-an-instance-of-string-s<|eol|><|sor|>[deleted]<|eor|><|sor|>Because when I see types being used like *every strongly typed language in existance*, I'm supposed to g... | 6 |
lolphp | gu3st12 | cpbj190 | <|sols|><|sot|>Static type checking? Of course!<|eot|><|sol|>http://stackoverflow.com/questions/4103480/really-php-argument-1-passed-to-my-function-must-be-an-instance-of-string-s<|eol|><|sor|>Because when I see types being used like *every strongly typed language in existance*, I'm supposed to go to the manual and rea... | 6 |
lolphp | cite-reader | cpfv58u | <|sols|><|sot|>Static type checking? Of course!<|eot|><|sol|>http://stackoverflow.com/questions/4103480/really-php-argument-1-passed-to-my-function-must-be-an-instance-of-string-s<|eol|><|sor|>The real wtf here is that type hints are not at all resolved to an actual class name.
I mean, why is the following allowed, w... | 5 |
lolphp | nanashi_ | 1zfy0t | <|sols|><|sot|>Sample of Mt.Gox source code<|eot|><|sol|>http://pastebin.com/W8B3CGiN<|eol|><|eols|><|endoftext|> | 63 |
lolphp | ZorbaTHut | cftcdco | <|sols|><|sot|>Sample of Mt.Gox source code<|eot|><|sol|>http://pastebin.com/W8B3CGiN<|eol|><|sor|>"Let's send some money somewhere! Didn't work? Don't bother asking why, just send more money"
I also rather enjoy the use of floating-point to store financial data.<|eor|><|eols|><|endoftext|> | 40 |
lolphp | ZorbaTHut | cfth536 | <|sols|><|sot|>Sample of Mt.Gox source code<|eot|><|sol|>http://pastebin.com/W8B3CGiN<|eol|><|sor|>"Let's send some money somewhere! Didn't work? Don't bother asking why, just send more money"
I also rather enjoy the use of floating-point to store financial data.<|eor|><|sor|> if ($bean->Coins >... | 24 |
lolphp | ajmarks | cftcs14 | <|sols|><|sot|>Sample of Mt.Gox source code<|eot|><|sol|>http://pastebin.com/W8B3CGiN<|eol|><|sor|>Did i just look at 1700 lines of code with basically zero documentation?<|eor|><|eols|><|endoftext|> | 22 |
lolphp | ZorbaTHut | cfthird | <|sols|><|sot|>Sample of Mt.Gox source code<|eot|><|sol|>http://pastebin.com/W8B3CGiN<|eol|><|sor|>"Let's send some money somewhere! Didn't work? Don't bother asking why, just send more money"
I also rather enjoy the use of floating-point to store financial data.<|eor|><|sor|> if ($bean->Coins >... | 22 |
lolphp | phoshi | cftitc8 | <|sols|><|sot|>Sample of Mt.Gox source code<|eot|><|sol|>http://pastebin.com/W8B3CGiN<|eol|><|sor|>Did i just look at 1700 lines of code with basically zero documentation?<|eor|><|sor|>Welcome to the real world<|eor|><|sor|>The real world has lots of documentation. The problem is that nobody knows where it is, and when... | 21 |
lolphp | merreborn | cfth75a | <|sols|><|sot|>Sample of Mt.Gox source code<|eot|><|sol|>http://pastebin.com/W8B3CGiN<|eol|><|sor|>"Let's send some money somewhere! Didn't work? Don't bother asking why, just send more money"
I also rather enjoy the use of floating-point to store financial data.<|eor|><|sor|> if ($bean->Coins >... | 21 |
lolphp | SquireCD | cftcype | <|sols|><|sot|>Sample of Mt.Gox source code<|eot|><|sol|>http://pastebin.com/W8B3CGiN<|eol|><|sor|>Holy shit.
To be fair to PHP, you can be an idiot in any language. But... holy shit. <|eor|><|eols|><|endoftext|> | 19 |
lolphp | Darkimmortal | cftq1zv | <|sols|><|sot|>Sample of Mt.Gox source code<|eot|><|sol|>http://pastebin.com/W8B3CGiN<|eol|><|sor|>Does no one stop to question whether this is really mtgox code?<|eor|><|eols|><|endoftext|> | 17 |
lolphp | skeeto | cftw3y3 | <|sols|><|sot|>Sample of Mt.Gox source code<|eot|><|sol|>http://pastebin.com/W8B3CGiN<|eol|><|sor|>"Let's send some money somewhere! Didn't work? Don't bother asking why, just send more money"
I also rather enjoy the use of floating-point to store financial data.<|eor|><|sor|>> I also rather enjoy the use of floating-... | 17 |
lolphp | aaarrrggh | cftkudy | <|sols|><|sot|>Sample of Mt.Gox source code<|eot|><|sol|>http://pastebin.com/W8B3CGiN<|eol|><|sor|>And this is why I'm scared of leaving my current job. Imagine inheriting a piece of shit like this. I don't know what MT.gox is, but I wouldn't want to be a client of theirs after reading this fucking piece of shit. This ... | 13 |
lolphp | midir | cfto87h | <|sols|><|sot|>Sample of Mt.Gox source code<|eot|><|sol|>http://pastebin.com/W8B3CGiN<|eol|><|sor|>I'm hesitant to ask, but what's actually bad about this code?<|eor|><|eols|><|endoftext|> | 13 |
lolphp | ZorbaTHut | cftmcpz | <|sols|><|sot|>Sample of Mt.Gox source code<|eot|><|sol|>http://pastebin.com/W8B3CGiN<|eol|><|sor|>And this is why I'm scared of leaving my current job. Imagine inheriting a piece of shit like this. I don't know what MT.gox is, but I wouldn't want to be a client of theirs after reading this fucking piece of shit. This ... | 13 |
lolphp | merreborn | cftgii4 | <|sols|><|sot|>Sample of Mt.Gox source code<|eot|><|sol|>http://pastebin.com/W8B3CGiN<|eol|><|sor|>"Let's send some money somewhere! Didn't work? Don't bother asking why, just send more money"
I also rather enjoy the use of floating-point to store financial data.<|eor|><|sor|> if ($bean->Coins >... | 12 |
lolphp | aaarrrggh | cftl9ql | <|sols|><|sot|>Sample of Mt.Gox source code<|eot|><|sol|>http://pastebin.com/W8B3CGiN<|eol|><|sor|>Did i just look at 1700 lines of code with basically zero documentation?<|eor|><|sor|>Depends what you mean by docs. Comments aren't everything.
I'd be more concerned with the general shittyness, and the lack of tests to... | 12 |
lolphp | classhero | cftpekl | <|sols|><|sot|>Sample of Mt.Gox source code<|eot|><|sol|>http://pastebin.com/W8B3CGiN<|eol|><|sor|>Holy shit.
To be fair to PHP, you can be an idiot in any language. But... holy shit. <|eor|><|sor|>It looks like he started with Java as his first language<|eor|><|sor|>Yeah, I was wondering if there was some reason he w... | 12 |
lolphp | idontlikethisname | cftnh3h | <|sols|><|sot|>Sample of Mt.Gox source code<|eot|><|sol|>http://pastebin.com/W8B3CGiN<|eol|><|sor|>Dear venezuelan government: I hate you for blocking pastebin.com.<|eor|><|sor|>what the fuck? why would anyone block pastebin<|eor|><|sor|>Haha, everyone gets surprised. I'll quote one of my previous comments:
> As you m... | 11 |
lolphp | nick_ | 1x76bm | <|soss|><|sot|>$dateTime = new DateTime("0000-00-00 00:00:00");<|eot|><|sost|>November 30, -1
LEST WE FORGET
In PHP's language the syntaxes blow
Between the better languages, row on row,
That mark our place; and in the interwebs
The Apaches, still bravely serving, run
Scarce heard amid the users below.
We... | 61 |
lolphp | poizan42 | cf8q9kh | <|soss|><|sot|>$dateTime = new DateTime("0000-00-00 00:00:00");<|eot|><|sost|>November 30, -1
LEST WE FORGET
In PHP's language the syntaxes blow
Between the better languages, row on row,
That mark our place; and in the interwebs
The Apaches, still bravely serving, run
Scarce heard amid the users below.
We... | 16 |
lolphp | suspiciously_calm | cf8r1ts | <|soss|><|sot|>$dateTime = new DateTime("0000-00-00 00:00:00");<|eot|><|sost|>November 30, -1
LEST WE FORGET
In PHP's language the syntaxes blow
Between the better languages, row on row,
That mark our place; and in the interwebs
The Apaches, still bravely serving, run
Scarce heard amid the users below.
We... | 10 |
lolphp | nick_ | cfctgh8 | <|soss|><|sot|>$dateTime = new DateTime("0000-00-00 00:00:00");<|eot|><|sost|>November 30, -1
LEST WE FORGET
In PHP's language the syntaxes blow
Between the better languages, row on row,
That mark our place; and in the interwebs
The Apaches, still bravely serving, run
Scarce heard amid the users below.
We... | 9 |
lolphp | suspiciously_calm | cf8r3kq | <|soss|><|sot|>$dateTime = new DateTime("0000-00-00 00:00:00");<|eot|><|sost|>November 30, -1
LEST WE FORGET
In PHP's language the syntaxes blow
Between the better languages, row on row,
That mark our place; and in the interwebs
The Apaches, still bravely serving, run
Scarce heard amid the users below.
We... | 6 |
lolphp | Serialk | 2n35d2 | <|sols|><|sot|>When a PHP dev creates a troll issue for HHVM...<|eot|><|sol|>https://github.com/facebook/hhvm/issues/4290<|eol|><|eols|><|endoftext|> | 60 |
lolphp | Serialk | cma0a0w | <|sols|><|sot|>When a PHP dev creates a troll issue for HHVM...<|eot|><|sol|>https://github.com/facebook/hhvm/issues/4290<|eol|><|sor|>> PHP programmers have got used to T_PAAMAYIM_NEKUDOTAYIM.
Are you fuckin serious?
Why in the blithering fuck are you defending mixing in random goddamn hebrew-named variables?
edit:... | 22 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.