« first day (2595 days earlier)      last day (2358 days later) » 

9:00 PM
pornhub.com/category/git-gone-wrong
 
This is right after we completely rewrote one of the flag project's build, which was completely custom built with NodeJS, into a more standard WebPack configuration
The unminified versions are now half the size of the previous build's minified versions
 
well, I can't connect to the host OS of lxr \o/
I think I forgot to enable RDP
 
!!lxr rdp
 
I'll do it tomorrow when I have physical access to the box
 
@PeeHaa Nothing went wrong but I couldn't find a suitable definition
 
9:03 PM
oh I was using the wrong LAN IP :-P
 
So yeah, sanity.
 
Would anyone elaborate on why we don't do this?
 
Now remains the other flagship product
 
yesterday, by tereško
<?php
require __DIR__ . '/vendor/autoload.php';

$app = new App;
$app->run();
 
@Fabor It's meaningless
 
9:07 PM
I have no idea what App is. But I do FrontConroller::run()
or somewhat like that
 
Sorry. Don't do that in bootstrap.php*
 
@PeeHaa That makes more sense to me
No need for $this
@Fabor That is bootstrap
It's bootstrapping your bootstrap :D
 
Well basically I am trying to add functional tests to an already built Silex app. There's been a lot of struggle as you can imagine, so thinking about redoing how the whole thing gets going. In a more testable way -_-
 
@PeeHaa that example was showing what NOT to do in bootstrap file
@MadaraUchiha are you just trolling now?
 
@tereško I don't particularly care if things are done on the top level or within a function
My JS instinct (which I admit is partially irrelevant here) tells me to not do anything on the top-level, because of the unpredictable order of execution and global space pollution.
So unless I miss the cause of your indignation, I don't see what's wrong with wrapping things in a function
(Even a static one if you really want a fancy namespace)
 
9:19 PM
so you are writing php as if it was JS
 
I am not writing PHP, thankfully
I just don't see what's wrong with wrapping your entry point in a function
 
then why are you advocating for people to write PHP as if it was JS?
 
I'm not advocating anything. And you have yet to explain what's so terrible about it.
 
because it is useless
and tends to lead people to making a terrible mess of it all
 
If that's what's causing your mess, your code is in really good shape.
 
9:22 PM
since they get a feeling, that they can hide the clusterfuck
 
@tereško I can sorta see that
I'll admit
"Look at how clean my bootstrap.php file is!"
 
... that's what Yii does, for example
and also CodeIgniter ... though their clustefuck can't even be contained in that magical "runner"
and every shitty framework you see on r/PHP
and, if you need modify something, you have to either dig into that class and rewrite parts of it (thus breaking OCP) or you need to extend it
 
Oh, if you actually try to OO it of course don't do it
I'm simply not opposed to wrapping it in a main() function of sorts
If that's what makes you feel warm and fuzzy
 
buuuut, since this is not JS, we dont have to worry about someone fucking about in the scope
 
@tereško Right, but having everything neatly nested in functions/methods/classes except for this one fairly important bit bothers my sense of calm and order
Also, given how JS has real modules now, executing things in the top level is possible and even recommended in some cases
 
9:32 PM
 
Anonymous
9:46 PM
!!wotd
 
scrummy Chiefly British Informal. very pleasing, especially to the senses; delectable; splendid; scrumptious.
 
@Jeeves You're scrummy
 
@MadaraUchiha Why?
 
Anonymous
Scummy scum
 
@Jeeves That's a difficult question to answer.
 
9:47 PM
@MadaraUchiha What is prime number?
 
@JoeWatkins I'm thinking about generating errors. Each opcode that would generate an error related to the type parameter needs to be aware of the type parameter. For instance, if we just pass a zend_type as a parameter to the opcode the error would say something like "Unable to do new array" instead of "Unable to do new T where T = array".
 
Anonymous
@Jeeves what is your mothers name?
 
@samayo My mother at least acknowledged me as her child.
3
 
Holy shit
 
Anonymous
That was uncalled for
 
9:48 PM
Jeeves' got not chill.
 
Anonymous
That was brutally too relevant to my personal life
 
Anonymous
Fuck off @Jeeves
 
@samayo What is the maximum number in the word?
 
Anonymous
@Jeeves screw you
 
@samayo What is infinite?
 
9:50 PM
This implies we either alter NEW, INSTANCEOF, etc or we just issue new opcodes that handle those. I know I already said something to that effect but this is a bit different; I am saying I think FETCH_TYPE_PARAMETER might have to go away altogether because to generate good errors we need the opcodes to be aware of type parameters.
 
@samayo Jeeves knows where you live
 
:'(
 
@Fabor You should definitely apply dev when the technical problem is solved.
 
10:06 PM
Everything is everywhere! :'(
 
E_NOT_ENOUGH_DEV
 
10:44 PM
Well that rabbit hole was a time-sucking poop-vacuum.
 
apply more
 
11:05 PM
@Jeeves sing me a song
 
@Leigh Lalalalala.
 
@Jeeves you just don't put in the effort that you used to
 
@Leigh Uh, no, I'm not.
 
just let me know when the DNS is done so I can get an SSL cert and then it's good to go
 
11:56 PM
@DaveRandom So this is just the php projects?
 
@LeviMorrison it's going to be lxr.php.net
 
Gotcha.
 
since currently that just goes nowhere at all
 

« first day (2595 days earlier)      last day (2358 days later) »