« first day (1832 days earlier)      last day (3122 days later) » 

3:00 PM
The strategy pattern is pretty much my set up right now ( looking at this )
 
@Sajad you are focusing on the wrong thing
AGAIN
 
@LeviMorrison I'm ambivalent on the use of type hint
 
@jimbo @andho Thanks for the help, I think I know what I need to do. :)
 
@tereško please for 5 min listen to me ...
 
I think someone should really tell @Sajad to stop focusing on performance prematurely
 
3:02 PM
Read as: I'm won't be the one who commits a 80 file changeset in the RC phase to do a cosmetic change
 
@iroegbu a lot of someones have been telling it to him for at least a month
 
I have 2 arrow in my website named "voteup/votedown". also I have a query in my class that determine current user gave voteup/down to this post or not, so how can I change the color of that arrow?
 
@LeviMorrison You seem to have accidentally regenerated the json parser
 
it's really disturbing; he's questions always tend be "is this fast than this?"
 
@Sean no you can have another class that process certain kind of Response objects.
 
3:04 PM
@iroegbu but he lluurrrvvesss optimising! don't take that away from him!
 
@NikiC Hmm.
I'm not sure how that would have happened.
Will pull that out.
 
@iroegbu my problem is not performance (right now - however later will be ;) ), Now I want to define a parent class and use extend it for children classes ..
 
@LeviMorrison I'm not sure either. I don't think that even regenerates by default
 
@NikiC Haha go on, live dangerously!
 
> Is there any difference (performance perspective) between writing HTML codes in the page (as static) and printing them by PHP ?
 
3:05 PM
Happened in the latest commit.
 
Would something this be the right sort of process then?
Api Response -> ResponseFactory -> ResponseObject subclass -> ProcessFactory-> ProcessObject subclass->process()
 
@iroegbu if the page is static why the need for php?
 
Each response type would have a process class of that type, which accepts the response and then processes it on the system accordingly
 
@Sajad I cannot answer the question for someone at your skill level. My answer would be: the representation of vote-state should be handled by a template and not a class and the state itself should be contained in the presentation object either for posts or for comments. But this answer is completely useless for you.
 
@NikiC So I checked them out from an older commit but git isn't detecting that they are changed. Fishy.
 
3:09 PM
@Sean yes looks okay. But I would go for a ProcessRegistry instead of a ProcessFactory.
 
@tereško em, seems I can not solve this problem. how much (money) should I have pay to someone creates my website ?
 
@rdlowrey We btw. still need a nice reverse proxy feature… ;-D
 
@Sajad are you talking about arrows up and down like SO?
 
yes exactly
 
Well, I managed to fix it locally. Hope the push works properly.
 
3:11 PM
The ProcessRegistry can hold instances of the Processor subclass to be reused. Of course this is not very performant in PHP (but who cares about micro optimization here) ;)
 
@LeviMorrison are you talking to me?
 
@Sajad No, I am not.
 
ok
 
@Sajad what exactly are you unable to fix?
are you trying to use inheritance to stop repeating same code all over the project?
 
look, I have 5 classes, each class has 5 method, now I have some array that are identical in all methods of all classes, (I can write those array in each function and my problem will be solve) but I want to a approach to write those array just one time (because they are totally the same for all classes)
@tereško exactly my problem is this: how can I access Father in this: class Child extends Father {}
3
Father has separated script ...
 
3:17 PM
@Sajad You can access a Fatal in that
 
@Jimbo it is a joke ?
 
Anonymous
extends not extended
 
wtf, really why my comment got 3 stars??
@samayo tnx
 
class Foo {
    protected $something = ['lorem', 'ipsum'];
}

class Bar extends Foo {
    public function test() {
        var_dump($this->something);
    }
}

$foobar = new Bar;
$foobar->test();
 
@tereško good, but in this case, Foo and Bar are in the same file, right? but I have separate files for my classes
now, how can I access Foo in all classes (they are separated file)
should I use autoloader ?
 
Anonymous
3:19 PM
yes
 
@samayo are you sure
?
 
you should have been using autoloader from the very beginning
 
@Sajad always use autoloader. It's faster
 
@Sajad Why in the first place do you need an array in 25 different places? What's in this array?
 
@iroegbu long story !
 
3:20 PM
@iroegbu because he has classes that contain HTML fragments
 
@andho ok, but, I have one autoloader for funding proper class, should I use another one for finding Foo ?
 
Anonymous
lol no
 
@tereško correct
@tereško how can I create a template ?
 
Anonymous
one autoloader is enough
 
ok well, I will ask some question: 1. each class should be in separated script ?
 
3:22 PM
@Sajad why is Foo not a proper class?
i'm out
 
@andho I need to Foo in all classes. I need to all other classes extends of Foo
oh, I detect a good idea ... anyway thanks all ... :*
4
 
Anonymous
yes 1 class 1 file
 
tnx
 
So...are these basics like in one tutorial series or anything?
 
I think we don't have anything like that :(
@Sajad read and learn: php-fig.org/psr/psr-4
 
3:27 PM
morning
 
o/
 
o/
 
Anonymous
\o
 
/o\
  |
 --
/   \
 
3:29 PM
\o hahha
 
\o/
 
o/
 
o
 
@NikiC this stupid chat doesn't accept messages consisting of nothing! :-(
 
3:33 PM
@Ja͢ck yes 'sean of constant visibility' is my full title, used only at medieval times
 
@NikiC Fixed.
 
@bwoebi Surely it accepts a zero-width whitespace
 
@NikiC I tried and it doesn't.
 
@NikiC nope
it's using a unicode whitespace character class
 
bah
 
3:37 PM
@tereško is that from the original trilogy or a new game?
 
@Gordon Trilogy
 
IIRC, it's from the first game
 
Hmm, cant recall that thing
 
@Gordon You don't remember the first geth walker? You have those bloody frog things jumping about and you have to shoot them on foot. Lava planet
 
^ that
it was a really annoying part to get past
 
3:39 PM
hmm. no. it's been too long ago
 
user895378
The upstairs neighbor thing ... so good. Must watch status.
 
@tereško I remember driving around in that thing
@ircmaxell and that's why I live in a penthouse
 
yeah, well, you are not supposed to be there with a vehicle
that guy is cheating
 
3:45 PM
You can actually sneak up your mako through it
 
I am still angry about not having been able to play ME3 because of the Steam/EA shenanigans
 
heh
 
that game is a true masterpiece of gaming
 
I suspect that it's not really
 
@Gordon me too :-D
 
3:47 PM
anyone has a small project that used extends in it ? I want to take a look at it
 
@Sajad github.com/glome/cbc/tree/overhaul .. there is extends in few places
 
@tereško well, I cant speak for ME3, but 1 and 2 got me nailed on my chair for about 100 hours. And I enjoyed every minute of it
 
thanks @tereško
 
I second @Gordon on that
 
WHY DOES STAS VOTE "NO" ON EVERYTHING?
 
3:49 PM
@Gordon I have been trying to replay ME1, but it feels really off. The story is slow and the game mechanics are terrible
 
I must say I've tried to actually do like video guy with the mako, but never succeeded...
 
@DanLugg even me noticed that and I am barely taking part in any voting
 
Dec 6 '14 at 18:49, by tereško
is it just me, or we could just speed this up, if we took away voting rites for Stas and replaced it with "auto -1" for ever proposal ?
 
@Gordon Same. I love me some ME
 
@DanLugg I was going to write a script to tally then predict individuals votes but was told it would be too cruel :P
 
3:50 PM
@tereško Right??
Honestly, someone please help me find something he's voted "yes" on.
 
@DanLugg try "adding PSR0 in SPL" :)
 
@Gordon Are you getting Fallout 4?
 
@Gordon well. The most time I have spent has been on XCom
I actually might buy XCom2 at full price when it comes out
 
Fallout 4.......... <3
 
3:53 PM
@tereško Okay, I may have spoken too soon.
https://wiki.php.net/rfc/throwable-interface
https://wiki.php.net/rfc/reserve_more_types_in_php_7
https://wiki.php.net/rfc/easy_userland_csprng
https://wiki.php.net/rfc/anonymous_classes
https://wiki.php.net/rfc/continue_ob
https://wiki.php.net/rfc/coercive_sth
https://wiki.php.net/rfc/variadic_empty
https://wiki.php.net/rfc/context_sensitive_lexer
https://wiki.php.net/rfc/array-to-string
https://wiki.php.net/rfc/engine_exceptions_for_php7
 
@Jimbo I'd have to upgrade my pc for that, so chances are I won't anytime soon. Though I love Fallout. On a side note, my Fallout Shelter has reached it's maximum capacity two days ago and several of my inhabitants are Lvl50 folks with maximum stats
 
Weapon transmografication alone.
 
@Gordon I got bored of that, best weapon I got was a chain gun. Didn't get a mini nuke or anything :(
 
@tereško played though XCom only once. Not sure it has enough replay value. If you know the story, you know the story.
 
3:54 PM
why sometimes we use slash "\" before after new in this ? $doc = new \DOMDocument();
 
@Jimbo they updated Shelter recently. It now has a harder survival mode
 
@DanLugg for example, he voted YES on "Introduce and use BaseException?"
 
@Sajad to indicate global namespace
 
ah I see
 
@Gordon try ironman. really gets the game at another level
 
Anonymous
3:55 PM
@Sajad what is global namespace?
 
then that class in accasable in all of current page ?
 
@Gordon try "Long War" mod
 
that too^^
 
@samayo I think it is able to access in all of that page
 
Anonymous
@Sajad show me an example globally unaccesible class.
 
3:58 PM
@samayo look, I have very problem and I'm really confuse right now, please ask your question from another person
 
@FélixGagnon-Grenier @tereško same as for F4: would have to upgrade my pc first
 
what do you have now?
that said, the xmas is coming, it's a good time to upgrade
 
same as last time we talked. it's able to run xcom smoothly. but it's bsod'ing all the time. that's the real issue
 
hmm
 
I am thinking about giving nvidia shield a try
 
4:01 PM
bad idea
that's like buying a really expensive iPad (and it will have about the same computing power)
 
posted on October 22, 2015 by nlecointre

/* by Kays0105 */

 
@Feeds ^ then you're going to have horrible crashes in your code.
 
Abe
when are type checks on fields checked in hacklang? after the __construct()ion ?
 
@tereško sorry, what I meant was to use it with Geforce Now
 
yeah, remote play has never been all that good
 
4:08 PM
it's ten bucks month and three months for free. cant hurt to give it a try and see
a new gaming rig would cost me about 500-700 in upgrade parts depending on what I go for
 
it's $200 + $10
 
@bwoebi 
 
I see a rectangle
 
@tereško 200 for the shield? ok
 
@bwoebi oh, blank for me.
 
4:10 PM
@Gordon it's kinda expensive "try", but sure .. let us know how it goes
 
@bwoebi blank for me as well
 
^^
 
@tereško if I choose to buy one, I certainly will. depends a lot on how much craving I get for F4 though
as much as I love Fallout, what I've seen so far didn't thrill me too much
 
.. there is also the small fact that you are not from USA with fast internet
the server might end up being on the other side of the puddle
 
4:14 PM
@tereško you can get up to 200mbit in germany depending on where you live
and yeah, I know latency is important … but that should work fine, too
anyways, heading home now
l8ers
 
c ya
 
4:36 PM
<?hh //strict

final class Maybe<T> implements \Countable, IteratorAggregate<T> {
  private bool $hasThing;
  private ?T $thing;

  private function __construct(bool $hasThing, ?T $thing = null) {
    $this->hasThing = $hasThing;
    $this->thing = $thing;
  }

  static function from(?T $thing): Maybe<T> {
    if ($thing !== null) {
      return new Maybe(false);
    } else {
      return new Maybe(true, $thing);
    }
  }

  public function count(): int {
    return $this->hasThing ? 1 : 0;
  }
^ I should work on something of real value instead of that.
Haha, I flipped !== and ===.
 
monad?
 
5:02 PM
anybody is familiar with Codeigniter in here ?
 
it's one of the two worst frameworks in php
 
@tereško Well… worst somehow popular frameworks.
 
anyway, in the Codeigniter, all classes should be extends of CI, right ?
 
no
 
!! I worked with it already, and yes it is !!!
now I want to know, where is CI class?
it is in what directory ?
how other classes can access it ?
 
5:08 PM
CI_Controller or CI_Model
 
@Sajad I worked with that framework for almost two years
 
go to your system/core/controller.php or model.php
 
@tereško oh really?! so you are right, because I just heard about it!
 
@tereško oh... and I was wondering why you were always so grumpy
 
so, please, stop using CodeIgniter as an example
 
5:10 PM
ok
I have two class, each of them has its own script, how can I extends class1 of class2?
should I inctulde() it, right ?
 
by writing an autoloader
 
@LeviMorrison Cake takes it
 
@AnmolRaghuvanshiVersion1.0 actually my question is not related to CodeIgniter, it was just an example
 
@tereško autoloader is for creating an instance of class in the a page from a folder (full of classes)
I think extending is not related to autoloader()
 
5:14 PM
 
uhhhh
 
well, I used of autoloader() and worked correctly!
 
:26442969 This is where the excitement begins :P Now go check out composer
 
@tereško anyway I did it, tnx
 
@Jimbo I don't think he has time for that
 
5:18 PM
what is composer ?
 
@Sajad Merely generates that autoloader code for you, for all your classes
(and other people's library classes too)
 
ah, when I have several autoloader() and for generate one of them as automatically, then should I use composer ?
I hate programming, always there is a new thing!!!!!
 
@Jimbo ya know what, from now on you can deal with him
 
@tereško LOL, cheers
But we're in this together
If I'm going down I'm dragging you with me
 
I am fed up with trying to clean up after fuckers like you who tell newbies things you shouldnt
 
5:22 PM
@tereško Okay, maybe it was too soon...
@Sajad That's for later, focus on just autoloading things of your own for now
 
@Jimbo ok, but is it possible to I use composer later ?
or should I change all my codes for using composer?
 
@Sajad Ignore what I said for now, progressed too fast. It never happened. Men-in-black flash
 
from now on you @Jimbo and @Orangepill can explain stuff to him
Jul 29 at 14:41, by Orangepill
@Sajad some people think 1 if is too many
I am tired
 
@tereško How did your interview go then? Any change?
 
@tereško please don't leave me alone
4
 
5:26 PM
@SeanDuBois ah, glad you made it ;)
 
Anyone ever built a load-balancing broker for messaging instead of round-robin, and scaled multiple brokers successfully?
I'm trying to figure out the best way for that, thinking... one broker to many brokers. So, a broker broker. Or something...
 
@Jimbo what are you building?
I find that ZeroMQ is awesome at what it does, which is nothing that actual applications need
what you're looking for I think is something along the lines of rabbitmq.com
 
I was going for 0MQ because I saw it has bindings that I can easily use in an event loop for IPC, with websockets between client + server. And I'm wanting to build something for OS for automated testing
client |websocket| server |socket| queue |ipc| worker(s)
 
@marcio thanks! and feeling pretty good about the PR, fixed a lot of things. ZTS is still broken, and I can't find what properties do different to copy the pattern
I have the invalid free via Valgrind, but not giving me anything useful yet
 
@Jimbo just beware that you have to do all of the orchistration yourself. Which may be what you want, but isn't what most people need.
 
5:34 PM
@ircmaxell That's what I'm excited about ;-) It's not for $$
 
:-D
 
Oh also I wrote a Xdebug frontend that uses Websockets. So a REPL/Stepper/Variable viewer is shared between clients. Would anyone be interested in using it? (Seeing if it is worth getting ready for open sourcing)
README.md and the such
dropping some screenshots
 
@SeanDuBois nicely done on the feature :-D
@SeanDuBois that would definitely be interesting
 
@ircmaxell thanks for giving me the thumbs up on IRC, really helped me get it together
was worried I would try and fail
 
@SeanDuBois even if you fail, who cares. It's definitely nice to get a win (don't get me wrong), but even a fail is better than a didn't try
 
5:40 PM
Also, failed RFCs are valid research. A lot is done on top of failed attempts.
 
yup!
out first 5 attempts at Scalar typing all failed
 
Well for me I was mostly worried about the embarrassment of it, it is always rough getting involved in a project and your first try fails. But yea you are totally right about RFCs building on top of each other
But it is hard to find those pockets of people that take you seriously if you throw a bunch of bad patches, then you get ignored usually. So didn't want to end up in that rut
 
yup
well, it's nice to have you contributing @SeanDuBois, and let us know if you want any other ideas, or if you have others you want to bounce off us
 
The only case I'm aware of where I'm not taking someone seriously anymore because of bad patches is Yasuo
 
well, that's not why I'm not taking him seriously
his patches aren't the problem
 
5:55 PM
I am excited to be around! After/when constants land I would like to do some 'dirty' work that no one else wants to do
 
Not just the patches, also the RFCs
 
I tried looking at the bug backlog, but don't know what is important yet etc...
 
I'm looking up how to prevent form resubmission on page refresh and I'm getting confused...
 
@SeanDuBois The most important bugs are probably the ones that aren't important
 
@SeanDuBois want to help finish function/constant/stream autoloading?
 
5:57 PM
@ircmaxell would love to! After the constants PR is 'approved' I am your man!
 
There's a lot of people who are quickly able to fix engine bugs. But an issue in exotic PDO driver? That'll likely be there for the next ten years...
 
@NikiC totally, I would love to grab exotic PDO bugs. I really enjoy the debugging/learning deeper stuff. But not able to discern yet people not RTFM and bugs
Just so much stuff backlogged, also doesn't help that I am pretty much a PHP 7 user. I only know 5 from porting from it
 
:-)
that's AWESOME
 
@SeanDuBois That's fine ^^ I think at this point we prefer fixing bugs for PHP 7 only
At least if they require any non-trivial amount of code change
@SeanDuBois There's one problem with fixing exotic bugs: It is usually hard to get them merged.
Because often nobody knows that code, nobody runs tests for it etc
 
@benlevywebdesign PRG
 
6:03 PM
@Jimbo Pseudo Random Generator?
 
lol
 
@ircmaxell Do people use PRG instead of PRNG?
Badum
 
I don't understand that...let me step back a few steps
 
@benlevywebdesign But it tells you...
> instead of returning a web page directly, the POST operation returns a redirection command
Anyway, that's Wikipedia. You now know what to google :-)
 
@SeanDuBois Whenever I decide to do some "dirty" bug fixing work, what I end up actually doing is marking a bunch of bugs as invalid and not fixing anything :/
 
6:06 PM
@NikiC heh, every time! Or I realize after 3 hours it actually IS NOT a bug, but I didn't understand the feature.
The first 2 hours and 50 minutes cursing the original dev
 
Ok so my main page has a form for my coworkers to fill out when they want to request projects. I include <?php include("contactmeform.php"); ?> above the form with action="<?php echo htmlentities($_SERVER['PHP_SELF']); ?>" method="POST"
 
@NikiC likely not
@SeanDuBois only 2:50 cursing the original dev? Wow, you've grown quite a tollerance
 
@ircmaxell I'm just glad I never had to touch the 1kloc single function for HTTP requests
 
Many hours of therapy, I get a lot of relaxation from printf debugging with curses
2
printf('\n This shit sucks \n')
fixing my quotes, stop it hurts
 
LOL
 
6:09 PM
Forever now that bad code is stuck in history
 
Some may say I'm a crazy person, but I'm not the only one... And I hope one day you'll join us, and the community will be as one!
 
Like I may never live down my panic trait example with constants
 
In my contactmeform.php I submit the data to my database as well as send them an email for their records. Then I echo out a message on my main page saying it was sent.
 
@benlevywebdesign Sounds like you might benefit better from asking a question on the main SO site as there's some surrounding info
 
If you refresh the page it ask for you to "confirm form resubmission". I want to prevent that.
 
6:12 PM
Asking the lazyweb: Do we have any sort of PHP-centric tooling to assist us in quantifying technical debt for C-levels?
Everything I pull up is static code analysis for C# and Java and the like.
 
I am looking up similar questions. I am just wondering if using if ( isset( $_POST['submit'] ) ) is not the best idea
 
@benlevywebdesign You're looking for post/redirect/get.
 
Yes I know that
 
12 mins ago, by Jimbo
@benlevywebdesign PRG
 
most people don't even realize traits have no constants :>
 
6:15 PM
It's confusing me...so I'm looking for an example
 
Ah man.....
Gutted! No one wants to hear about writing quality decoupled code with Drupal 7! :-( #zendcon https://t.co/uE6aTsiF6I
Can we get some support for this guy, really feel sorry for him
If my talk had been like that I would've been gutted
 
@Jimbo aww crap
 
Ikr
 
@Jimbo Particularly if they are not getting paid to be there :/
 
Reminds me of this recent r/writing thread reddit.com/r/writing/comments/3ohtgx/…
 
6:25 PM
@ircmaxell @Jimbo I'm trying not to have another page when they submit the form. I want it to be an all in one page solution
 
@Jimbo With 8 simultaneous tracks it's not terribly surprising. And it is in Vegas...
 
8 simultaneous tracks? o.O
I mean, this is a PHP conference. Maybe I'm just naive but that seems like too many.
 
@LeviMorrison Yes, 8. And I thought the same thing. It's a bit much
 
Maybe they're trying to make it THE conference of all conferences, when we all know it's quality over quantity
 
lol
Looks like ZendCon went ArtisAnal
The columns are labeled "Artist N"
 
6:50 PM
Seems like he's alright, he went to another talk
 
Hey everybody
I've got a PHP snippet that searches a txt file, and gives off a true or false based on if the word in the submitted string contains one of the words in the txt file. I'm looking to retrieve the words that triggered the true and put them in a $trigger variable for later usage. Any suggestions? pastebin.com/q1cE0NfS
 
@Machavity are like a 500 people on that conf or why so many tracks? :o
 
@bwoebi Only 500? PHPNW has 450ish at a push, and it's very community-oriented, friendly, not too big. 3 tracks and an unconference running behind it
 
well… still. an empty room with that many people… o_O
 
I can't believe I actually just typed 800 / 8 into into chrome's address bar
More tea!
 
7:00 PM
@bwoebi Looks like bad luck. Maybe Rasmus, Linus Trovalds and an interactive Steve Jobs hologram were on the other rooms.
 
Steve Jobs hologram :-P :-P :-P
 
that would call some attention
 
7:15 PM
@Ocramius No worries! I just pictured you with a big cigar in your mouth throwing dice down the craps table instead of merging pull requests. :)
 
Anonymous
7:47 PM
Is there any 'safe' way to pull a repo from Github using a PHP script? Without accessing the system, or using Bash.
 
Anonymous
.... and, without using PHP Github clients :/
 
write your own client?
 
Anonymous
E_TOO_MUCH_UNFINISHED_PROJECTS
 
@SammyK Cigar? more like a fine thin cigarillos, with a smoking stick surely.
 
I'm trying to follow the PRG pattern but I don't want to have more than 1 page
 
7:57 PM
is code igniter dead?
 
Worse - it's undead. BCIT should never have "saved" it - they would've been better off starting from scratch.
 
so it's a zombie
 

« first day (1832 days earlier)      last day (3122 days later) »