« first day (2379 days earlier)      last day (2585 days later) » 

12:06 AM
@pmmaga yes, please; and: if there are no keys at all, the starting index is still 0.
 
Good Evening everyone. Just want to ask about oauth, anybody has some experience here?
 
@bwoebi :) Yup, that stays the same as well. I'll add it to the unaffected section to make it clear
 
@pmmaga i) what's the argument for targeting 7.2 instead of 8 ii) what code have you ever written where the proposed changed behaviour is clearly superior to the current behaviour?
 
@Danack i) none really, just that the impact seems to me small enough that it could enter in a minor. ii) i don't think i've written code where the keys are not set explicitly but i try to get the values with explicit keys. the main goal is clarity, and getting rid of a somewhat "quirky" behavior
 
The change will break some people's code, and it will be really hard to spot either manually, or using automated tools to check if a codebase is going to be affected by it.
 
12:20 AM
it may indeed, i still kind of hope that people read the UPGRADING notes and such when they are upgrading their PHP version though. but i know what you mean, potential break for a small gain
 
@Danack I think the major.minor concept is totally irrelevant for PHP and we should just use major.patch [As such I also treat new minors equal to majors].
@Danack automated tools very likely will detect it … unless you use dynamic indices, but then hope is already lost I guess.
 
@bwoebi that's exactly where people will be dependent on the current behaviour but not aware of it.
 
@Danack I mean, I've never seen this without something being buggy in the end
I've seen cases of [$idx => $foo, $bar], where it broke in production because $idx could be negative
 
either way, an rfc's chances have never been hurt by targeting the next major rather than the next minor
 
but I haven't seen cases of it where that behavior is actually being relied on.
sure, it probably will break some obscure code, but I estimate that to be very, very rare.
 
12:27 AM
@PaulCrovella Yup, i'll do it if the discussion steers in that direction
 
12:45 AM
@tereško I'm sure I am and I'm sure I will...but how else does someone learn to avoid doing so?
Besides, every time I pick a tool or abstraction one of you let's me know that's the worst tool in the history of tools.
"Do it the right way." ~You
"Don't waste time doing it the right way." ~ Also You
 
Mornings o/
 
 
2 hours later…
2:33 AM
Hello,
from this example `print $foo::$my_static ;`, $foo is an Foo instance.
So why does it have access to the its class's static variable?
I see this example in the PHP doc:

https://secure.php.net/manual/en/language.oop5.static.php
 
3:32 AM
@Wes robocraft is shit now try war robots its fun game though it's mobile game but you can play on computer using memu
morning
 
hi
 
Hello, Hello
 
lol :)
 
@Hello hola
 
3:44 AM
I forgot I can just send a blank message because my name is Hello
 
I don't know why / you say goodbye / I say hello
 
Hello, that will work too :D
 
hahaha
 
so here in canada, they will soon be legalizing marijuana (about fecking time) and some institution, that oversees automobile insurance, have been airing very aggressively funny videos about how being high makes you less quick to react to the road.
potheads all over the province are going bananas, it's actually really funny
 
lol
 
3:48 AM
and very sad, because I wish more of us would actually not get angry over that. gives the rest of us a bad reputation.
 
I have crohns disease, i should try marijuana out..
 
yeah, out grown marijuana is the best
 
4 messages moved to Trash
 
@FélixGagnon-Grenier they can just add a clause in their terms and condition that if one is high than there is no insurance
 
@NullPoiиteя heh, I guess they will
I'm also mildly happy that they still try and prevent people from dying
 
3:51 AM
marijuana is apparently a great alternative to expensive medication for crohns patients
some of my friends just dont take their meds and use cannabis
 
@Hello it seems terrible!!!
 
what, you crohns people hang around together?
 
online communities mostly haha 😬 not many ppl with crohns near me here that I know of (wash. DC)
yeah it is terrible I won't lie, it has ruined my life kinda
 
... sorry if I seem insensible!
 
but im better now so thats the good part
 
3:53 AM
I'm like, 49,5% drunk, and my team lost tonight so... y'know
 
nono youre fine Felix :)
 
:)
@Hello shit.
hrmmm... no pun intended
... yeah off to bed with me. nn y'all
 
good night
 
gnite!
 
4:23 AM
friday morning room
 
lol
 
morning sir
 
Morning !
 
@Linus morning
 
4:38 AM
morning linus,Nullpointer! and hello hello
 
morning
 
o/
 
5:01 AM
posted on April 21, 2017

New Cyanide and Happiness Comic

 
haahah
 
morning Jimbo
 
5:16 AM
0
Q: .match is not a function jquery

Ram SinghI have working code in some website. We are changing the design of the website and some functionality so, when i am copy pasting the Jquery. it throws me error. i fixed number of issues, but not able to get what previous developer was trying to do it here: if (dateFormat=='european'){ dateof...

please help me..
 
most recruiters are clueless
 
moooorning
 
Morning
 
howdy
 
Wes
Morning (English perspective)
AGHGGHGGSAHFASEWTHJIWREWO (Italian perspective)
 
5:27 AM
sup valentin
sup wes
 
Wes
yo
 
im having fun with unity lol
it's time to take a break from web development :D
what's up @SalOrozco ?
mastering database layers ?
 
Ohhh then what else you are planning to do? @Valentincognito
 
I have possible job position at a company I really like but I should learn more about unity
I could have a position half web dev half game dev
that would be a blast
 
@Valentincognito yes how about you?
@Valentincognito that be so cool
 
5:37 AM
@SalOrozco well.. again im taking a little break with PHP now so.. I havent played with PDO for a while now ^^
I have a friend working for the company I want to go and he is telling me exactly what kind of guy they need now so I am adjusting my resume and learning a lot of new things
 
@Valentincognito a little break from it all is always good. Always works for me.
 
btw I didnt know this website before but Udemy is pretty cool to learn new things
 
You got the inside referral
 
and they had big sales recently
10$ for a 60h videos class is sweet
 
build by learning.
I like the build x amount of projects for what ever subject.
 
5:39 AM
not learn by building ? ^^
 
yeah there you go.
I have that angular 2 learn by building.
Didnt really pay.
You can always find them online in the corners of the web lol
 
angular 2 is super hard to learn
 
you think?
 
At first
 
5:41 AM
it was for me ^^
 
You will get used to it.
Modules
I like it.
Only use the resources you need for specific part of that app.
No extra css classes or scripts are loaded when not needed.
 
If I was leaving somewhere else I would have kept learning it maybe but here in South Korea it's not worth it .. no one use this
 
Over here yeah.
That's hot over there?
 
nope
here web technology sucks for many different reasons
that's why if I want to work with interesting technology I better try game dev / VR , AR dev
 
South Korea leaders in internet speed?
 
5:45 AM
Any drupal 8 developer?
 
internet speed maybe
 
I want to help in custom module cache disable
 
internet website quality nope
 
Design aspect
 
you want a sneak peak ?
here leader in car rental
 
5:46 AM
lmao
that's horrible
 
lol
 
wait , I have a bigger joke
everything is made of pictures
check out the code ;)
when I was on the maintenance team of this project I almost had a stroke when they told me I had to cut big images and just put it in there
 
lol
Oh the text is actually pictures.
lol
I would of quit.
 
yeah that's what i mean
ahah
 
5:51 AM
surprised that is only 1.6mb with all those images
 
still kind of slow of mobile
on 4g connection it would be 6 seconds
They do have higher speeds so maybe that's why lol
 
but bye bye your data plan
 
lol
That's right.
 
anyway I have been a web dev / design for 5 years here in Korea and I am really bored and frustrated now so it's time to switch
 
5:53 AM
You want to relocate?
 
the whole week I worked with blender / 3Dsmax and unity and i had A BLAST
no just change my field
 
ohh
Why did you go over there in the first place
 
girlfriend...
 
She is Korean.
 
6:16 AM
hi
i really wish i had lasagna right now
2
 
Wes
me too
@NikiC doing progresses! i started doing qualification of identifiers in comments e.g. @var Foo. i want to get the full-qualified name and have it saved somewhere, possibly within the tree of nodes itself. anyway then i realized there's the NameResolver thing i could use instead, am i right?
i almost did it but the group uses are a big barrier :B
 
trying to overwrite a single line in a text file based on input in a form, firstName and lastName
$file = fopen("contacts.txt", "a+");
$data = file("contacts.txt"); // reads an array of lines

function replaceLine($data)
{
	if (stristr($data, $firstName) || stristr($data, $lastName)) {
		return $firstName . "," . $lastName . "," . $emailAddress . "," . $phoneNumber . "," . $address . "," . $city . "," . $state . "," . $zip;
	}

		return $data;
}

$data = array_map('replaceLine', $data);
fclose($file);
why doesn't this do anything to the file?
 
Wes
6:32 AM
because you need to write it back to the file
but why are you doing this? use a database...
use at least json...
$file = file("contacts.txt");
$data = array_map('replaceLine', $data);
file_put_contents("contacts.txt, implode("\n", $data));
you don't need fopen if you are using file()
 
morning
 
ah
 
morning Joe
 
Wes
o/
 
morning
@Jeeves give me some friday love!
 
@Naruto I love you too :-)
 
thx
 
o/
 
it might not be friday
@PeeHaa had monday on repeat all week ...
5
 
6:46 AM
why? just why?!
@Jeeves you're toughts on PeeHaa?
 
@Naruto Thank You.
 
6:59 AM
!!dad
 
I don't trust stairs. They're always up to something.
 
7:34 AM
mornibdgah
so, everyones - how's your suffering going?
 
morning tereško
good
 
7:51 AM
 
ThW
Morning
 
so, for anyone paying attention to my weekly grumbling. i did find out some of why that shitty zf1 app is using multiple ini files that reference php files that reference ini files
 
Wes
\o
 
o/
 
the golden line "oh, i followed a tutorial.." let me stop you right there. enough said. now let me go back to refactoring this creepy clown in a van nightmare of configuration you've created.
 
Anonymous
7:59 AM
mornin
 
Wes
hey Jaystin
 
morgings yall
 
Anonymous
yopee
 
Anonymous
!!wotd
 
jammy: very lucky.
 
8:10 AM
o/
 
8:21 AM
mornings 11
 
\o
 
Already got some feedback yesterday evening but now for you morning people: Any feedback on wiki.php.net/rfc/negative_array_index before I start discussion on the mailing list?
 
> Currently, any array that has a number n as it's first numeric key will have for it's next implicit key either n+1 if n >= 0 or 0 if n < 0.
That's kinda hardish to read in the morning
 
8:32 AM
why are you making me interpret code ?
 
lgtm besides having to read the first sentence twice
Why is it currently like that btw @pmmaga?
 
@PeeHaa Any idea to make it more readable?
@JoeWatkins Which part exactly?
 
oh nvm, I just read it again ...
 
@PeeHaa As far as I could tell, someone forgot to cover this case a long time ago and so this behavior found it's way to the docs. :P
 
@pmmaga Maybe start with an example?
 
8:38 AM
@pmmaga Ah. How PHP
 
Currently an array that has -5 as its first numeric key will have 0 for it's next implicit key
 
@pmmaga I think the docs sentence is more clear
imo ymmv ianacp bbq
I like @Patrick's thing
 
Yeah, it's not a great elevator pitch. I'll rewrite it once i get some inspiration :P thanks!
 
9:03 AM
@Stephen that seems to be a common problem. Last time I got heavily hit by that was in AngularJS official documentation
it was a steaming pile of shit ... which kinda could be obvious to anyone who knows JS
it seems to me that Google is still having a problem of too many developer who are shit at JS
hell, they have had that issue even before they tried to push GWT
 
i think perhaps trying to solve too many problems with js is the bigger problem
 
I remember reading first google maps tutorials and thinking: was this written by a Java developer?!
 
Wes
@pmmaga it's -> its :P it's really strange to me that people don't get the difference between it's and its, because that's the only thing in english i actually understand :D
 
hi al
all*
 
Wes
9:21 AM
@pmmaga Push()ing an element to an array whose integer keys are all negative will result in the element being added at the "0" key. Instead, pushing an element to an array whose integer keys are all non-negative will result in the element being added at...
though i disagree with that, negative keys make me think it's not a sequence but a map, if i've ever decided to use an array as both a map and a list, i would expect $a[] doing as it does currently, that is, starting from 0
 
@Wes damn it! i normally get those right! :P I'll rewrite that sentence anyway but thanks for the heads up
@Wes Not sure what you mean here. Is this a simplified version of my intro?
 
Wes
yes.
damn i thought it was clear lol
i mean, a list that starts from negative indexes has no purpose imo @pmmaga. you don't want a list that works with negative indexes, but you do adjust the index as needed, by adding the difference when accessing the data. say you want a sequence to start from -100, right? you adjust the negative pos so it starts from 0, e.g.
$index = -54;
echo $array[$index + 100];
am i making sense? :B
 
9:41 AM
@Wes Why would a negative start by any different from a start position of any random positive value?
 
Anonymous
RFC Watch doesn't seem to be updating
 
Wes
that's a map then. lists are 0 based
 
@Wes That doesn't answer the question :)
 
@Wes why would positive keys be any different then? by this logic, if you set an explicit positive key, the next implicit key should/could also be 0, no?
 
^ that's what I was trying to ask @Wes
I notice I cannot English this morning
 
9:46 AM
@Wes it was clear at first but you're replying to an unrelated message :P
 
Wes
lol
i'm writing a hopefully satisfying answer :B hold on. i don't have a strong argument though, i'm mostly thinking of the fact that if it's a list then it's zero based and must not contain holes
like, for($i = 0; $i < count($list); $i++) would force me to do if($i = find_smallest_key($list); ...
 
@Wes Yes but rfc is about making it at least consistent. You are talking about scratching it entirely
 
Wes
eh?
 
eh?
 
Wes
i'm saying that how it works right now looks like the correct behavior for me
 
9:52 AM
Am I missing something? :P
@Wes Why would negative values be different than positive values
E.g. why would a start position of -10 be any different than 10
 
Wes
also 10 is wrong. if a list starts from 10 is a map, ordered, perhaps
 
2 mins ago, by PeeHaa
@Wes Yes but rfc is about making it at least consistent. You are talking about scratching it entirely
 
Wes
@PeeHaa so you are saying that according to my thinking if you have $a = [10 => 1]; and do $a[] should result in $a[0] rather than [11]
well yes, but that's an existing problem / thing you shouldn't do
we are adding something else you shouldn't do to be consistent with something you shouldn't do? :B
 
9:56 AM
@Wes I am asking why negative values should behave any different than positive values
@Wes No. Imo nothing is being added. Something is being fixed
 
Wes
i have just answered to that. that's something you shouldn't be doing already (push on a list with holes)
 
@Wes That doesn't answer the question
You answered a whole other question
 
Wes
i wouldn't consider that "consistency" but "making a design problem even bigger"
 
You answered the question "should the start position be non 0"
And not the question "why should negative values behave differently"
 
Wes
9:59 AM
because positive values behave wrong already
got it or are you trolling me? :B
to sum up
$a = [10 => 1, 40 => 2];
$a[] = 4; shouldn't even be allowed imo
and with
$a = [-10 => 1, -3 => 2];
$a[] = 4; you are making something that shouldn't even be allowed bigger. why even bother
 
How do I use twig with PHP-DI in a controller?
 
@Wes I get you, but I strongly disagree :)
We have something that works now. And we can have it behave more consistently. That's how I see it
 
Wes
imo you end up increasing the idea that using sequences with non zero-based sequential indexes is ok
as the list functions can mostly only operate with 0 based indexes, slice splice etc don't even look at the key
 
10:16 AM
@tereško what codeigniter nothing to do with mvc? Lol. 😂😂😂 — Abdulla Nilam 3 mins ago
 
Wes
16K rep??????
 
Wes
lol
why do you even look at code igniter questions
 
I was wondering, why suddenly there were appearing so many codeigniter questions in mvc tag
he was basically re-tagging them
 
Wes
lol how nice
@PeeHaa didn't you try with xdebug too?
 
10:24 AM
@Wes Errrr too long ago :P I think I tested it yea
Not 100% sure anymore though
 
Wes
i remember someone tried
could be both xdebug and phpdbg
 
I think I remember that too
 
Wes
10:40 AM
taylor otwell will be guest @ next php round table ep
[excited crowd cheering.bmp]
 
hi
 
Morns and happy frydai to all 11'ers
 
Anonymous
sad news about South Coast
 
@Wes I cannot remember doing anything buffer related in phpdbg :o
 
Wes
the mystery deepens @bwoebi :B
 
10:49 AM
@JayIsTooCommon ? :<
 
Anonymous
@Sean last one this year as they can't afford it
 
Odd, surely there's ways to lighten the cost
Unless it's a huge amount they're under by
 
Joe
hi
 
Anonymous
@Sean they're still 9k down this year in order to break even
 
Joe
can you say in english: I tried different program software
I mean like Eclipse
is the grammer ok
 
10:54 AM
"I've tried different programs" or "I've tried different software"
 
Joe
thank you, God bless you
 
11:08 AM
I am confused now @Wes
Is it a windows 7 issue?
 
Wes
apparently it was only my issue :B
it never failed on your computer, right?
 
Nope
Always worked
 
Wes
:shrug:
i gave up
now i just print "Something went wrong. Sorry"
 
moooooooooin
 
putting something into another one means "wrap" ?
 
11:09 AM
@DaveRandom afternoon sire
 
Wes
kind of @Shafizadeh
 
@Wes thx
 
Anonymous
@DaveRandom hola
 
Wes
you are welcome (English perspective) @Shafizadeh :B
morning dave
 
11:11 AM
@Wes lol
 
(not rebecca)
 
Wes
 
he refused to do the OST for ghostbusters, so they got Ray Parker Jr to rip that ^ off
that's why they did the BTTF soundtrack, because after that he said "well, I'm not turning that down again"
 
Wes
ghostbusters ost was great altogether, not just ray parker's theme music
youtube.com/watch?v=mNuG25oq_b0 this is hell good. dat tune
dang i suddenly remembered how bad it was ghostbusters 2016
now i'm sad
 
controversially, I liked it
/hides
 
Wes
11:21 AM
not even bill murray in it could save that movie
well... bill murray as protagonist
 
Anonymous
11:50 AM
today is boring
 
@Shafizadeh see: thesaurus.com/browse/wrap (I think you need verb and not a noun)
 
@tereško oh .. good! thank you
 
@samayo these guys are boring.
2
 
Does "primo" mean "at least" in this sentence?
> Everyone knows a primo insult or two
 
Anonymous
11:53 AM
@DaveRandom Still seems more fun than programming
 
@Shafizadeh it means "high quality"
 
@DaveRandom we call them hero
@DaveRandom OH :-) I see
 
@tereško lol
 
@Shafizadeh @samayo bad joke that I just realised non-native English speakers may not get en.wikipedia.org/wiki/Boring_(manufacturing)
 
@DaveRandom Just came in. Not dissapoint
 
11:56 AM
@DaveRandom it's less to do with english and more to do with "dad jokes"
 
also that
 
@DaveRandom Ah .. good to know
 

« first day (2379 days earlier)      last day (2585 days later) »