« first day (1780 days earlier)      last day (3158 days later) » 

7:00 PM
@Orangepill yes I know their usefulness, but I want to know can I use how many number of them in one page ?
 
@Sajad if you need to check 20 things then yes ... it is okay. there might be a way to structure your code differently but that would primarily be done to improve code clarity .. not for performance
 
aha, alright
 
2317 is an excellent number
 
@Sara so, actually the same than what I'm proposing?
 
@Sajad if you need to do something that requires you to check and branch code 150 ways then you are going to need a lot of if statements... there is no getting around that.
 
7:03 PM
@Orangepill "there is no getting around that" means that is ok ?
 
because that is what is needed to make your code correct. Forget about performance until after you have rightness established
@Sajad it means that it is necessary to establish the correctness of your solution so yes it is okay.
 
@Orangepill I see
 
@Orangepill Actually, there is, but whether it's a good idea to avoid it is highly debatable and use-case specific
 
I think, my afraid of using IF() statement was a mistake.
 
@DaveRandom I googled 2317 looking for some sort of relevance. It landed me here and now I'm probably on some kind of list. Thanks.
 
7:07 PM
@PaulCrovella Well I'm obviously not going to click that :-P
 
@DaveRandom I know ... I got accused of poisoning his mind by alluding to that.
 
I was just considering a case where I am required to set a precisely 4 digit PIN and trying to work out an uninteresting (= less predictable) number, and it turn out 2317 is quite interesting... with the digits arranged in that order, there are only 2 subsets that are non-prime (2, 3, 1, 7, 23, 17, 31, 317 are all prime, only 231 and 2317 are not, and the prime factors of both are composed entirely of 2, 3, 1 and 7)
 
that's ... not interesting ...
 
@Orangepill I must say I'm increasingly a fan of HTs of sub-routine ptrs, but I concede that in many cases it results in wtf code
 
7:14 PM
@JoeWatkins I admit it's likely more interesting to me because it's the last 4 digits of the phone num I had when I was growing up at my parents... I just never bothered to look at the number before
Also I think it is interesting, only in a very, very dull way
 
@DaveRandom Your childhood most have just been filled with friends!
:P
 
@PeeHaa ...hence why I never looked at the number. Now that only the numbers are my friends I have more time :-P
 
:D
 
can anyone explain why this page once you click on the save and update button it shows the wrong information
 
Because you have programmed it wrong
 
7:16 PM
@PaulCrovella I'm not going to watch that because I have the book mentioned in the description and have not yet read it
I do like numberphile in general though
 
All I did was take the same content from this page and put it inside a modal window. It works from destination_edit pages but from the modal it does not
 
@PeeHaa E_TINY
longstanding
 
@DaveRandom I think that's just a sponsor for the video.
 
and if I put the modal window on the destination_edit page it works there
@PeeHaa hmmm
 
mornings
 
7:22 PM
so I think its either not getting the correct id or something
 
@PaulCrovella No, the author of the book has presented a couple of them
So I guess just friend-plug rather than sponsor
But IIRC the back-cover blurb specifically mentions 82000
Related: I always wondered who stood to gain from these spams (also from said book, the part I have actually read)
/me crawls back under my rock
 
@benlevywebdesign your hidden trip id field has the destination id value in it .
 
@Orangepill yes I have that so that it would go together. On the non modal version of editing the destination all works fine
 
@Sara done \o/
 
@Orangepill wait...hold on
 
7:30 PM
Short Closures … now in discussion phase.
 
Abe
*FU MD
 
Ugggh too many pins
 
You cannot star your own messages < what I hate most about not being a room owner :-D
 
@Orangepill on the non modal version of editing it works just right so hmmm.
 
Abe
7:32 PM
@bwoebi why was it ~> and not something like ==> again?
 
1 hour ago, by Sara
@bwoebi Also, after much discussion, we'd probably prefer if PHP used its own syntax. Then we can keep ==> as we like it.
 
lmao at your response earlier. that's rich
 
the id should be 63 I linked to the wrong destination in the wrong trip
 
\o/ jizz operator!
 
@bwoebi for the record (ha!), DNS-over-TCP is a bad idea unless you are running a relay, and almost no-one supports it, and most servers I've found that do support it don't support interleaving, which just renders the whole exercise pointless IMO. My personal opinion is that DNS should have been fully integrated with IPv6, which would negate the need for any of this crap - IP frames are already fat, bloated and variable length
 
7:34 PM
@DaveRandom It's about truncated messages fallback
 
Allowing named dests instead of numbered dests at the transport layer would have significantly simplified local networking, the thing that the lay man needs to understand, without really hurting the wider world and providing new opportunities for more efficient caching
 
Abe
> Currently Hack has implemented shorthand anonymous functions using the ==> symbol to define them. The position of this RFC is that the ==> symbol is too similar to the => (double arrow) sign, and would cause confusion. Either through people thinking it has something to do with key-value pairs, or through a simple typo could produce valid but incorrect code. e.g.
fair enough
 
and DNS-over-TCP is a must for servers btw. (in some of the newer RFC, don't remember which one exactly)
@DaveRandom totally… but tell that these people at the ietf…
 
@bwoebi This is a poor solution, there are several backward-compatible extensions to the protocol that work around this issue without significant overhead, besides which IMHO as soon as you need >512b of data via DNS you are using the wrong protocol
DNS is for low-level discovery, not AL-level extensions
SRV records were a bad idea
(IMHO, YMMV, etc etc)
@bwoebi It's a must for intercommunication (server-server) but not for anything else
It's like the dhcpd failover thing, it works in that very narrow use case, but it's not for clients
You'll end up with idiots trying to do renews over TCP or something
 
@DaveRandom you're talking about AXFR? yeah. But I mean some RFC in the 5xxx range made TCP obligatory.
yeah, DNS having TXT, SRV, TYPE257 and whatever weird records… yeah, can't do anything about that.
 
7:39 PM
@bwoebi Zone transfers are a whole different ball game, I'm really not sure why anyone thought that could be shoe-horned in to the same protocol that client lookups use
Hindsight 20/20 etc, but it's another one of those things like SMTP that I don't understand why it was allowed to get this far
 
I have no new feedback on the short closures RFC.
 
I went a symposium entitled "The internet is broken, who's going to fix it?" once. The conclusion was essentially "I don't know, but I hope someone does".
 
@LeviMorrison yeah, you don't… but it never was discussed on internals before.
first time on internals now.
 
I know. I was just doing my due diligence and I reread it.
Had nothing to report.
 
Okay, great :-)
 
7:41 PM
Actually…
You used the phrase "type hint" in there.
 
haha
 
Boo! Bad form!
Bad form!
 
@PeeHaa Why is the shrug operator not linked here?!?!?!?!?!!!!!oneoneoneleven
 
I recommend you do a RFC whether to call it typehint or whatever^^
 
@bwoebi I searched the page for "sperm operator" and found it nowhere. Not acceptable.
 
7:43 PM
@DaveRandom that word will appear after RFC vote passed.
 
@DaveRandom It's a "spermatazoon."
 
@bwoebi Is it possible to set up redirects in wiki. so that you could share the URL but redirect to wiki.php.net/rfc/sperm-operator?
:-P
 
@DaveRandom feel free to do that, I won't revert :-D
 
Those examples in the RFC really look terrible imo
 
7:46 PM
@PeeHaa Aha?
 
@PeeHaa Some of them are lifted from actual code.
 
return $initial ~> $input ~> {
O.o
 
Yes. That one.
I know because I wrote it.
 
That doesn't make it look less horrible :P
 
Once you know what ~> does it makes it easier.
 
7:48 PM
Maybe I need to get used to it
 
That goes with just about every library or syntax change.
 
But initial jizz input jizz block looks strange now I see it
@LeviMorrison Yes to some degree
 
It's like chaining map, reduce and filter together. If you don't know what those terms mean it's probably harder than if you had the for loops, but if you know what they mean it's significantly easier and faster.
 
faster?
 
Faster to read and understand.
 
7:51 PM
As said. I strongly disagree for now
 
You think reduce, map and filter make code harder to read?
 
No
The new syntax is
I think I will just clone the thing and check it out
 
What's wrong with my mySQL?
$sql_update_profile = "
UPDATE profiles
SET profile_pic=?
WHERE user_id=?";
$stmt = $db->prepare($sql_update_profile);
$stmt->bind_param('ss',$target_file,$_SESSION['id']);
$stmt->execute();
 
@PeeHaa need to rebase the impl…
 
@Matthcw I don't even know where to begin
 
7:52 PM
@PeeHaa You should have some Haskell in your diet :D
 
haha
 
@LeviMorrison lol
 
Its simple though Peehaa
It says the query is a non object
 
@Matthcw Your $db variable probably isn't an object then.
Read the messages carefully.
 
No, i have another query at the top, it works
But now this one doesnt
Wait...
 
7:54 PM
Damn. Twitter is a piece of shit. That thing is just sooo freaking slow
 
Abe
@bwoebi have you considered making it:
($x, $y ~> { return $x * $y * 2; })
it is nicer to read but i don't know if it's any harder to parse, or something
 
@Matthcw Again, read the message carefully. It's not like PHP lies about what error it hit.
 
Its because I didn't $stmt->close(); the connection
 
Abe
or, have both syntaxes
 
in the prveious query
 
7:55 PM
Hmm.. where does buy .com domains without getting f'ed over?
 
Thank God I fixed that!
Guys
 
namescheap?
 
For my socialnet work what's a better domain
socialnetw.work
OR
sociialnet.work
 
@Abe I haven't.
 
@RonniSkansing It's a fucking record in some database. You are fucked over everywhere :P
 
7:56 PM
lol
 
@RonniSkansing I just use Google Domains.
shrug
 
@RonniSkansing I use name.com, but namecheap is fine too
 
@LeviMorrison bah =]
@PaulCrovella thanks [=
I just did not want to hand my friend over to something like godaddy
heh
 
I know it's invite only… but I don't see anywhere that indicates I have invites.
So I guess I don't have any.
 
@LeviMorrison I don't think it is invite only
 
7:59 PM
It was initially, anyway.
 
I'm trying to "manage domains" but I get a WSODish :P
> We're sorry. You appear to be in a country where Google Domains is not yet available.
That's just lacist
 
Well screw you then, non-American.
 
:D
 
Google doesn't need your worthless non-American dollars!
 
lol
 
8:01 PM
@PeeHaa lrn2liveinarealcountry
 
WHat is an area l country?
 
@bwoebi what about actual closures without use ()?
 
        $session = $this->getMock('CodeCollab\Http\Session\Session');
> PHP Fatal error: Class Mock_Session_a9c9829d contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (CodeCollab\Http\Session\Session::unset) in
When I rename the unset method it works
When I try to isolate the problem in a simple test case the bug is gone
Thanks Werner Heisenberg
 
@Orangepill That is correct, my hidden trip id field should have the destination id. Changing it to id instead of tripinfoid on the non modal version, it still works correctly.
 
@Ocramius technical problems. Had tried, had failed.
 
8:05 PM
@bwoebi trying to discover variables => messy?
 
@Ocramius the problem is the sharing of the compiled variables.
 
@PaulCrovella It should work fine?
Isn't that what was improved in 7?
@bwoebi ^?
I can haz unset method rite?
 
@PeeHaa right. in PHP 7 it's even harder with all these IS_INDIRECT.
it was perf-improved and less indirection.
Less indirection means that sharing is now basically impossible.
> Not very constructive, but: THIS.IS.SO.COOL! ~ Lars Strojny … I like that comment^^
 
guess I missed context
 
8:10 PM
@bwoebi I was asking about being allowed an unset method :)
 
@PeeHaa yes
@PeeHaa now you can clone… rebased the branch on top of master.
 
@bwoebi tnx
 
not a lot of conflicts, was a nice rebase^^
the major change was having to change ParseException to ParseError ^^
 
Damn you @Trowski :p
 
?
 
8:18 PM
I blame him for everything like that
 
Pssh, that should have been just find-and-replace.
 
I have a button instablame
 
 
@Sara lol, that's animated
(and thanks :-))
 
@bwoebi Yep :)
 
8:18 PM
@Trowski Nice lurking :P
 
LOL
@bwoebi nicely done.
I guess is it time for the next batch of RFC's?
 
@ircmaxell Yeah, looks like that.
 
@PeeHaa I always have this chat open. Just depends if I'm actually at my computer or not.
 
OK, I will finally get around to my unified autoloader rfc while at PHPNZ
 
We're going to have a separate master branch in about 3 weeks… so then we can also merge our things.
 
8:20 PM
@Trowski :-)
 
very cool
 
It's somewhat funny… always… in the minutes after Anthony retweets me, I'm getting a flood of more retweets… Anthony is too popular :-D
 
Just read the rfc, looks really well thought out. Nicely done @bwo
 
@ircmaxell great, looking forward to play with that
 
8:22 PM
@bwoebi The @ircmaxell bump is awesome.
 
I think I remember seeing the autoloader one ...
 
@ircmaxell I believe some credit goes to @Danack for helping me a bit lot with writing it.
 
@JoeWatkins yeah, it is written mostly, just needs cleaning up and finishing, a lot of undefined behavior in it
 
@ircmaxell Don't know, but do you have a current (public?) draft of it?
 
@bwoebi well, nicely done @bwoebi and @Danack
 
@bwoebi iirc, yes on wiki. Has been a while tho, and am not sure how updated it was with the patch...
 
that old withdrawn one? ok
 
/tips hat to @bwoebi
 
@Abe that's the idea, but a bunch was changed. Example, only a single cb->type mapping is allowed, no more switch.
 
the best rfcs are ones that you would have to be idiotic to argue against ... great job chaps ...
(there will probably be idiots)
 
8:27 PM
@JoeWatkins (the only issue)
 
oh, just saw the short closures rfc. Great job @bwoebi :)
 
You're thanking me so much, I get the impression it's the long-awaited salvation for you ;-D
(Just not used to being thanked that much ^^)
 
@bwoebi perhaps an example of a nested short lambda to show the parsing rules?
 
@ircmaxell there is one?
 
@ircmaxell there is
 
8:30 PM
There is?
 
@ircmaxell partial application section
 
I blame my lack of coffee
Currently having breakfast...
 
@SebastianBergmann ping
 
@ircmaxell isn't it pretty late for breakfast, even for you?
 
@ircmaxell you're in south island first? Presumably queenstown?
 
8:32 PM
I have question. For getting language values I sue array. But if array value has not been isset how I can make it to show error: There is not such array value?
Hello people
 
@CavidKərimov test for it not existing first - php.net/manual/en/function.array-key-exists.php
 
@CavidKərimov You want to check whether an array key exists?
ah shoot
 
yes check array key
 
@Danack north island
 
@ircmaxell I blame your timezone :-)
 
8:34 PM
@FlorianMargaine I am in New Zealand right now
 
@ircmaxell oh :-)
welcome to the future
 
Yuo
 
@bwoebi is this phpdbg segfaulting here and is that normal?
 
hmmm
a wild generics RFC appeared...
 
Who's up for getting algebraic types into 7.1?
 
8:41 PM
@PeeHaa segfaults usually aren't normal^^ need to clone and look into it…
 
@bwoebi hehe thought so :-)
 
Abe
@Ocramius or they get implemented right, or i'm fine without them :P
 
@Ocramius that is still in draft....and someone posting stuff to reddit that is just a draft is a dick move in my opinion.
 
@Danack oh, I wasn't looking at reddit
I was looking at the ML
 
Abe
also they must be designed in conjunction with mixed types: class Foo<T1 is A|B> etc
 
8:44 PM
@ircmaxell hadn't @LeviMorrison planned to go into this direction with union types etc.?
 
Abe
and with full variance support
 
can I use it with foreach to check all array keys in one hand ? not one by one? for example : foreach($array as $key => $value) { if(!array_key_exists($key) { echo 'key doesnt't exist'; }
 
@Abe this is stuff you should bring up in the RFC as it is a Request For Comments
 
Abe
yeah :D will shake my rolling pin in the air whenever needed xD
 
@Ocramius .....oh wow. that still is so not ready for discussion on ML....
 
8:47 PM
@Danack yup, but @DASPRiD has no extended experience on RFCs, I suppose :)
 
Abe
poor guy
 
@Abe ?
 
@Ocramius the last RFC I wrote was like… 4 oder 5 years ago for ZF? ;)
 
Abe
@Ocramius lot of effort will be wrecked by internals negativity :P
 
Guys
How can I resize an image while uploading it?
 
8:50 PM
    - defuse/php-encryption v1.2.1 requires ext-mcrypt * -> the requested PHP extension mcrypt is missing from your system.
    - defuse/php-encryption v1.2 requires ext-mcrypt * -> the requested PHP extension mcrypt is missing from your system.
^ @PeeHaa … can't install that thing… no such ext on php 7
 
@bwoebi you're lazy :D
 
@FlorianMargaine hm?
 
@LeviMorrison (warning: possibly contentious opinion) actually yes, in many of the cases I've seen it it. I realise it's usually the programmers fault and not the construct, but a often I see these things in O(scary) constructs where a simple loop would have been both more readable and more efficient. Also as a general rule I go for readability over efficiency, but the unnecessary, highly inefficient use of callbacks still bothers me a lot.
Basically unless the code accepts a user-defined callback I generally avoid such constructs. I'm not saying it's better/right/whatever and maybe I'm "stuck in the past" etc but I just don't think these things are inherently more readable than simple loops in the general case.
 
(not extracting in a function)
 
May be seen as trolling but not intended as such
 
8:51 PM
@bwoebi Works for me?
 
@FlorianMargaine hehe… excuses ftw :-D
@PeeHaa are you using php 5 to install?
 
Wow I can't type, sorry
 
No 7?
PHP 7.0.0RC1 (cli) (built: Aug 20 2015 12:42:50)
Copyright (c) 1997-2015 The PHP Group
Zend Engine v3.0.0-dev, Copyright (c) 1998-2015 Zend Technologies
    with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2015, by Zend Technologies
 
okay… I was sure mcrypt was removed from tree for 7.
 
It's in modphp iirc
 
8:53 PM
it's still in tree, I just was confused…
 
:)
 
@DaveRandom I only use user-defined callbacks.
In some languages you don't even pay abstraction costs.
(PHP is not one of those languages)
 
I could try to create a clean and isolated branch for you and check whether it still segfaults if that makes your life easier? @bwoebi
 
@LeviMorrison C++ is the only language I know that boasts of this feature
 
@FlorianMargaine Probably every functional programming language.
Probably D and Rust as well.
 
8:55 PM
@PeeHaa yeah… please. I'm not even having libmcrpyt installed on my mac…
 
k. Hold on
 
@DaveRandom I see filter -> map -> reduce all the time. You can often do two of those in the same loop without it being too difficult to read, but when you try to do all three it sucks (but is doable).
So part of it is how much they are used with each other.
If you have one single map with nothing else I don't care too much, you know?
 
@LeviMorrison I meant unless the public API I'm creating accepts a user-defined callback, and yeh while I try to forget the still-limited amount I know about internals when writing userland PHP it's difficult to change hats like that, I imagine that a lot the mental wall I've put up is reinforced by that inherent cognitive bias
 
I use array_map all the time... much cleaner than $arr = []; foreach () { $arr[] = ; } imho
I might have too much influence in other "functional" languages though
 
filter/map/reduce is definitely a case where I'd almost always sacrifice some efficiency for readability, usually I'd want to combine filter and map though because in my mind they are part of the same op
 

« first day (1780 days earlier)      last day (3158 days later) »