« first day (2244 days earlier)      last day (2704 days later) » 

9:02 AM
@JayIsTooCommon Nope. I've been a couple of times to their neighbors though. heineken-music-hall.nl
 
Anonymous
eh sold out
 
Anonymous
thought viagogo are offering
 
@JayIsTooCommon Are viagogo those asshole that buy up all tickets and resell them for premium prices?
Also damn I want to go to ultra festival
 
Anonymous
@PeeHaa I think so :/
 
@Valentincognito I've been to both before. I'll end up at both again I imagine but probably not for a few months.
Kamsamneda (sp) -_-
 
Anonymous
9:11 AM
hoi fappenin
 
Ahoy
 
reddit.com/r/PHP/comments/5gpyab/… ... I tried. I shouldn't have.
 
Always try @tereško, it's more amusing for us.
 
Hola
 
9:15 AM
@tereško /r/php is just a Larashit fest, they're beyond help. Just look at how many upvotes Taylor asshat gets when he says something opinionated
 
posted on December 07, 2016

New Cyanide and Happiness Comic

 
We are all guilty of circle-jerking about certain things.
 
@Fabor I keep seeing that term but never understood it :)
 
Anonymous
!!wotd
 
asomatous: having no material body; incorporeal.
 
9:19 AM
@Jimbo you literally just did it with the word "larashit" :-P
 
@DaveRandom So taking the mickey out of something?
 
@Jimbo Laravel users defending laravel blindly is a good example. Basically bandwagon'ing.
 
Ahhhh, ok
So I hate bandwagoning, but I'm guilty of.. bandwagoning against a certain bandwagon?
 
urban has a definition for it, but also a naughty one too.
> When a bunch of blowhards - usually politicians - get together for a debate but usually end up agreeing with each other's viewpoints to the point of redundancy, stroking each other's egos as if they were extensions of their genitals (ergo, the mastubatory insinuation). Basically, it's what happens when the choir preaches to itself.
 
Also for the record if you defend a framework blindly, regardless of which framework it is, you are automatically an asshat.
 
9:23 AM
I hate Ticket Sales. I hate hate hate them. Sold out within seconds and then tickets appear on Ebay and other portals for double the price. This is just ridiculous and annoying. Greedy ffs!!
 
@Gordon What tickets?
 
@Jimbo Guns n' Roses
 
@Jimbo @Fabor Yes but also the other side of bashing it blindly. And not necessarily blindly - sometimes people come in here and ask a question about laravel or whatever and the response they get is "lol y r u using that shit" and not a lot of explanation. Sure there may be good reasons and sure sometimes one may not have the time to explain, but to an outsider it looks like we are basically an exclusive club and unless you share our world view you are not welcome in it.
 
Anonymous
@Gordon Are you still using/recommending docker or there something better?
 
9:25 AM
it's not just about blind belief, it's about how you behave towards others who don't share your belief
really it's about inclusivity vs. exclusivity
 
Anonymous
I've been away from my pc for a couple of months
 
23 hours ago, by DaveRandom
@AlexanderSolonik Laravel promotes bad coding practice in many ways. As a result, none of the regular users here are particularly familiar with the framework and it's standard library.
 
Wes
can rfcs target patch versions rather than minor versions? if not, why?
 
Hello i'm new to PHP.

Array
(
[0] => 2016-09-01
[1] => 2016-09-02
[2] => 2016-09-29
[3] => 2016-10-30
[4] => 2016-10-31
[5] => 2016-11-01
[6] => 2016-11-12
[7] => 2016-11-30
[8] => 2016-12-02
[9] => 2016-12-04
[10] => 2016-12-04
)

How can remove the Duplicates month from array?

Answer should be :

Array
(
[0] => 2016-09-01
[2] => 2016-10-01
[3] => 2016-11-01
[4] => 2016-12-01
)
 
Anonymous
I feel like I have missed some things
 
9:25 AM
And it's something you see literally everywhere, from literally everyone, it one form or another
@Jimbo I'm not saying I don't do it as well
 
:-)
 
!!docs array_unique
 
[ array_unique() ] Removes duplicate values from an array
 
@JayIsTooCommon I am very angry right now. The first tickets already appeared in "Fan Sales portals" while I was still trying to get regular ones. Frigging FFs ruining it for people who actually want to see a band just for some quick cash.
 
 
9:26 AM
@Jimbo Although also that specific message was very explicitly an attempt to give some kind of explanation rather than just "lol u suck go away"
 
oh sorry scratch that
 
@DaveRandom I haven't said you suck go away
 
!!docs array_filter
 
[ array_filter() ] Filters elements of an array using a callback function
 
In fact I've literally said you're unlikely to get some help in here
 
9:26 AM
@SalihMohamed ^^ that should do what you want
 
Wes
i'm slow, yeah. what peehaa said ^
 
@samayo depends on for what.
 
@Gordon Maybe they should ban resale.
 
@SalihMohamed You want the days to all change to 1?
 
thanks will see
 
9:27 AM
Oct 9 '15 at 9:48, by Jimbo
@Aditya Sorry, it's unlikely you'll find help on CakePHP, CodeIgniter or Laravel in here
So, I'm reaching far back there
But still
 
@Fabor but how? it would just move all sales to black markets.
 
Confirmation bias all the things
 
@Gordon bind it to the person
 
@Alesana yes i want to change the day to 1
 
@Jimbo No, but it's the impression people get from unqualified statements like "We don't do laravel here". Specifically the "we" part - "we are in an exclusive club, one in which you are not welcome" - that may not be what is intended but it is the impression that some people will get.
 
9:28 AM
@Gordon Associate them with a name and provide ID on entry. At least maybe restricting a set of tickets for this. Allow some for resale.
 
I'm not having a go at you specifically here either btw @Jimbo
 
Anonymous
@Jimbo I think you're a prick <3
 
@PeeHaa that's only effective if you also check the ID at entrance. Not doable for a 60k stadium. /cc @Fabor
 
It's a problem for literally every human in some area of their life.
 
@Gordon Sure it is
 
9:29 AM
@Gordon Are tickets scanned?
 
IDK
 
Well I was only thinking a portion of the tickets anyway. Not all.
 
@SalihMohamed They are strings in the array or actual dates/datetimes?
 
Anonymous
@Gordon yep frustrating and you end up having to trust a non-official
 
@Fabor Yes
 
Anonymous
9:30 AM
@Gordon Still for web development.
 
eTickets maybe, tie it to the phone.
 
@Alesana it's strings
 
Anonymous
Vbox seems old to me now
 
24 hours ago, by Alexander Solonik
anyone using laravel here
24 hours ago, by Valentincognito
I do sometimes but I am afraid to say it here ^^
24 hours ago, by Valentincognito
ppl throw rocks at you if you do
 
@samayo I'd still favor Vagrant as a dev machine. I use Docker for my PHP build chain and Dockerhub for everything I want to quickly test because it has docker images for almost everything. Some people are moving away from Docker to rkt currently. And our devops people curse Docker a lot.
 
9:32 AM
that's what I'm talking about @Jimbo ^^
 
@kelunik Go on.
@kelunik I will be interested if you have a solution to my problem described here chat.stackoverflow.com/transcript/message/34452281#34452281
 
gut moaning
 
morgen
 
Believe it or not, has functions. It's not Java. You don't need an interface for everything. And nobody needs a leaky interface. reddit.com/r/PHP/comments/5gpyab/…
 
@DaveRandom I would say that people more often throw shit at users, who ask "anyone using X here" and then wait till someone answers "yes"
 
9:34 AM
@DaveRandom That's one person who's just complaining
In fact... relevant tweet...
 
Anonymous
@Gordon rkt? And good to know btw. I thought it was the other way around. As in people choose to use docker more than vagrant.
 
There'll always be people "attacking" your language choice. If this upsets you then you really need other stuff happening in your life #php
 
On another side note: GoDaddy bought the Host Europe Groupm which means I need to find a new hoster. A good reason to look into Lightsail
 
^^ I seriously believe this
 
@tereško That is also true. It's also a simple fact of life that tight-knit groups of people are often exclusionary to outsiders, it's primal. It's not something that anyone can simply "not do".
 
9:36 AM
@QuolonelQuestions I don't have time to browse through the code currently. What's the exact issue?
 
s/language/framework or s/language/any-life-choice
 
I'm not proposing a solution here, merely inviting people to reflect on the fact that they may sometimes appear more hostile than they mean to be, like I sometimes do, like everyone sometimes does, because it's a primitive facet of humanity.
 
Anonymous
^
 
> like I sometimes do
I call bullshit
 
OK fine s/sometimes/always/
 
9:37 AM
I thought more the other way around :P
 
Anonymous
Yeah you're a nice guy @DaveRandom, now employ me
 
@samayo Docker has a different usecase than Vagrant. The idea of docker is to have one service per container, e.g. one Nginx container, one FPM container, one MySql container and then you deploy these independently. This allows you to treat, increase, maintain them without disrupting operations of the others.
 
@SalihMohamed I would just remove the end two characters from each element, then add 01 to the end of each element, then use array_unique();
 
@PeeHaa No I can definitely come off as an asshole, often down to the fact that "friendly sarcasm" does not come over well on the internet
 
Anyone actually doing the AoC stuff?
 
9:38 AM
for ($i = 0; $i < count($dates); $i++) {
	$newdates[$i] = substr($dates[$i], 0, -2) . '01';
}
$result = array_unique($newdates);
Something like that
 
@JayIsTooCommon Dude did you even apply for trv?
 
@Fabor yes although I'm behind, will catch up today though
 
@samayo But there is nothing wrong with having a monolith and most php apps are monoliths, in which case vagrant is the easier choice.
 
Anonymous
@Jimbo The only job they had looked like an IT role, also Spain
 
Anonymous
maybe we should have a !!pin
 
9:39 AM
I think there is a !!pin
 
Thank you -.-
 
This could trigger another purge.
 
9:40 AM
 
There made room for you @Jimbo
 
Called it
 
Funny :-P
 
:D
 
:-P
 
9:40 AM
 
Anonymous
@Gordon hm.. I say they both need some trying. It seems like docker is easier so I will try that first.
 
@samayo docker is definitely not easier because microservice architectures are not easier
 
@Jimbo we have thus far deliberately not allowed non-ROs to do RO things with the bot for (I think) obvious reasons
There are specific functions that can pin things
 
trivago is hiring junior-mid-level, but you have to be willing to learn + want to live / work in Mallorca! Message me if you apply :-)
8
 
but e.g. !!repin is RO-only
 
Anonymous
9:42 AM
I think !!undo should maybe be an exception
 
All types of people? Even goats?
 
@Jimbo Sounds like something for @JayIsTooCommon?
 
@samayo don't get me wrong though: I like Docker. For my usecases it's a good choice. But my usecases are very specific.
 
@Jimbo I would request that you see if you can trim this down to something that doesn't get truncated (for UX reasons only)
 
@JayIsTooCommon We're not just hiring 'IT people' I promise :) What gave you that impression?
 
9:43 AM
@Jimbo how much do you get per referral?
 
Anonymous
@PeeHaa spain :( I have dogs, this girl thing + family
 
Anonymous
@Jimbo Maybe I was on the wrong page, one moment
 
Fuck them all. Only the dog is important
 
@Jimbo you cannot afford me
 
@Gordon Senior is 2k, junior / mid level between 800 - 1.5
No, we can't afford you @Gordon :(
 
Anonymous
9:44 AM
@Gordon Well, I will go with vagrant then. I hate the fact, I still need to use Vbox to use vagrant (if memory serves me right)
 
Anonymous
@Jimbo I'm in. I actually applied at the beginning of this year, still have copy of motivation letter. I'm interested.
 
Anonymous
@Jimbo out of interest, what's the salary?
 
But you have to be willing to work with Jimbo*
:P
 
When I can join ? @Jimbo :p
:D
 
@JayIsTooCommon Can't discuss that, but really you have to look at the cost of living over here (33% less than Manchester, UK) and it'll be low compared to what you are used to
But good because the salaries over here are really low
 
9:46 AM
@JayIsTooCommon btw you wouldn't want any jobs I could offer rn
 
@samayo you can use Vagrant with LXC if you are on Linux, but it's a hassle to get it to work.
 
@SalihMohamed Let me know if the code worked for you!
 
i.e. no dev jobs
 
@samayo Did you apply via that link?
 
@Jimbo do you sing german party songs at work?
 
Anonymous
9:46 AM
@DaveRandom back to selling my body
 
@Patrick No but we sing happy birthday to people when it's not their birthday
 
Anonymous
@Jimbo Aye mother Jay lives in Spain, it's a lot cheaper
 
@DaveRandom Nice that you clarified job type. Is there another kind of job he may want you can offer?
 
@Jimbo none of this?
 
cinema time
 
9:48 AM
@Fabor Unlikely, they are basically just IT apprentice positions, would be a step down in every way I think /cc @JayIsTooCommon
 
Anonymous
Aye, that's what I did at 16 and it was the worst
 
Anonymous
yesterday, by JayIsTooCommon
I don't miss IT support, hated it
 
Anonymous
@Gordon yeah, it doesn't sound simple. Maybe I should just use it with Vbox and after some confidence builds up ... I will experiment with it.
 
@JayIsTooCommon Yeah, it'd be hard for you then. I only had family and it's 2 hours away so I can go back every few months
 
Anonymous
@Jimbo Nope. I found the ad in indeed.ch
 
9:50 AM
@Patrick No, but they paid 3 mil to send everyone to Ibiza a few months ago (just before I joined, dammit) for 3 days of free non-stop partying ;)
 
@JayIsTooCommon I will let you know if anything comes up though. Although obviously it would require you being in Manchester (which IMO is not a bad thing).
@Jimbo Did the Vengabus actually turn up? Was everyone jumping as advertised?
 
Anonymous
@DaveRandom cheers, mancs are gross but always up for options. Pay down here is utter ball bags
 
You're gross. Your face is gross.
 
Hello why the ajax not loading the svg elements from one page to another?
 
9:53 AM
@RAJMOHAN That's a front-end problem, ask in the Javascript room
 
@DaveRandom Buses for everyone, and not one person knew where they were going until they got there. They even made an app for the whole thing and have event planners working on the yearly event year-around
@DaveRandom You're not being friendly enough you are a horrible person who throws rocks at people
:D
 
But what about the jumping??
 
@Jimbo I know the cost of drinks at the Ginbo bar. And that's not cheap!
 
@Gordon Oh dude I meant to ask you, can you remember the name of that tapas place where we had the best tapas ever?
 
@Jimbo the one where I had to put napkins in my shoes on the way back?
 
9:55 AM
@Gordon Yeah that one!
 
@Jimbo I'll find out for you
 
Awesome, thanks
 
@QuolonelQuestions You have to turn all imports into promises and map them as soon as each promise succeeds.
 
At this point you're just parroting @bwoebi
You're not wrong, but the issue is also with the plumbing
I don't want to be tightly bound to some library's custom networking protocol implementations
 
9:58 AM
@Alesana it's working thnks
:D
 
@QuolonelQuestions That's just how it is.
 
Wes
i hate gmail. i hate newsgroups. i hate myself. i thought i deleted the quoted message but i didn't. and i quoted it below my answer. can i delete messages from news.php? :B
 
And that's why it's unusable in its current state
 
@QuolonelQuestions Then no chance. The interop specification is not complete yet. github.com/async-interop/promise
 
@SalihMohamed Anytime :)
 
9:59 AM
While that effort is noble it still doesn't solve the problem
Async support CANNOT be satisfied by userland solutions
 
@QuolonelQuestions Well, currently you're tightly coupled to PHP's file_get_contents, no?
@QuolonelQuestions Why not?
 
Right, but I am more than willing to switch out to fopen if I need to watch resoruces
Unfortunately I cannot, I can only watch raw sockets, which is impractical
 
@Alesana do u know the function for getting the number of days from given year and month?
 
@QuolonelQuestions fopen is just the same as file_get_contents here.
 
10:01 AM
@SalihMohamed Like, 30 or 31?
 
yah
@Alesana yes
 
@SalihMohamed If you google "function for getting the number of days from given year and month" just as you asked me the first result would be the function :)
 
@Gordon Perfect, thanks. Now I need to see if it was the best tapas I've ever had because I was drunk, or because it actually was ;)
 
@Alesana i got days_in_month($month, $year)
 
10:04 AM
@Jimbo how do you intend to this? you are always drunk. even when sober… oh wait… that was @PeeHaa.
 
@SalihMohamed cal_days_in_month
 
Wes
@brzuchal i dislike that. they are hard to test
 
cal_days_in_month(CAL_GREGORIAN, 8, 2003);
 
@Gordon Yeah don't confuse me with that guy he's always smashed
@PeeHaa You are an actual waster
 
Wes
but most importantly i would totally hate having 2+ classes in the same file, even if they are bound to work together
 
10:05 AM
\o/
 
<3
 
morning
@Wes dislike what exactly ?
 
Wes
\o
 
o/
 
@brzuchal Clean code is not to be underestimated - I find, for me, it provides motivation :)
 
10:09 AM
In other languages (read Java) there is access to declaring class instance inside inner classes also, so this is not smth new
 
Wes
"private class" what's the point of making a class private? you make the constructor private (as in, private to another class, a namespace, etc) and you don't pass the instance around
 
@QuolonelQuestions So what's the reason why it cannot be implemented in userland?
 
@Wes it provide encapsulation
 
Wes
class Person{
  private interface Name{}
} @brzuchal if i have an interface at least i want to be able to do
function bar(Person::Name $name){}
 
Applied @Jimbo
 
Wes
10:13 AM
"private interface" is almost comical to me
 
@Akshay Cool, do you have a linkedin?
 
@Wes where that bar() function exists ?
 
Yes
I mentioned there! @JIMBO
 
Wes
@brzuchal doesn't matter where
 
@Wes those inner classes are possible to pass around outer class instance, not enywhere outside declaring class
 
Wes
10:15 AM
if you want private objects then you don't pass them around
 
you can type hint with public/private inner class only inside declaring class
 
@kelunik Because it is unreasonable to expect developers who want to harness async functionality should be relegated to low level socket programming
 
@Akshay You should at least put a pic on your linkedin ;)
 
this what you're describing is called nested class and in other languiages (read Java) they're declared as static and sure then can be type hinted anywhere outside
 
> I am specifically targeting jobs that will allow me to apply my skills in Android Development and PHP.
 
Wes
10:17 AM
@brzuchal what happens if you pass the instance around?
 
We don't do android bro
 
@kelunik And furthermore it's unreasonable to expect developers and users to rely on third-party implementations such as Artax
 
Wes
class Foo{
   private class Bar{}
   function getBar(): Foo::Bar{ return new self::Bar(); }
}
 
I haven't personally used Artax and I have nothing against it, but I dislike it in principle, because, at the risk of sounding like a complete tosser, it's not "enterprise ready"
 
@QuolonelQuestions PHP isn't enterprise ready
 
10:18 AM
By which I mean it has not been put through its paces like the HTTP wrapper in PHP
 
@QuolonelQuestions That's why libraries exist. It doesn't matter if it's implemented in core or userland.
 
@Wes if you pass instance outside class and it was private then access to it should raise fatal error, in other case when class was declared public nothing happens - you're using it exactly as anonymous class right now
 
@QuolonelQuestions Why is that unreasonable? Using composer libraries is just normal.
 
It absolutely does because millions of people use PHP's stream wrappers and lots of bugs have been fixed along the way
Almost nobody is using Artax and so it remains highly likely, given the complex nature of HTTP communications and socket programming, that bugs exist
 
@QuolonelQuestions Should we add some more projects.haykranen.nl/java?
 
10:19 AM
OK this discussion is done
Thanks for your input
 
Wes
@brzuchal but why? it doesn't make sense to have such a thing to me...

class Foo{
private $Bar = class implements Bar{};
function getBar(): Bar{ return new self::$Bar(); }
}
 
@QuolonelQuestions That's a bit harsh
 
@Wes self::Bar is same syntax as contants, that's why I was whinking about self\Bar it's analogus to current naming convention
 
I'm going to use "this discussion is done" when I fancy being an asshat too
 
@QuolonelQuestions Sure, and those bugs will be fixed. Just like PHP source has bugs.
If a userland library has bugs, it's way easier to fix. Not only because it's written in PHP instead of C, but because it can be updated using a simple composer update instead of a php-src update.
 
10:21 AM
Can anybody help me to limit sftp access to /var/www ?
 
@Wes private inner classes are not designet to pass them outside, they're made to deal in internall stuff
 
Wes
@brzuchal you are confusing where you store the class with type visibility (which is pointless to have imho, at least in php)
 
@QuolonelQuestions Just because I made a joke?
 
I tried this: https://bensmann.no/restrict-sftp-users-to-home-folder/
but it didn't work :(
 
how we send email in php with attachment?
 
10:21 AM
@Wes inner classes in my concept can exists only with instance of outer class
 
Wes
@brzuchal but if they are meant to deal with internal stuff, why would one pass them around? you just don't do that...
 
Jimbo ninte achan nte achanode parayade patty Thanku@Jimbo
 
@RAJMOHAN English please
 
Thanks
@Peeha how are you?
 
10:23 AM
@Wes I don't get it, why cannot pass them around inside parent class? It's my internall stuff I can use it in my private/protected methods as I want
 
Wes
@brzuchal so you want a class X that must not be used outside of Y. Y can simply not have a public interface that returns X instances and encapsulation would work just fine without having "private class"
 
@Wes private is a kinda guarantee that nobody who will extend my Y class won't return somehow instance of X class.
 
Day 7 done! (Solution spoilers)
 
@Sean That's a lot of code!
 
Wes
if a class X can't be constructed from the outside, why php should care of checking that X's members are accessed by the correct scope? @brzuchal
 
10:31 AM
@kelunik Yeah, I just like splitting out what i'm doing :P
 
Is there a way in PHP to do if (($a && $b) || ($c && $d)) {}?
 
@Sean I still have to complete part 2, have a regex error somewhere.
 
@Alesana Have you... tried it?
 
@PeeHaa Ha.. I didn't think it would be literally that code I only wrote it that way to try to explain what I wanted to do
 
Yeah, I ran into a problem with part 2. I ended up using lookaheads instead of direct matches because abab was only matching aba and not bab
 
10:32 AM
@Wes same situation with PPP scope which PHP can deal with
 
Regardless whether you did or didn't think it would work you should try things yourself either way before asking for help
It makes you a better person/developer
 
Still, today I learned how to use regex back references, so it's all good
 
Wes
12 mins ago, by Wes
@brzuchal you are confusing where you store the class with type visibility (which is pointless to have imho, at least in php)
 
11 mins ago, by RAJMOHAN
Jimbo ninte achan nte achanode parayade patty Thanku@Jimbo
Something something anchovies and beef patty payday
Mhmmm
 
!!en ninte achan nte achanode parayade patty
 
10:34 AM
ninte achan nte achanode parayade patty (translated from English)
 
Well that was good
 
Wes
lol
 
lol jeevs
 
I think it's auchan not achan
 
!!? exorcism
 
10:35 AM
Search for "exorcism" (https://www.google.com/search?q=exorcism&lr=lang_en)
• Exorcism - Wikipedia - Exorcism is the religious or spiritual practice of purportedly evicting demons or other spiritual e… (https://en.wikipedia.org/wiki/Exorcism)
• Exorcism in the Catholic Church - Wikipedia - Exorcism in the Catholic Church is the use of exorcism in the Roman Catholic faith for those who ar… (https://en.wikipedia.org/wiki/Exorcism_in_the_Catholic_Church)
• 9 Real-Life Cases of Exorcisms and Demonic Posses… - The Missouri home where the exorcism of Roland Doe took place. Want more creepy storie
 
Maybe that ^ one is more related
 
@PeeHaa Thanks for the advice, I had a similar if statement and it was giving me a syntax error it must have been due to something else though
 
:D
 
@Jimbo in any case, you should respond with either IA IA Ktulu'fthagn or Klaatu Barada Nektu
 
Wes
!!en tua mamma ti manda i suoi saluti, PeeHaa!
 
10:36 AM
your mom sends her regards, PeeHaa! (translated from Italian)
 
:P
 
Wes
doesn't sound too bad in english :P
 
@Wes I still think inner classes are usefull, they provide more encapsulation, passing them outside could be helpfull when inner class shouldn't be created outside some composition but can be accessed - the whole magic is in publioc/private keyword in declaration - this points if youare able to pass instance outside or not
 
I still think the moment you pass instances out of the class, it should be a separate class, because then it's not longer private.
 
Wes
@brzuchal i'm not referring to inner classes but private inner classes
 
10:40 AM
@Gordon then anyone could create such class and there is no connection between owning class, I've used $parent magic variable inside inner class which helps to wireup owning class with it's components
 
Wes
@Gordon which is the reason private inner classes are pointless. if you want them to be private you just don't "pass instances out of the class"
 
@Wes I disagree. private makes sure they stay within. non-private inner classes are pointless.
 
I have 3 root users for mysql, one 127.0.0.1, one with ::1 and one with localhost as the host
 
Wes
@Gordon do you often write public getFoo(){ return $this->privateInstance; } by accident?
 
I'm guessing I don't need the first 2 ones
 
10:43 AM
@Wes it's not about accident, when your team counts more than 80 members it's protecting your implementation
 
@Wes if you follow that reasoning, you can just as well get rid of all visibility. Also, that ignores that while you may not do that, someone else might do it on purpose.
 
AFAIR it'll be usefull in libraries stuff
 
@Jimbo WTF dude. You're in freaking spain...
 
@PeeHaa you didn't know?
 
Mornings
 
10:46 AM
.oO( wow, @PeeHaa is really drunk/high all the time )
 
:P
 
@Gordon I do. But it's the part about tapas in germany being strange
Surely over there they know how to do it better
 
@PeeHaa true. then again, there is a good tapas bar some twenty minutes from my place.
 
Anonymous
Germans are strange
5
 
@Gordon Most I know over here in rotterdam or either ok or mad expensive
 
10:48 AM
@PeeHaa yeah, well. same here.
 
Wes
@Gordon that someone else might also replace "private class" to "class"...
 
@Wes yes, that's why I am saying if you follow that line of reasoning, you can just as well get rid of all visibility and make everything public.
 
@PeeHaa Have you had 10 seconds of soberness to realise this? :P
 
8 mins ago, by PeeHaa
@Gordon I do. But it's the part about tapas in germany being strange
8 mins ago, by PeeHaa
Surely over there they know how to do it better
 
Wes
people insist thinking that encapsulation is about security...
 
10:55 AM
@Wes where did I say that? private indicates "not for outside use". If an inner class is public, it can be used outside and then it's no longer an inner class imo and should be a regular class. I find inner classes valuable to structure data I need to pass around in that class' code, but that structure should not leak outside.
 
Wes
wasn't referring to you :P
yes but again if it's not for outside use you can just not pass it outside...
again a type that is not public is almost comical to me... why even care to have a type since you can have all the private methods you want?
 
@Wes yes, but where do I define the class? In a separate file? Why put the cognitive load on a dev to figure out that this one class is only use internally in some other class?
@Wes because it's cleaner
 
I just got on and didn't really read back anything @Wes, but are you also opposed to package/namespace visibility?
 
Wes
:34460858 i suggested to simply have
class Foo{
     nsprotected function __construct(){}
     nsprotected function anything(){}
}
which does the same thing, except that you can at least type hint for Foo in other files
 

« first day (2244 days earlier)      last day (2704 days later) »