« first day (1074 days earlier)      last day (3874 days later) » 

2:00 PM
hi guys, for example i use MD5 on all numbers from 1 up to the limit of mysql INT, can i find anywhere a list of what numbers will collide? or does anybody have an idea? like, is it possible or not? i just dont want to brute force it so i can get the results..
 
no, they won't collide
what are you trying to do?
 
@ircmaxell how about BIGINT then?
 
yeah, to get a random collision from MD5 would take you thousands of years of processing through brute force.
 
@ircmaxell because there's this colleague of mine that uses a hash of the ids as token, im wondering if it will collide or something
 
I was wondering if there's anything out there for creating keys in PHP? For things like products.
 
2:03 PM
it won't collide, it provides no security at all, but it won't collide
 
Anonymous
Arghh, just found out, after working for almost a month. I won't get paid.
 
@ircmaxell yeah, maybe he just did it for obfuscation purposes
 
@Fabien ain't you actually looking for something like ZendGuard ?
 
@Gordon huh?
 
Anonymous
If I had a weapon, today would be quite a bleak day
 
2:04 PM
@tereško Oh no. Just something to make user registration require a key, but it doesn't have to be a stored key. Just an accepted one.
 
@Gordon: wait until you see my slides tomorrow. I tossed in a shout-out to you. Well, I won't actually mention you, but you'll know it when you see it :-P
 
@Simon_eQ well, that sucks dude.. maybe treating it as a learning experience would make it positive?
 
@Simon_eQ How'd they cock that up?
 
Anonymous
@reikyoushin I guess. Another experience, I learn as of today, is to work illegally. Like so many immigrants do.
 
@ircmaxell I am not sure if that should flatter or scare me :)
 
Anonymous
2:06 PM
@Fabien tough-ass Swiss law
 
@Gordon just in case - go with being scared. Then things can only turn out better then you expected.
 
We should be in charge of new error constants: E_COPY_PASTE, E_DOESNT_WORKING, E_DONT_DO_THAT_IN_AN_INTERFACE_YOU_LEAKY_ARSE, E_FATAL_BEEP, E_FONT_TOO_SMALL, E_GHETTO_SPEAK, E_INDIAN, E_INSUFFICIENT_BLOOD_ALCOHOL_LEVEL, E_LOLWUT, E_NOT_ENOUGH_JQUERY, E_NOT_PHP, E_OUT_OF_BEER, E_PLAYED_OUT, E_PROBABLY_MAYBE, E_RTFM, E_TOO_COMPLICATED, E_TOO_DIFFICULT, E_TOO_EXPENSIVE, E_TOO_MUCH_DUTCH, E_TOO_MUCH_LOGGING, E_TOO_MUCH_MAGIC, E_TOO_MUCH_REGEX
 
Anonymous
When did spamming become the norm in this room oO
 
@tereško true
 
(just a sampling from recent history)
 
2:09 PM
@DanLugg E_PROBABLY_MAYBE << wtf?
 
@Gordon you'll like it :-P
 
user895378
@Jack woot! Thanks for those I was going to start adding tests today. I fixed a couple of issues causing some existing tests to fail. Server streams and client streams use the same verification routine so I had to move some stuff around so verification is only enabled by default on client streams.
 
Yay E_INDIAN is there :D
 
I miss one: E_TOO_MUCH_SPAM
 
@ircmaxell yeah, you're tucking these :-P at the end so I am not sure whether you are just teasing me and I'm gonna hate it
 
2:11 PM
Nevermind, it keeps removing the *. Just search E_* in the PHP chat history.
 
I'm going to be teasing myself, so yeah, you won't hate it :-P
 
E_HORRIBLE_INDENTATION where is it?
 
@NikiC the reason for not being able to use that in an abstract method. abstract is not contract. I don't mind it raising an error but I guess I have to put an explanation.
 
@Starsong I didn't see that one; I just pulled random ones.
 
i hope there will be a video for people like me who cannot afford to go to conferences
 
2:13 PM
@bwoebi I like E_TOO_MUCH_DUTCH.
 
Speak at one instead. You'll get it free.
 
@DanLugg I guess that one's a WARNING anyway, not an ERROR.
 
Anonymous
@tereško same here.
 
@Starsong Clearly you don't know me
 
Anonymous
having said that .. pls get out of that country
 
user895378
2:14 PM
@DaveRandom Are you talking about a parser that can pull MIME multipart components out of an HTTP message body? Or something else? If it's the former I'm all for it. I was planning on doing something like that but it'll be a while before I get to it.
 
@Fabien you don't want to hear me speaking english. I can make small british children bleed at 100 feet
The accent is just abysmal ... I blame lack of practice
 
heh.
I kinda do now.
 
Anonymous
It can't be worse than Ocramius's :) </joke>
 
Hello Guys Can you tell how i need to process for facebook aap for creating store
*app
 
@ircmaxell on a planning note. looks like beberlei will join us on sunday
 
2:17 PM
@Simon_eQ
 
nope, we cannot
 
@TechQ Can you ask that question in English?
 
you have way to high expectations .. that sentence was almost correct
you must be new here
 
@TechQ It sounded like you said 'Hey guys, can you tell me where to hire a developer?', would you like to search for that instead?
 
No @Starsong
 
Anonymous
2:18 PM
@TechQ what ever happens to asking it in the main site?
 
you people are dicks
 
Anonymous
try it
 
SO should have a list of common noob questions
 
Anonymous
@SirKnowsaBit and why, if I may ask?
 
2:19 PM
and redirect people to careers101 if them try to post them with a friendly 'Hire a Developer here' header.
 
@Starsong It does, all the highly voted, highly starred ones.
 
not you in particular
 
@Gordon sweet
 
Such as 'Hi guys, help me create facebook/twitter/wordpress/World of Warcraft.'
 
more teresko
 
2:20 PM
@Simon_eQ I have checked but the thing is there i dint found any clue for App Development for Facebook store
 
Ben is a good guy
 
@SirKnowsaBit You must be new here.
 
No
im a vet
been here 35+ yrs
 
Anonymous
Yeah, all newbie hate @tereško
 
@Simon_eQ wat zo you zai about mai aczent?
 
2:21 PM
SO answers noob questions? I though the standard response was to just laugh and shame?
 
i remember when this here internet was nothing but dirt road
 
Anonymous
@TechQ have your already asked it ?
 
The only real answer to a noob question is "Google it".
 
The hardest thing about moving to Italy was learning to understand Italian accents. Seriously I work with someone who speaks perfect English and I still struggle to understand. :P
 
where abouts in italy
 
2:22 PM
Napoli
 
oh nice!
 
Anonymous
@Ocramius Your Italian accent was all over the screencast :)
 
been to piacenza?
 
@Simon_eQ oh, zat. Yes, zat's terribru
 
@Starsong for "expert level" you have to try japanese accents for english
 
2:22 PM
near the mountains
 
No, @SirKnowsaBit
 
hi guys :)
 
@tereško I used to date a Korean, does that count?
 
bapidiboopi
 
2:23 PM
@Simon_eQ Yes, Your answere give me direction but no clue to develop, plese help to get in
 
I know I'm a noob...but...how can i extract with a regex everything before the first number in a string?
 
wasn't @Ocramius from Napoli or something? That would make him African ;P
 
Korean actually sounds a lot like Japanese tbf
 
@TechQ Please hire a developer. If you can't work out Facebook API you're going to struggle.
 
@Starsong do koreans spell L's ?
 
2:23 PM
btw I HATE regexp!!!
 
@Gordon hey hey! That's offensive!
Napoli is not in Italy, mind your words!
 
@gr4devel Who could possibly hate regexp?
 
@Ocramius that's what I am saying ;)
 
(that last one didn't come out in english)
 
@Starsong ... me XD
 
2:24 PM
Booo Warning: file_get_contents(//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/js/bootstrap.min.js): failed to open stream: No such file or directory in
 
@tereško Umm, L/R are very similar (in Korean accent).
 
raaaait .. oh
 
It's probably normal that errors occurs but how to use a CDN then?
 
btw @Starsong can you help me ? :)
 
how to send image over this chat?
 
2:25 PM
But in all the previews on CDN websites it's without http:// .
 
@Starsong , OKay Thanks, I'm Developer i have developed many apps previously, I need a small clue to get in rest will take care of it.
 
@gr4devel I dont know, probably not. I'm bad at PHP.
 
Anonymous
I guess, being black and all, most people here probably assume that I talk like "Yo dawg, wut up, y'all trippin... "
 
@Starsong no problem buddy thanks anyway :)
 
@gr4devel If your question is about regex, maybe.
 
Anonymous
2:25 PM
I can't even make that out
 
@Simon_eQ Most of my white friends talk like that. :(
 
@Starsong actually yep my question is the following: how can I extract with a regex everything before the first number in a string?
 
@gr4devel ^(.*)?\d
 
Anonymous
@Starsong well, yeah.. we Eritreans aren't fond of that ebonics culture.
 
Anonymous
I even despise it, but not for all the wrong reasons.
 
2:28 PM
@Simon_eQ I struggle to understand what mah homiez are talking about sometimes.
 
i cannot relate .. we have like 4 black guys/gals in latvia
 
@Starsong oki I think I must modify a little bit the solution you gave me to consider also more than a single number
 
@gr4devel That will extract from the start of the string to the first number.
 
Anonymous
> Plim-plizzle, my nizzle, don' foget bouts tha six-fo, chuch, dawg up in da hood, chilly my grilly. fo sho. urbandictionary.com/define.php?term=ebonics
 
but it doesn't work O.o
 
2:29 PM
@Simon_eQ E_SNOOP_LION
 
Anonymous
@tereško Yeah, I read about that. I think one committed lavia-side
 
I get this "Is Arenas Ris. 2005 Doppia Magnum 3" when the input is "Is Arenas Ris. 2005 Doppia Magnum 3 Lt"
 
Well technically I am Half African does that count?
 
Anonymous
First time, I went to China. This translator girl said to me "So, do you like to dance"?
 
@gr4devel eval.in/50435 You need to check $match[1] because PHP is weird and captures stuff outside capture groups.
 
Anonymous
2:31 PM
I was like WTF!! Just because, I am black, it dosen't mean I am 50 Cent
 
Don't you like to dance?
 
but the 2005!
 
Anonymous
Nope. I can't dance.
 
3 isn't the first number!
 
Never mind, I'm being dumb
 
Anonymous
2:32 PM
Frankly, I have never had time to dance.
 
damned REGEXP!
:'(
 
Maybe she just liked you and wanted to take you out partying?
 
Anonymous
Life was dancing on me this whole time :/
 
@gr4devel /^(\D*)/
'All consecutive non-digits from the start of the string'
 
Anonymous
@Fabien qinghuangdao is one place on Earth, you do not want to be black.
 
2:33 PM
I hate REGEXP but I love @Starsong
thanks buddy :D
 
Anonymous
In just 24 hours. I got the staring of a lifetime.
 
it works :)
 
I love regexp but I hate PHP regex. :D
 
;)
 
Yeah China is pretty bad for that kind thing. Not bad bad but it's just that it's not 'normal'.
 
2:34 PM
thanks again I really appreciate your patience and willingness to help :)
 
@gr4devel No problem
 
Anonymous
They are good people, but damn so homogeneous they glorify little differences.
 
@Simon_eQ tbh it's the same being white in China.
 
@Starsong ;)
 
You go there and you're stared at like you're some kind of alien.
Unless you're in a major tourist hub.
 
2:36 PM
@Simon_eQ well, can you rap?
 
Anonymous
If you are white, at-least you will have those Chinese girls, wanting to hook up with you, because they think/want to go to America. And they believe every white man comes from America.
 
Anonymous
@Gordon No!
 
blah
 
@Simon_eQ :P True
 
Anonymous
@Starsong If you are black, a guy from the sidewalk at 9:00 AM will shout "AFRICA!! AFRICA!!" and then, when you ask, "what!" He will say, "you want a massage"
 
2:37 PM
And Chinese girls wanting to hook up with you is ALWAYS a bonus.
 
@Simon_eQ Can you sing?
 
Anonymous
Obviously, massage is quite a different thing in China
 
Anonymous
@Gordon No! Can't sing, rap or quite humiliatingly dance at all.
 
@Starsong Westerners smell of milk to Asians
 
@Gordon So.. African Americans smell of, chocolate milk?
 
2:39 PM
is it good practice for a function to return either one of two types?
 
@DanLugg ROFL!!!
 
@iroegbu Anywhere except PHP? No. PHP? Sure, why not.
 
@iroegbu X or false is generally OK.
 
@Simon_eQ ok, you cant sing or rap or dance. do you have at least have … you know … that other clichee … abnormally large … below the waist?
 
@iroegbu good - no, but if one of those types is a boolean, then it is tolerable
 
2:40 PM
agh I need a cigarette!
 
What @tereško said.
 
anyone ever quit smoking? tips for concentrating on programming / not thinking about cravings is appreciated!
 
In response to the whatever-or-false, I've found the try* idiom to work, as in bool tryWhatever(&$whatever)
 
Anonymous
@Gordon Only thing that keeps me moving
 
A 'la preg_match.
 
2:41 PM
@Daniel brew green tea with boiling hot water. that will make it bitter and the cigs wont taste good anymore
 
ok... I am returning string if found or false if not
 
@gordon nice tip, I'll have to try that!
 
Anonymous
without it, life would be E_TOO_DAMN_DIFFICULT
 
Anonymous
@Gordon I use that, to give the jungle fever .
 
@Simon_eQ I didnt ask for details ;)
 
Anonymous
2:43 PM
var_dump('jungle fever')
 
@iroegbu That's what a lot of the core functions do.
 
@Daniel chewing gum is also supposed to help focus
 
any reflection gurus over here ;-)
 
yeah unfortunately I hate gum, but I may break down and get some soon :) I've almost made it 24 hours, hasn't been as bad as I thought, though the normal smoke break times I'm finding it a little hard.
 
2:47 PM
@Gordon Not chewing gum makes you keep focused, but what you think :)
 
@sanders Not a guru - but just ask questions, don't ask to ask.
 
$oBarcode = new Barcode();
$oReflectBarcode = new ReflectionClass($oBarcode);
$resourceProperty = new ReflectionProperty($oReflectBarcode, 'td');
generates ReflectionException: Property ReflectionClass::$td does not exist
 
@Daniel it will get easier after about two weeks when the sense of smell comes back and you finally realize how revolting all these smokers smell ;)
 
@sanders is td private?
 
2:49 PM
Yep but i do next line $resourceProperty->setAccessible(true);
 
@sanders You are probably wanting to create or access the property on $oBarcode and not the reflected object itself
 
I'd probably debug it be iteratiing over: php.net/manual/en/reflectionclass.getproperties.php
Oh - lol yeah.
 
@gordon - That will be nice (and gross) lol. I quit once way back in high school and remember that smell. I actually could smell my fiance yesterday when she came back from a cig, was somewhat overwhelming.
 
@Daniel yeah, was quite enlightening to me back then
 
@cspray yes but i want runtime info. Want to check that on instanitiation the object is null. But later gets changed to a resource
 
2:50 PM
Glad to see a fellow programmer made it through quitting though @gordon!
 
@sanders Right, well you'd need to check the $oBarcode holding the new Barcode object. At the moment you are checking for a property ReflectionClass::$td and that will never work
 
@Daniel oh and btw. if she keeps smoking it's probably best to exchange her. you know, otherwise she'll make you fall back into old habits ;)
 
@cspray so what's the solution
 
@Gordon "exchange her"... because she's like a shirt that doesn't fit ;-)
 
Yeah, we're getting married in two weeks lol so not sure about the exchange. I'm hoping she will quit, I had an abnormal EKG and high blood pressure diagnosis as well, so to be honest this is the first time I've actually wanted to quit, and don't plan on smoking ever again.
 
2:52 PM
@Daniel I never quit. I am on pause for like 12 years now. IMO, it's much easier to be on pause because that removes the stress of "you may not smoke".
2
 
@sanders Pass the actual object you want to check to the first parameter of ReflectionProperty::__construct?
 
Ah that's a good idea!
 
That is a good idea.
 
@cs
 
I quit 6 years ago. Though that's technically not true, because I still smoke cigars on occasion.
 
2:53 PM
@cspray it's a runtime object.
 
@DanLugg why complicate it? 3v4l.org/ZHlL4
 
Anonymous
Funny, I feel like smoking whenever I can't fix an error in PHP.
 
@iroegbu That's not complicated, it's a clear separation of intents.
The function will always return a boolean. You can rely on that. If it succeeds, the reference parameter is populated with the results, or, it'll be null. You can rely on that.
 
lol @Simon_eQ - I know how that is!
 
Not this "well, it's a string if it works, but it's false if it doesn't, so if it's an empty string I have to ==="
 
2:54 PM
and congrats @Starsong
 
I could do if ($value !== false) { ... }
 
I rather enjoy smoking, ~1/2 pack a day. Mind you, as of late, I've started to reconsider it; at least cutting down to maybe ~1/4 a day.
@iroegbu Yes, you could. But I find that complicated.
 
if (!$value) { ... } then
 
@Simon_eQ If I smoked every time I couldn't figure something out in PHP I'd be a chimney.
 
3
A: Standardized returning values - is it a good or bad idea

Dan LuggA common idiom from some other languages (off hand, C#) is the Do/TryDo method pairing. /** * @param MyInput $input * @return MyOutput * @throws MyException */ function myOperation(MyInput $input) { } myOperation must throw an exception (MyException in this case) indicating the failure o...

 
@reikyoushin Yes, there are no women on the Internet.
 
@Starsong haha. LOL
 
The men are men, the women are men, and the children are the FBI.
 
Anonymous
@Starsong Well, I only smoke hookah rarely so, If I have to smoke for each error, I would be broke =/
 
But no really, I am a guy.
 
2:58 PM
@Gordon Well, using it in abstract would mean you have an abstract method with behavior... Also, why is abstract not contract?
 
so that's what that quote was about
 
@Simon_eQ I usually just smoke a cigar when I drink. Maybe 1x a week or something.
 
@DanLugg I used to think that I enjoy smoking but I eventually found out that I just felt normal when I smoked ;)
 
@Gordon lol, I actually do enjoy it.
 
I do enjoy smoking, but I don't enjoy the potential health costs or the potential financial costs.
 
2:59 PM
@NikiC because abstract is about concrete types not contracts
 
no you don't
 
what do i get when i have 1k rep?
 
@DanLugg go away nicotine. I want to talk to Dan again
 
@DanLugg no you don't. you've lied to yourself and convinced yourself that you like it.
 
2:59 PM
@Gordon I lent him my lungs, I'll tell him to leave when he gives them back.
 
@ircmaxell exactly
 
Anonymous
pretty much nothing.
 
I don't enjoy smoking cigarettes, but I enjoy cigars.
 
@Simon_eQ i was looking for it in the wrong section haha, thanks!
 
3:00 PM
@Starsong <- this.
 
@Gordon that doesn't make sense. abstract methods are a contract just like interface methods. They force you to implement some method in a particular way
 
I enjoy smoking, I don't care what.
 
Weed is fun too.
 
Anonymous
This room is so freaking addictive (or my life sucks right now) I rarely checkout the main site, let alone give answers
 
Anonymous
@reikyoushin concentrate less on this room, and more on the main site .
 
3:01 PM
If you ever decide to stop, I suggest this book
 
Crack, banana peels, belly-button lint, cigarettes. Light it on fire and inhale.
 
I went from a pack a day for 10 years, to completely quit in 8 hours reading it. And that was about 8 months ago
 
@ircmaxell Congratulations.
 
I haven't bought cigarettes in 6 years, I just stopped because I realized I didn't like them.
 
Anonymous
I find it kind of weak to read someone book to help you quite. I mean, what is that book telling you something you already don't know ? oO
 
3:02 PM
@ircmaxell Congrats! I'll have to check it out.
 
@Simon_eQ well, i try to give answers every now and then..
 
@Simon_eQ "I mean, what is that book telling you something you already don't know" -- That's probably why you should read more.
;-)
 
Anonymous
Reading about quitting how to smoke is entirely, different from reading about programming .
 
@Simon_eQ Not really. It's about strategy.
 
The book doesn't tell you anything you don't already know. It makes you realize what you knew all along but were too confused or proud to admit
 
3:04 PM
I just have a question
 
Anonymous
There is knowledge and then there is common sense .
 
@benlevywebdesign yes, this is the PHP chatroom. Not AA or any other self help group.
 
Anonymous
Off-course, they say .. " common sense is not so common anymore "
 
@Simon_eQ And both are improved with understanding and strategy.
 
@Gordon haha XP
 
3:06 PM
@Gordon Well, one might get the impression ...
 
can I do a header.php file and do a get_header(); for a non wordpress site meaning nothing is wordpress
 
If by get_header() you mean include 'header.php'; then yes.
 
but if there is something in your header that is wordpress specific it will break
 
@NikiC updated the rfc
 
@benlevywebdesign if you included the wordpress bootstrap before that, then yes.. you can do get_header();
 
3:08 PM
so I can have a header.php file and then on my index or any other page do a get_header();
 
I love SUBSTRING_INDEX().
 
@reikyoushin what if I am not doing a wordpress site?
 
@benlevywebdesign i think this wordpress codex page would be useful
@benlevywebdesign then you dont need the get_header.. just include 'header.php' on your non WP site
 
How would I do that, if I may ask?
 
just put this line on top of your page.. include 'header.php'; or include_once 'header.php';
 
3:12 PM
Thanks let me try it out
 
@Simon_eQ is that another request to ban you for seven days? ;)
 
morning all
 
Anonymous
@Gordon yeah. But, not sure, if I should say all the nasty words to make it feel justified.
 
@Simon_eQ a "please" would be sufficient :)
 
Anonymous
I have to curse! I have to find ways to let the anger out. The problem is who would I curse?? I have actually come to like these bastards :)
 
3:16 PM
@Simon_eQ Curse me
 
@Simon_eQ curse yourself then?
 
I occasionally flip the bird at my screen.
 
@reikyoushin I see it including the header.php file but the content isn't showing up
 
Anonymous
Cursing yourself doesn't count.
 
Anonymous
@salathe I don't know you yet.
 
Anonymous
3:18 PM
I have to know you first to curse you.
 
@benlevywebdesign are you including the header.php from a wordpress site?
 
@Simon_eQ Curse at me.
 
@Simon_eQ really? weirdo
 
Anonymous
@salathe screw you
 
3:19 PM
@benlevywebdesign then it should display the header.php, unless your header.php doesnt contain anything
 
it does, hold on...
 
Anonymous
@DanLugg I thought you, yourself were a curse
 
> Programming in general is an insult to mathematics. Because what we call functions are not what they call functions. One convention we have in JS is that calling a function with three parameters is the same as calling it with two plus undefined.
Guess who said that
 
@Simon_eQ better, but hardly cursing :)
 
@Simon_eQ Wat?
 
3:20 PM
Oh it is showing up just not on my local preview
I had to upload it to the web
 
Anonymous
Actually, @Gordon had a good point. I'm in a library, and totally had forgotten what I came to do. This room is ruining my life :p blast me from the past mate.
 
@benlevywebdesign so everything is good now?
 
Anonymous
Just make it until Friday, this time.
 
@benlevywebdesign of course because you need to parse it as PHP first. ^_^
 
This room is becoming more and more like AA.
 
3:21 PM
haha
 
Anonymous
> Lucky are the people who can resist the temptation
 
@Simon_eQ ha, so just in time for Rebecca Black
 
@DanLugg what's AA, alumni association?
 
@reikyoushin Alcoholics Anonymous
 
Anonymous
Nope, just after rebeka @Gordon
 
Anonymous
3:21 PM
:)
 
@Simon_eQ so saturday then
 
Anonymous
Nope. Friday is when this room gets ecstatic.
 
@Simon_eQ i didnt notice that..
 
@Simon_eQ I put 75 hours into the box. enjoy ;)
 
@reikyoushin I like being able to see how my site looks when I am using dreamweaver or coda so I guess I'll just have to get used to not seeing how my site looks
 
3:23 PM
Bye Bye Simon
 
lol
 
@benlevywebdesign oh okay.. i dont use dreamweaver, i just use localhost and smash f5 just like those dragonball games.
 
the irony is that I'm sitting in a design-in-browser talk right now, talking aobut not using dreamweaver or photoshop, but instead doing ALL design directly in browser
 
@Fabien "I occasionally flip the bird at my screen", you're not alone haha.
 
what is localhost?
3
I know what localhost is but not what you are talking about unless its the same thing?
 
3:26 PM
@ircmaxell Talk sponsored by Chromebook? -_-
 
@benlevywebdesign i just have xampp, (yeah, it sucks that i dont use CLI T-T) on my localhost, change stuff, refresh browser, see changes.. infinite cycle until im done
 
giving hhvm another shot...
 
@Ocramius the one made by FB?
 
@Fabien nope
 
3:30 PM
@reikyoushin ya... so far only managed to get the prebuilt one to work
 
holy crap. I am up to 129 slides for a 60 minute talk
 
@ircmaxell What's your target?
 
@ircmaxell what's your topic sir?
 
Normal attention span of an human being is only ~40 minutes.
 
Should string_starts_with($string, $starts_with), where $string = 'foobar' and $starts_with = '' yield true?
It would make sense that any string starts/ends with an empty string, correct?
 
3:40 PM
@PeeHaa plz to now we have 30%
@PeeHaa also 3k+ downloads this month alone :D :D
 
@Gordon What's the point of the example:
// valid, but $z is obviously superfluous here
public function __construct($this->x, $this->y, $z);
It breaks the rule "Method should either have body or be abstract" for no apparent gain, other than being able to avoid typing `{}`.
 
@PeeHaa because of our popularity we must phpoauthlib.com
 
@Danack the point of that particular example is to show how the shorthand ctors would handle property arguments and regular arguments even if the regular arguments are unused
 
But the other one does that:
public function __construct($this->x, $this->y, $z) {}
 
@Danack both do that. they are equivalent.
 
3:45 PM
Without making it possible to forget to implement a methods body.
Ok - but one's currently possible in PHP, the other seems like an additional thing that isn't actually required for the copying of ctor params to properties, except for being able to save typing {}.
 
@Danack both are currently not possible because PHP doesnt allow $this->foo as arguments
 
@Lusitanian Is that sentence available in english by any chance?
:P
@Lusitanian reg that shit
 
@Danack it's a port of how Dart does it. If you scroll up a bit it says it's two features. being able to use $this->foo and having methodless ctors.
 
:)
 
@Gordon ah ok.
@Gordon tbh I would love the automatic field initialization, but I don't see the benefit of methodless ctors. They could almost be separate RFCs, with the methodless one dependent on the auto-field initialization.
 
3:51 PM
@PeeHaa no. no it isn't (we need more than 30% code coverage)
@PeeHaa will later
 
@Danack It somewhat depends on how the comments turn out. The alternate syntax wouldn't be possible without a methodless ctor. Or maybe it would but that would require some extra thought. I have no problem with putting up the vote for the various suggested versions.
 
"how the comments turn out" I'm going to go out on a limb, and predict there will be a spirited and low-minded debate about that rfc.
 
@Danack yes :)
 
@Gordon It's almost worth leaving the methodless constructor in the RFC even if you don't particularly want it, so that you can 'compromise' by taking that out, and just having the auto-field initliazation as the bit that matters...
 

« first day (1074 days earlier)      last day (3874 days later) »