« first day (2190 days earlier)      last day (2774 days later) » 

8:00 AM
@PeeHaa put* was correct.
 
I get the feeling you guys don't like object oriented programming, not sure why tho.
 
@PeeHaa reported, thanks
 
@PeeHaa Ignore my prev question ^^
 
@Porlune You might put an OOP class to represent a car for example.?
 
OOP is amazing... it's PHP that people step on these days
 
8:00 AM
Happy furday, roomies. :)
 
@FlorianMargaine \o/
 
not sure it'll get much priority though...
 
@Porlune You have to be careful with this. The car example is (IMO) not a good one because a car is both a thing that is something and a thing that does something. Good OOP code (in general, IMO) makes a distinction between those things.
 
Neh. Is it actually yours or a 3rd party thing?
 
the chat itself is a 3rd party thing
 
8:01 AM
@salathe o/
 
@FlorianMargaine Thought so
oh slack even
 
@PeeHaa That's not the structure of my sentence. For a similarly structured sentence. "You might put a function that you have written into a class to structure your code as per OOP standards".
 
@Naruto :P
@Porlune ? It's the structure of your sentence because it was your exact sentence :P
without the typo though
 
@PeeHaa ya we're on slack, this talkus thing gives an integration between "chat on website" and slack
 
8:02 AM
@FlorianMargaine That's nice / sane
 
@PeeHaa it's friday, my mind seems to be on ask first think later :P
 
How to make the computer hang: kill the process consuming 80% of memory and 30 GB of swap… … Total lag while kernel reorganizes memory.
 
@Naruto hehe
 
my original comment was: "It's a style of coding, not where you put your functions."

Your comment: "you might put an OOP class to represent a car for example.?" is not at all similar. You're bad at this.
 
8:04 AM
WTF
 
@bwoebi you have 30gigs of swap??
 
@Porlune Read your own ffing thing back
> You might right an OOP class to represent a car for example.
WTF is that right there...
 
@Gordon the maximum of OS X is, I think, 60 GB.
 
@PeeHaa I had a thought about how we could figure out where (which plugin) a posted message comes from. Also related: I've been thinking it might be a good idea to limit what a plugin may ask for in it's ctor (I don't think, for example, a plugin should be able to manipulate admin or ban storage). So what if we create another injector specifically for plugins, which has a limited set of ->share()s, and that way we could also provide an extended ChatClient on a per-plugin basis.
 
Extra! Extra! Read all about it! @PeeHee is bad at something! :P
 
8:05 AM
@Gordon swap is good
 
What PHP development environment do knowledgeable people use, do they even use an environment or is there a way to simply install PHP? I simply use XAMPP, and never knew that PHP has extensions, also php.net says I should upgrade my PHP but XAMPP doesn't seem to have that functionality.
 
@PeeHaa That's what you wrote.. it's above.. these comments don't disappear.
 
@Nadroev I used to use PHP IDEs, these days I'd recommend PHPStorm
ah
php environment
docker all the things, obviously
 
At any rate, an example of OOP style coding might be:
Class Car{
public $type;
public function __construct($type)
{
$this->type = $type;
}

public function getType(){ return $this-type;}
}
 
@Porlune pfff you know what. Fuck this shit
You are write
 
8:08 AM
oh haha, I see the typo now.
amusing. lol.
 
@Porlune you meant private $type;?
 
yah, it should be private since I used a getter.
 
get your code straight. :)
(I'm not going to point out the other obvious typo... maybe I should...)
 
@Porlune not "since you used a getter", but because information hiding.
 
@Gordon not information hiding, but encapsulation
(pointless debate coming up!)
 
8:12 AM
also, I'd argue having a $type property is a code smell. why not polymorphism?
 
Morning!
 
@FlorianMargaine pointless debate indeed, since there is no definite definition of the two
 
there might be a good reason to use a public variable and a getter. For example when you want to use a functional style along with OOP data objects (think builder-service) wherein your class must implement some getters as per its interface.
 
@Porlune that... smells
 
the only "good" reason to use public properties is when your object is a dumb data container
and even then it violates universal access principle
I think there is a Fowler quote somewhere where he calls making properties public "a cardinal sin"
 
8:15 AM
it works very well for me Florian. I use a factory that is functional, data objects that are OOP, and a service that accesses my data layer for every API call. It simplifies the flow of my programming greatly.
 
"data objects that are oop"
 
Maybe I have the terminology wrong Gordon.
 
Serious question, room11: what's the probability that git commit hash will have only decimal (0..9) digits?
 
that sounds odd. usually data objects are anemic and have no logic. so how can they be oop?
 
@Gordon yeah, php is missing properties to make this nice :/
 
8:17 AM
But for example I use paging a lot in my applications to grab large data sets via an infinite scroll - those classes typically contain their own data, and have a function for retrieving their data from a service. They then process that data (returned via a service), and then return themselves to a factory, which then packages the object for return to the API call.
So my API call just has to know "call this factory function", and the rest is abstracted.
This means that I can program in layers. Thus simplifying the entire project.
 
SRP
 
@Porlune we're saying that your abstraction is maybe wrong, not that you shouldn't abstract
quite the opposite, we're abstraction makers
 
@DaveRandom I will have a proper look later. Have a hangover and need to meet up with a client in 30
later all
 
@PeeHaa ouch
 
API->Factory->Dataobject->service->data persistence engine-> return to service-> return to data object-> data object processes it's own data -> factory packages returned object-> API returns package
 
Anonymous
8:20 AM
au revoir
 
@FlorianMargaine I know :(
 
What do you see wrong?
 
@JayIsTooCommon was that supposed to be "au revoir"?
 
I think so
 
Anonymous
@FlorianMargaine yep
 
Anonymous
8:22 AM
@FlorianMargaine there you go..
 
@JayIsTooCommon "avoir" means "to have", ftr
 
Anonymous
weird french people and their words
 
@JayIsTooCommon ftr "a'voir" is a valid expression in Luxembourgish...
(which really abbreviates the French "au revoir" btw.)
 
Hi sweeties how do you php code 2 columns on csv? i tried \t or \r\n not wokring any ideas?
 
Anonymous
@bwoebi \o/
 
8:30 AM
what would cause an http request to a server ip to download a bin file?
 
@Ekin It's all about headers…
 
any ideas?
 
you have to separate your values with commas, not tabs.
 
If I've got time tonight, I'll look at that !!imdb enhancement, else I'll crack on over the weekend
 
bonjour
 
8:37 AM
posted on October 14, 2016

New Cyanide and Happiness Comic

 
@florian how do you usually set up your API?
 
i wanted to do like this qsnapnet.com/snaps/likxo3tufhq41jo on my php
 
not clicking any weird links, sorry
 
no worries its just a screenshots like screencast or jing
 
Personally, I prefer to increase the spacing for each successive indent according to the Fibbonaci sequence: https://t.co/x5lPd4M5Mk
This totally makes sense
To discourage deep nesting ^^
 
8:45 AM
people who nest things don't care about indentation. Code samples dumped on SO are proof of this.
 
@NikiC I was thinking exactly the same
also, we seem to be following the same people on Twitter because it just showed up in my timeline, too
 
I just use tabs and try to line things up to look nice. Sometimes its not perfect, but it's all about readability right?
 
@Porlune depends what your client wants ^^
 
you mean spaces
 
who? lol
 
8:50 AM
you. no one with a sane mind uses tabs.
 
lol. I like you Gordon.
 
I feel a relationship comming ^^
 
lol. I like you Naruto.
I do use spaces in conjunction with tabs when I write sql stored procedures.
for some reason the joins and selects don't look right unless you do
 
omg you are actually evil
 
Anonymous
8:54 AM
lol
 
I accidentally deleted the top comment, then just deleted both on purpose.
hows the csv thing going?
 
9:09 AM
 
yesterday, by Gordon
"Your program is telling me to get a pet snake. I don't want one." https://t.co/KkcuESbhI9
no stars. that's what you get for not clicking my linked tweets you lazy people
 
:D
 
you know, you could have laughed about it yesterday already
but no… it needs to be served to you directly
what's wrong with you kids today
I hope that teaches you
 
It wasn't funny yesterday, but now it's Friday. Tomorrow is Saturday, and Sunday comes after-wards.
 
In amp/socket this closure is declared static, I assume for performance so that only one instance of the closure is used across all instances of the class, that makes sense. Why though is $state passed in rather than using $this to store the client-relevant properties? Is this a PHP version compatibility thing, or does binding $this somehow conflict with the statically defined closure? (/cc @bwobei)
 
9:16 AM
!!dad
 
What did the officer molecule say to the suspect molecule? I've got my ion you
 
@Leigh well it avoids a hash lookup for property access, other than that I got nothing
 
@Leigh typo in ping - and it's because of the $this binding, not because of performance
 
@Leigh since when can I declare closures as static?! Oo
 
@Gordon since PHP 5.4
 
9:20 AM
TIL
 
@Leigh If there is a Closure in the event loop with the $this, the refcount will never drop to zero and the __destruct() won't be triggered
 
@Jeeves so funny so cute
 
In that case we might end up with a zombie event watcher => memory leak
 
@bwoebi omg that makes so many things make sense
 
At least in PHP we're not so used to close things manually
 
9:22 AM
arrrgh -_- nginx is driving me crazy... what am I doing wrong here that can cause a redirect loop?
 
@DaveRandom you mean things seemed weird in code for you?
 
@bwoebi memory usage spiralling with no obvious cause
(in things I wrote in the distant past)
 
Ah okay
 
@FlorianMargaine E_NOT_ENOUGH_VIM
 
Anonymous
9:24 AM
@DaveRandom Did your hosting ever sort out the room11.org issue?
 
@Ekin haven't seen it yet - but chuck in rewrite_log on; to have that stuff logged.
 
@Leigh If we could just have weak refs, that'd make so many things easier ^^
 
oh I forgot about that, will check my mails/chase them
 
Anonymous
Alright, I was going to use it for open ID, but i'll just use another gmail for now
 
@PeeHaa has a mail server, maybe we should just do it with that
I should set up a mail server really, but ain't nobody got time for that
 
9:25 AM
@bwoebi Right, some kind of circular ref?
 
@Leigh circular? no
it's just the event loop holding a reference to the Closure, which holds a ref to $this
 
@Ekin what path is showing a redirect loop?
 
Ah sure, I was thinking event loop holding a ref to $this that holds a ref to the closure that holds a ref to $this
 
@Danack both www.site.com and site.com & both http/https
 
but sure you pass the closure out directly,
 
9:28 AM
https://site.com gives "The page isn't redirecting properly. Firefox has detected that the server is redirecting the request for this address in a way that will never complete." but I can't find out the reason
and the logs just show info from pagespeed
 
moin v42
 
o/
 
@Ekin I think maybe location ~ \.php$ { should be location ~ .php$ { ?
 
o^o
 
9:32 AM
\o/
@Ekin oh wait.
If your browser is seeing it.....then something is sending redirect responses.
So it's probably not an nginx thing.
 
hmm
 
Anonymous
ugh, I forgot chat has a minimum rep
 
Put an echo "gaaaaah"; exit(0); in your index.php....
 
ha, it's okay, shows up, so it's the codes, not nginx
 
so yeah....coding error, not nginx.
 
9:39 AM
yes, thanks a lot
 
np.
 
@Danack it should be printf('%s%s%s', chr(103), str_repeat(chr(97), 0x05), chr(104)); exit(0);
 
:-)
 
@Gordon If I had more energy, I would change that into a 'proper' OO implementation.
 
is everything ok on nginx configuration? you can check it with nginx -t
does your website work on chrome?
 
9:43 AM
yeah all okay on nginx side, it's the codes doing wizardry
 
those people are insane
 
sounds like some religious people to me
 
oh wow
 
the commonly used umbrella-term is: SJW
 
yes, put it all away. away with all that scientific red tape. with that dictatorship of facts. the world is sick of the so called scientist experts telling us what to think and feel. Sciexit now!!!
 
9:47 AM
but, yeah, they tend to exhibit a cult-like behavior
 
Send a lightning to strike someone
LOL
 
:D
 
She's been playing too much populous
 
oooh, I liked populous
wasnt he working on some sort of remake lately
 
@Gordon we need Science+
 
^ from what I heard, it was a disappointment
 
western knowledge is very pathetic..
 
that's what the ratings say, too
 
oh .. didn't look at those yet
 
It was a massive disappointment, typical Molyneux BS
Populous the Beginning was great, I think there was either a DLC or unofficial mod to support multiplayer perhaps
I still think there hasn't been anything in that exact genre come out to date, even a HD re-make would be great
Get more interest in it
 
9:59 AM
I liked Black and White
 
@Gordon how far through did you get?
 
I think I've played through both of them
 
adding in the GOG wishlist
 
I never tried B&W, will have to give it a go
 
@Jimbo I've just checked the game list at wikipedia and most of molyneaux games were actually quite decent imo
 
10:02 AM
wtf, B&W is not available on any online platform
 
it's ancient
I might still have the original CD for B&W2 somewhere
 
@Gordon why would that matter?
besides, it's not even that old: same age as Deus Ex
 
well, if it doesnt sell because of its age… maybe thats a reason
 
@Gordon The Fables were terrible... I remember watching a video of him talking about how much effort and time they put into making this virtual dog in the fable game something you could feel as if it were really your own dog, went on for ages about emotion and connection. Turned out you could throw the ball for the dog and also make it dig for stuff and that was it
 
10:05 AM
He's well renowned for BSing the public and not delivering, same with his latest Godus game
 
@Gordon I bought it when it was new. Despite having a decent PC I couldn't get through it.....the game would chug when casting spells....which made it 'kind' of hard.
 
@Jimbo I only played the first Fable on Xbox. Didn't finish it though. Can't tell about the later games.
 
Yeah the first fable was good - highly recommend finishing it and at least playing the other two as it's a fun quick game
 
@tereško might be able to get it from amazon or ebay (if latvia has that)
 
it's usually not an option
 
10:08 AM
@Danack cant really remember if I had any issues like that
 
I guess I will have to torrent it :(
 
10:20 AM
Oh god. So we're talking coding standards in the office, just passing PSR-2/1 around as a basis
Heated discussion on tabs / spaces arising
Help
 
@JoeWatkins moin v42.0.1
 
yomin
 
@Sean very easy. everyone in favor tabs of over spaces gets fired
as for coding standard: doesnt matter. just pick one and use it.
 
@bwoebi This is a bugfix release. Fixes: no longer segfaults in the afternoon.
 
@Sean Spaces because only German people like tabs
 
10:25 AM
@DaveRandom :-D
 
Also relevant:
Personally, I prefer to increase the spacing for each successive indent according to the Fibbonaci sequence: https://t.co/x5lPd4M5Mk
 
I'm 100% behind spaces, but our oldest dev prefers tabs.
 
That's why he likes tabs - because he's about to die
 
@Sean put him out to pasture
 
He's not old, he's just been here the longest :V
 
10:25 AM
@Sean congratulations. he just earned his early retirement
 
I still haven't understood the irrationality of space indents…
 
Funny though, when I started I preferred tabs, then I changed my mind.
Either way, is there any major reasoning behind space > tabs, because I guarantee the first thing he'll say is file size.
And I need ammo.
 
@JoeWatkins Are you going to tag 7.1.0RC4 today?
 
@Sean Give him a copy of K&R and a megaphone and let him shout rants about these young upstarts from an upstairs window, then call the police.
 
:-P
 
10:28 AM
Hahah
 
@Sean Tabs can be used by varying amounts in IDEs, and I've had huge problems with tabs being the wrong size (especially when backspacing or opening or a new project), where as spaces are just spaces and don't change
Seriously, I really have had problems opening someone else's code with tabs - they used to a Ruby dev.
I reckon your colleague used to do ruby
 
@Jimbo what's wrong size?
There is no wrong size for tabs
 
@bwoebi Like, tabs all over the place, you know what I mean?
Finding it hard to describe exactly what I mean, but everything is just everywhere
 
Where as with space it's not
 
10:30 AM
@Sean The big issue with tabs is that to use them correctly you MUST either a) strictly enforce that alignment is never used or b) alignment is done with spaces
 
@Jimbo not sure, you mean fine-grained indents?
 
you have awoken the Nikic
 
@NikiC Agree on that. (I choose b))
 
And by "strictly enforced" I mean you have to put a pre-receive hook on your git server, otherwise people will absolutely certainly break the rules
 
(wow, I'm agreeing with Nikita about something regarding tabs/spaces)
 
10:31 AM
@bwoebi Nah, not able to explain it, I'll have a look
 
Aye, but tab width alignment nowadays is like flexbox. Might cause issues in older stuff but modern software it isn't a problem
 
@bwoebi every size is the wrong size
 
Any code editor worth its salt should have a "set tab width" option
 
Set it to zero and re-indent everything with spaces
 
Except things like vim and nano etc. ofc
 
10:33 AM
@Sean So you're basically saying that the code should only look okay with a specific tab width?
 
@Sean I want to view tabs in the width I want - that's basically the single most important feature of tabs
 
If that's the case then why the fuck are you using tabs?
 
@Sean I am sure vim has a tab space setting. vim has settings for everything.
 
> I'm 100% behind spaces, but our oldest dev prefers tabs.
Just playing a little bit of devil's advocate
 
The devil can go shove it.
It is written in the Holy Bible that Thou Shalt Not Use Tabs
 
10:35 AM
s/\./ Incorrectly./
 
you didnt escape the dot.
 
Or prefix the word with a space
:V
 
cheater
 
Foiled again!
 
that video up there is actually hilarious. I think I need to watch that whole series
 
It is written in the Holy Bible that Thou Shalt Not Use Tabs
 
@bwoebi it turns out someone merged master into 7.1
 
s/\./ Incorrectly./
 
oh, damn
Nikita removed the dot
 
10:45 AM
@bwoebi dummy, I removed the dot
 
bwahahahahaha
 
:-P
@JoeWatkins yeah, your mistake has been fixed, just ensure to reset your PHP-7.1 branch before your next commit
 
@JoeWatkins "someone" :D
 
no it wasn't me
it was yasuo
 
10:50 AM
Ooooh
sorry
 
not offended, I suck at git ... just happy that it wasn't me ...
 
We totally need that pre-receive hook that checks against wrong merges...
 
@JoeWatkins how did you figure?
 
It might even be not that hard if you forget about the git stuff and just check if the major/minor version for the branch are right
 
@bwoebi the version was 7.2.0 in 7.1 branch
when we went to tag release yesterday
davey is fixing it/may have fixed it ...
 
10:53 AM
@JoeWatkins yes, because whole master branch had been merged three days ago
It just happens that Yasuo was the one to bump version in master to 7.2.0 back in August
 
oh ... so it was me ?
 
:D
 
In danger of sounding stupid, but isn't the whole tab / space purely preference if we look away from issues github?
 
@JoeWatkins yea, sorry for making you feel bad now though :-/
 
I'm so bad at git
 
10:55 AM
@Epodax It's a matter of low intelligence of each individual who uses tabs, duh
 
@nikita2206 Well, I've always used tabs, I find that having to press space repeatedly over and over just to indent my code bothersome, granted I haven't been part of larger projects or projects with multiple people.
 
you configure your editor to do it for you ...
it doesn't matter anyway, anything that cares about the difference between n*spaces and a tab is stupid, up to and including humans ...
 
Ah, right.
 

« first day (2190 days earlier)      last day (2774 days later) »