« first day (1647 days earlier)      last day (3300 days later) » 

1:00 PM
@Jimbo I can't be arsed to argue with someone who uses so many big words all the time.
 
Anonymous
@SecondRikudo why did you leave php for javascript? traitor :p
 
@Danack Haha. Tbh I'm just trying to see his point of view
 
@PeeHaa Hmm, I hardly use the simulator because most of my projects use AVFoundation and that stuff (conveniently) doesn't work at all.
 
@samaYo Mostly because at my new (new for a year now) job we work mostly in JavaScript and Java, and not with PHP
 
@Ja͢ck :P tnx anyway
 
1:01 PM
@PeeHaa why did downgrade Xcode, though?
 
@Jimbo Sometimes, I actually wish @ircmaxell would stop trying to make PHP better. It seems to be attracting back the people who think semantics matter more than good programming. Up until now those people have buggered off to 'proper' languages, but they seem to be coming back.
 
@Jimbo A factory in on itself walks on a very thin line between being a good pattern and being a service locator.
 
@SecondRikudo If you return a common interface from it, it's no SL imo
 
@HatterisMad do any of the methods like get_who_finished_position access the database?
 
user2620028
@Danack Every single one
 
user2620028
1:03 PM
@Danack I can comment out all of the code inside the while statement and it exhibits the same behavior
 
@Ja͢ck I have a titanium app (that stuff (conveniently) doesn't work at all) with a specific version only running on a specific version of xcode
 
@Jimbo if your factory does anything other than create value or domain objects, I argue it's too close to being a ServiceLocator to be used comfortably.
 
:-(
 
Anyone care to remember if opening another query in PDO, in the middle of iterating over an open result set breaks stuff?
 
Of course, it's different in the case of a DiC, where it's actually its job to create those objects.
 
1:03 PM
@SecondRikudo It's a good thing "domain objects" can contain many things then :P
 
user2620028
@Danack its an abstraction layer for mysqli
 
@PeeHaa oh fark, version dependency hell =((
 
@Jimbo By "Domain objects" I generally mean "entities"
 
user2620028
A VERY shitty one at that
 
I know it's a wide definition, but meh.
 
1:04 PM
@SecondRikudo With DiC's, you create those objects and put them in there (see pimple), with injectors they create them
 
@Jimbo Eh, it doesn't really matter that much
 
@Ja͢ck yeah :(
 
I considered using Titanium at some point ... but I'm glad I was never forced in that direction.
 
Here you create them with code, and here you create them with configuration (or reflection).
 
@SecondRikudo It does to me!! lol, Meh, if I have an object that requires runtime-gained data, maybe from the user's request, I put that object in a factory so I can DI the factory and pass it the data in it's make() method
 
user2620028
1:05 PM
@Danack I traded the while loop in and replaced it with a for loop and it exhibits the same behavior, executes once out of expected 4 loops and continues on with the code.
 
@Ja͢ck Yeah good choice. At my previous job I also had to use it and I said "NEVER AGAIN!"
Yet here I am :P
 
@PeeHaa Well, sorry I couldn't be of much help .. hope you'll figure it out soon, or get somebody else to figure it out heh
 
No worries. Tnx anyhow
 
@Jimbo Yeah, that makes sense.
 
:)
 
1:06 PM
But then, the injector/dic isn't aware of "the object", it's aware of "the factory for the object"
And it doesn't matter whether you create the factory, or the injector creates it.
 
@HatterisMad Ok i) apparently doing queries inside iteratoring over results does require jumping through some hoops ii) I need to go do stuff iii) The error is almost certainly in your code....just keep debugging it.
 
user2620028
@Danack Haha thanks
 
@SecondRikudo Yeah that's fine, as long as you get the factory. But yeah, the object isn't aware of the object any more it's only aware of the factory, and I don't know any way around that when using DI
It's effectively delayed object instantiation via a factory for runtime provided arguments
 
@Ja͢ck and to be fair, PHP is pretty bad at this stuff. Services of this level should probably live between requests, and not created from scratch every time.
A factory that's only called to create exactly one element isn't very helpful :P
 
I know, it's delays an object's instantiation so you can DI the factory automatically but.... well that helps me tbh
 
whats your go to recommendation for simple blogs?
 
blogger
 
@Patrick Are you alright with hosting your own?
 
yeah (it's for a friend who wants to put something on his unused lifetime vps)
 
user2620028
@Danack you guessed right, must have gotten wrong result when debugging before, I am experiencing the problem you linked to. Thank you.
 
1:14 PM
and I'll definitely not recommend wordpress to anyone :D
 
@ircmaxell Why sad? :(
 
thanks Jimbo
 
1:25 PM
Awesome cover of this song from Antimatter: youtube.com/watch?v=XEkcFXAMKKs
jarring difference
 
I see that many people, especially with some frameworks use yaml to define some configurations, for example their dependency injection container classes
but to me it seems it is much harder to refactor such thing
I see also that in Symphony for example, the once created configuration is saved in a file so in a way everything is not re-instantiated for each new request
 
Jan 29 at 21:03, by marcio
Also, Symfony is now just a black hole, the appalling remainder of a code supernova that exploded and breed the universe with heavy composer packages now used as building blocks for other frameworks.
Jan 29 at 21:19, by marcio
@bwoebi ones never knows what happens inside the bundle system because of the singularity of YAML files being compiled to arrays so enterprise systems can have at least 400ms response times on hello world benchmarks.
 
Shall anybody help me with this query?
`select distinct m.* from users as m,network as n
where ((n.frd_id = m.mem_id and n.mem_id='444')
or (n.mem_id = m.mem_id and n.frd_id='444'))
and
profile_type= 'C'
group by m.mem_id
limit 0,12`
 
INNER JOIN GroupAgentYear gay ON a.ID = gay.AgentID
4
 
I think YAML was made to simplify the way of reading huge DIC files
 
1:32 PM
@Jimbo ^^
just found that in a codebase
 
ahahaha :D
gay.AgentID
 
LOL
 
LOL
what was that?
 
@DaveRandom Can you git blame that? :P
 
maybe they're referring to "happy" agents
 
1:34 PM
I think it's just a genuine product of the system that seems to have been used, namely aliasing tables to first letter of every component word
 
ah, I've just noticed that gay is short for GroupAgentYear
 
haha LOL
 
Ah, scaffolding ftw
 
anybody with above query solution...
 
@John You didn't ask an actual question, or describe what you want from that query and in what way it's not giving you what you want, and we don't know your database schema...
 
1:40 PM
Man, having a really long convo on reddit. It's my first time :P
 
link please
 
s/link/bitch/
 
guys
when do you instantiate your DIC
before the controller action is called, right?
 
@ziGi Yeah, typically in your application bootstrap phase
 
ah, so you can do it even in the index.php
 
1:42 PM
Think of it in sections. The part where your framework does it's crap, and the part where your devs work. Your devs work from the controllers onwards.
 
true, true
 
Long one, goes on for a few pages so far
 
and is it usually a good idea to split the DI definitions into a few files?
or it doesn't matter really
 
@ziGi That's your architecture I guess, it's up to you. What I've done is just put it in a single file
You could design your application to be trivial to expand into extra files if you need to in the future
 
well I think it is sensible to split it only if there are different modules which can exist on their own and that need different classes
 
1:45 PM
 
ok, one more moronic question
 
There's almost definitely a better way, as with everything.. right now, that's what I've got
 
I see that people usually use strings to request something from the injector
example: $mailer = $dic->get('my_mailer');
 
you kinda shouldn't , it should be $dic->get(MyMailer::class);
 
isn't it more sensible to use constants
or the name of the class
 
1:47 PM
@ziGi That's the "service locator"
You don't pull anything from your "DiC"
(unless you want to, and know it's not considered good :P)
 
hm
well
ok
 
also, I would like to note that $mailer = $dic->get('my_mailer'); looks suspiciously like service locator
 
I mean if you look at Auryn
 
@Jimbo Must... resist...
 
you have
$obj2 = $injector->make('SomeNamespace\MyClass');
 
1:49 PM
fyi @ziGi the comma and the hard return are not the same thing ;-)
 
Sorry Dave
 
@SecondRikudo I dunno, it's been awhile since I looked at that code. I threw it together the best I could. Be happy it's not jQuery =oP
 
no worries, just kinda annoying when you have 1-word-per-line
 
DaveRandom, yes I do realize, but I don't know why I do. It just happens from time to time
 
Yeah thats right but the thing is network table contain users list like
444 1
1 444
and so on...
 
1:51 PM
@tereško symfony.com/doc/current/glossary.html#term-service-container apparently in symphony Service Container is the same as Dependency Injection Container
 
Git seems to be rejecting my SSH key suddenly. The key is still listed via it's fingerprint on github.com.....anyone know how I can fix it?
 
So if cross is matched that means the are friend
 
@DaveRandom Ah man, we need to go for beers
(nothing related to DiCs)
 
@Danack You sure SSH is presenting the right key to Github?
 
@ziGi just because you call it "dog" will not make it stop mewing
 
1:52 PM
@Jimbo I'm game whenever you are much like your mum
 
@ziGi $injector->make('Namespace\Controller'); and class Controller { public function __construct(Dep1 $d1, Dep2 $d2) { } }
Like @Lusitanians mom
Where is he anyway, does he exist any more or was he unset()?
 
@Jimbo that's true, but you still say ...->make(<some_string>)
 
@ziGi Well, you're routed from your URL to the controller ,right
 
@DaveRandom Not entirely. The ssh config still shows that it should be using the correct key. The only thing I change recently is I turned two-factor auth off and then back on for github.com. I didn't think that would affect git using ssh, but I suspect it might have.
 
So what you put in <some_string> is created dynamically
 
1:54 PM
I see
 
@crypticツ See my PR
 
(You still somewhere need to link a url to a controller, and that's from your routes file usually)
 
What about services that are used inside the controller action, how do you refer to them if they are already instantiated from the DIC
 
@ziGi What do you mean?
(Btw all this is my way of doing it, might not be the best way, but others do too)
 
well, let's say you have a ApplicationService object that does something with the Domain and queries for data. In the controller you have to call this object and say ...->getMailData($id) for example
what should be in the place of the ..., since the controller should already have this object coming from the DIC
 
1:57 PM
@bwoebi why an exception for intdiv(PHP_INT_MIN, -1) ?
var_dump(100 / 0) // false + warning
i'd do the same
 
Or should the controller have a constructor and you inject all those services through the constructor of the controller?
 
@Danack First thing I'd do would be remove the key from GH and add it again. Then gen a new key and try with that. If at that point it still doesn't work, either github is broken (someone else would have noticed by now) or you aren't sending the key you think you are
 
@ziGi So if multiple methods are going to use this ApplicationService object, constructor inject it
If an individual method is going to use it, inject it into the method instead
 
@DaveRandom I've 'fixed it'. It wasn't using ssh at all, but http oauth. I changed the remote to be ssh and am able to push - it seems the oauth stuff for my git may be broken.
 
$injector->make($controller); /** then **/ $injector->execute($action);
 
2:00 PM
ok, so I can expect that the controller/action method already has that?
 
So any bored person wanna help come up with a string comparison function for me? :D Got an array of text I need compared against each other to group in to a multi-dimensional array of based on similarity. prep-done. I've made a few attempts but nay grouping well.
 
@Jimbo ok I see
 
Is it possible to htaccess rewrite url like site.tld/index.php?lang=en to site.tld/en/index.php?
 
@ziGi No, the injector gathers all the controller and method requirements, builds the objects, then passes them in for you. That's what Auryn does, and I haven't found a better way of doing it yet
 
git config --global url.ssh://git@github.com/.insteadOf https://github.com/ apparently that might force ssh even if I forget to set it up and clone a repo via https.
 
2:02 PM
@Danack oauth is just generally broken so I wouldn't worry about it
 
@Jimbo yes exactly, so nothing is instantiated inside the code, when you write in the controller, you directly use it, right?
 
posted on April 20, 2015 by kbironneau

/* by MonsieurLeMarquis */

 
@ziGi Basically, yes. You won't use the new keyword anywhere apart from your bootstrap, your factories, and for "newables" like exceptions and responses
 
That way you have a single point of instantiation of all the objects you use
@Jimbo yes, true
 
@Worf because the division by zero also triggers an exception… I just oriented myself based on that
 
2:03 PM
ok, it is all clear now, thank you
 
It's how I've done it, feel free to try something else and tell me too :P
 
@bwoebi ? doesn't it trigger a warning and returns false? 3v4l.org/Zvssf
 
@Worf no. intdiv.
 
@Jimbo what kind of objects do you usually produce from the Factories, DTO's ?
 
@ziGi Entities, any object that requires scalar parameters that are only known during runtime (say, from a user's request)
 
2:05 PM
@Worf 3v4l build is from before engine exceptions was merged.
 
@ziGi you really use DTOs ?
 
@Jimbo I see
 
They seem like a mythic beasts from fabled "enormous projects" land
 
@tereško Have you ever heard of or used the "Encapsulate Context" pattern?
 
@tereško so how would you then produce a JSON output from a few entities?
or are you using CQRS
 
2:09 PM
@bwoebi it's also wrong imho. unless you have a MathException, i'd trigger a warning and return false / INF
 
@ziGi definitely not using DTOs. Those are meant as conduit for exchanging the information between domain entities and persistence abstractions.
 
I am trying to send php email with smtp server. no email coming from website.
 
@Worf I think the thought behind this was being able to guarantee that intdiv always returns an int. But int|false+warning would be okay too, IMO.
 
when people do catch(\Exception $e){} really don't want to get such exceptions in my opinion
 
@tereško so then what kind of pattern can it be used to produce a JSON response as a combination of Entities and Value Objects?
 
2:11 PM
@Worf You don't catch \Exception, except in catch-all handlers…
 
not always people is trained to do that
 
@ziGi I have no idea. I would start by writing a code and see how it comes out
 
as i said in the past designing the exception hierarchy is a hell of a hard job
 
and "JSON response" seem like presentation-related task
 
it is
it is formatting and outputting data for a REST framework
it is part of the presentation layer
 
2:13 PM
well, at that level you do not have domain entities even available
 
well yeah, that's why I return DTO's from the Application layer which I convert to JSON output
 
maybe I am not using the term DTO properly
 
@ziGi lemme see if I can copypaste something not NDAed
 
any php person here to help.. plz
 
2:14 PM
> The solution I described to you is neither a static factory, nor an app-central container fetching dependencies by string labels, nor it promotes scattering instantiation all over the codebase. It promotes well encapsulated modules with small, clean interface areas.
Interested
 
getting message........... Fatal error: Call to undefined method SMAIL::IsSMTP() in /home/turkishp/public_html/mailsend.php on line 5
 
@antalya go to line 5 of /home/turkishp/public_html/mailsend.php and check what's happening there
 
trying to send php mail through hosting smtp server
 
@ziGi my guess: a function call to SMAIL::IsSMTP()
 
haha :D
@tereško I guess there should be something like serializer or I don't know what, but I am wondering, how should you return the data from the Application Layer to the Controller to serialize it
 
2:16 PM
@antalya check the class definition for SMAIL
 
@antalya Have you actually read error message? :)
 
@ziGi hmm ... there is nothing that I can copypaste. But essentially what I use are php template file, which contain something like <?php return [ 'name' => $entity->getName(), ]; which then are rendered as JSON, where $entity would be a presentation object
 
need to add a few lines in the mailsend.php file
 
and I do have nested resources and collections with nested resources
 
@tereško ok I see, I just wonder, what do you call a Presentation Object
 
2:17 PM
@bwoebi i agree that php should start to use exceptions but at this stage i'd have everything consistent with other functions. so id go with false & warning :P
 
@tereško Should entity be exposed like that?
 
@Leri well he said that $entity is a presentation object, so I guess it's not a domain object
 
i have this .......
<?
include_once("./admin2/classes/mailClass.php") ;
$SMAIL = new SMAIL();

$SMAIL->IsSMTP();
$SMAIL->SMTPAuth = true;
$SMAIL->Host = 'mail.domain.com';
$SMAIL->Port = 587;
$SMAIL->Username = 'info@domain.com';
$SMAIL->Password = 'password';
 
@ziGi the official name is "presentation model", but I kinda dislike it
 
@tereško I see, I checked it and actually I don't use DTO's but Presentation Models, I just call them DTO's because I did not know the name of the pattern
 
2:19 PM
@Leri it is not exposed. Presentation objects have only getters, and those getters also deal with escaping and conversion
 
@antalya the class in mailClass.php doesn't have a IsSMTP() function
 
@tereško I see, and localization? Where is that done?
 
@tereško but yes, you are right
 
for example $entity->getTime() will use the retrieved timestamp from service later and turn it into "2min. ago"
 
then what coding should be added to the file
 
2:21 PM
lousy string comparison
 
@Leri depends. I have a separate service for translations, but general localization is done inside presentation objects
though I am not sure whether it's a good practices
it's just what I have
 
Sort of thing @AlmaDo usually liked doing (I think)
 
@Marcel thanks for your reply... could you help plz
 
Looks a bit srp violation to me. I want to find some descent way for localization.
 
but @tereško when creating the Presentation Object you basically populate it by parsing and assembling data from entities right?
and I guess you do it in the Service
 
2:23 PM
I don't know the contents of your mailClass.php
maybe there is even a function for it and you just mispelled, e.g. IsSMTP() instead of IsSmtp();
 
user895378
@Jimbo I have no interest in engaging in a pointless bikeshed conversation on reddit. alias() is fine there. bind() means nothing in that context. alias() actually has meaning with regard to names. He can say "bind is better" all he likes. It's a stupid objection to raise. People just like to find things to complain about.
 
depends
public function prepare()
{
    $service    = $this->factory->create('community');
    $this->data = $service->retrieveCurrentUserDetails();
}
this is how in general a presentation model for a profile gets initialized
it gets array of some data from service
 
@Marcel this is what i have in the mailsend.php

<?
include_once("./admin2/classes/mailClass.php") ;
$SMAIL = new SMAIL();

$SMAIL->IsSMTP();
$SMAIL->SMTPAuth = true;
$SMAIL->Host = 'mail.domain.com';
$SMAIL->Port = 587;
$SMAIL->Username = 'info@domain.com';
$SMAIL->Password = 'password';

$SMAIL->From($from);
$SMAIL->ReplyTo($from);
$SMAIL->Subject($subject);
$SMAIL->Body($body,"utf-8");
$SMAIL->Priority(3) ;
$SMAIL->content_type('text/plain');
$SMAIL->To($to);
//$SMAIL->Bcc($admin_mail);
$SMAIL->Send();
 
which then gets utilized in the rest of the code
 
@antalya that's not what I asked you for. good luck
 
2:24 PM
@tereško ok, I understand now. Do you usually have prepare() method for all your Presentation Objects?
 
I also have a populate($data) method for some presentation models, when I need to deal with collections
 
1 hour ago, by Danack
@Jimbo Sometimes, I actually wish @ircmaxell would stop trying to make PHP better. It seems to be attracting back the people who think semantics matter more than good programming. Up until now those people have buggered off to 'proper' languages, but they seem to be coming back.
 
@rdlowrey Fair enough, I just want to understand other humans points of view
 
@ziGi yes, but in some it is empty ... I really should pull it out to a superclass, I guess
 
@tereško yep, sounds like a good decision
 
user895378
2:25 PM
@Jimbo Think about it ... if you saw the method name Injector::bind() in an API what the hell does that mean?
 
user895378
It doesn't mean anything specific.
 
@Maecel when I write IsSMTP() instead of IsSmtp();

Parse error: syntax error, unexpected T_VARIABLE in /home/turkishp/public_html/mailsend.php on line 6
 
@ziGi and if I had a DI container, I would be passing initialized services to presentation object, instead of the factory .. but I have to deal with some limiteations in my code
 
user895378
alias() actually means exactly what the method does. You're aliasing one name to another.
 
@rdlowrey I know it doesn't, but sometimes often I say retarded things so I at least give other people's opinions a chance :P
 
2:26 PM
@tereško yeah, passing the factory seems interesting
 
user895378
bind() is a classic example of bad naming in software. It's just meaningful enough to hide that it doesn't say anything about what's going on. You're forced to investigate the code under the hood to find out for yourself.
 
@ziGi it's the "quick solution"
 
@antalya I think you should work your way through a basic php tutorial or two
 
@Marcel I know... it was suggested i could get help here
 
user895378
@Danack I think it's partly also a symptom of php framework devs. They've endlessly iterated on the same framework problem for years now and they think that makes them experts on all things code.
 
2:28 PM
Btw, have you noticed that if you have someMethod($foo) you can pass null. Later if you have someMethod(TypeHintClass $foo) it throws a fatal error when you pass a null. You can remedy this by doing someMethod(TypeHintClass $foo = null) but then the argument is not compulsory anymore, which is lame in my opinion.
 
@rdlowrey Have you heard of "Encapsulate Context"?
 
user895378
@Jimbo Generally if I see the word "pattern" my eyes glaze over and I keep moving because it always just means "general sensible programming"
 
user895378
So, not specifically, no.
 
I wanted to type "pedantic bitch" then, but decided not to, and instead decided to put it in a message saying what I wanted to type, but didn't.
 
user895378
@Jimbo This is why I mostly avoid engaging with people on reddit :)
 
user895378
2:31 PM
It only leads to annoyance whether you're right or wrong.
 
/me thinks that obsessing about named patterns is the wrong way to go about things
 
Someone's putting it forward, here's a journal in case you're interesting in furthering your knowledge, the problem is interesting so far
 
@ziGi As in method(?TypeHint $foo) (hack example) ?
 
user895378
@Jimbo I've never called it "Encapsulate Context Pattern" but I do this every day.
 
user895378
It's a major feature in a lot of my server code because I have to pass around a ton of disparate context because the HTTP spec has so many special cases for how a request must be handled in certain cases.
 
user895378
2:33 PM
I have lots of "struct" objects that consist of nothing more than public properties for that reason. Methods are eschewed in those particular cases because (1) performance and (2) the "structs" are basically private implementation details that no other code ever encounters.
 
*prepares "Encapsulate Context Pattern considered evil" article*
 
*Prepares "@salathe considered evil" article*
 
*prepares "@salathe is definitely evil >:)" article*
 
hmm ... Fractal Design is preparing to release a variation on Define 5 : fractal-design.com/home/product/cases/define-series/define-s
 
*doesn't push "publish" button* (story of my life)
 
user895378
2:37 PM
Don't Press Send
 
user895378
^ words to live by
 
*prepares bath of virgins blood to offer as a gift to the new dark lord @salathe in the hope that I may be spared*
 
*thinks that would make a lot of black pudding...*
 
@Rangad yeah, id won't cut it
 
@Fabor ?
 
2:46 PM
> {"ErrorCode":1,"ErrorMessage":"Fuck off"}
 
Ok guys, sorry that I am exhausting you with my questions, but I was wondering about one more thing. If there is a request that takes for example 20-30 seconds to persist some data and generate some stuff, is it reasonable to start a thread that runs separately and return 200 OK. And when the thread is finished push some information using sockets?
 
The most rest api ever. ^^
sigh
 
@AlmaDo Oh, was just a small little array/sorting/grouping/string compare issue I am having, usually those kind of problems you're good at solving if you have some time.
 
@ziGi Not like that. The standard pattern would be to i) Save the data to be processed somewhere quickly, and return a "202 Accepted" response. ii) Then have a background task that processes the data iii) have another api end point where users can check if the thing has been processed fully yet.
I don't think there are really any valid use cases where a http request should take more than 1 second to generate a response.
2
 
@Danack yes, this seems more reasonable. So in a way the ii) part is some kind of tasks queue?
 
2:50 PM
@ziGi yes - if you haven't used it already supervisord is pretty awesome.
 
currently we have such a thing what you are saying implemented in VB inside access cause we are using some legacy system and the DB is SQL Server, but I wanted to eliminate this 'batch' processing and make something smarter, but I guess what you are saying is a better solution.
Why is having a thread a bad solution?
 
@antalya so you got further
 
why are exceptions such a hack… :x phpdbg work (bugfixes) is going to be fun.
 
@ziGi You'll need a queueing system, then do what @Danack said, and either have a front end OR let them provide a URL which your queue posts the data back to afterwards, like PayPal's Instant Payment Notification system (IPN)
 
@ziGi Network connections just aren't really that stable. Holding them open for a long time is just not an awesome idea. It also means that the resources held open for each connection block other connections from happening.
 
2:53 PM
I see
@Jimbo yes, well following the progress of the tasks is only a supervisor option, so I thin a simple API would suffice
 
@Fabor eh... I wish I could do that
 
heh no worries, You seem busy recently. How is work?
 
The thing is our server runs on Windows so I don't think supervisord would suffice
 
@Fabor work week for me is kind of sprint, almost literally. I work from 8 to 6, then from 6 till 9 I'm learning German. Then 10 PM I'm home, but don't want to do anything but sleep :p
 
@Jimbo I really like what you and Danack are saying, but is there somewhere an example architecture for that, or should I create it on my own?
 
2:56 PM
8-6... that's a long working day
 
I guess I have to look for PHP Queue Server
 
queue server?
 
in PHP?
 
service
Well, rabbitMQ is decent.
but for simplicity there's also Beanstalkd
 
But what if he runs it on Windoes
Have Microsoft already made some kind of Queue Server 2008 or nah?
 
3:00 PM
rabbitmq runs on windows
 
@Fabor rubbishmq
 
What don't you like about it @Ocramius?
 
Nothing, I just like the sound of it
 
well I have the queue in the form of a DB Table with records which have to be processed
 
When you shake any software, the sound it does is the sound of rubbish
 
3:02 PM
@Fabor when I wasn't lerning German, it was something like from 9 to 9 :p
 
I can always write a PHP task schedule that processes them
 
@AlmaDo As long as you enjoy it... :)
 
OH: “I was working with this complex queuing software called RubbishMQ"
 
@Ocramius heh
 
@Fabor yeah, it's because this is fun
 
3:03 PM
Weather in Moscow is badly broken this year, it snows without the end
 
@Jimbo followed that reddit thread (while eating some popcorn)
Not going to get involved, but I would argue that if you need the boundaries that he talks about then you better set that part up as a different app/microservice/package instead of putting it all together and use a service locator or however else he calls it
 
So do you know any good components for running queues or do you suggest that I write my own
 
@ziGi use RabbitMq or ActiveMq or whatever supports amqp protocol and considered as a mature queue server. Don't use db for that
 
@ziGi "later" ?
 
@Worf what I meant was, when you want to implement a typehint (for example an Interface) so you can do DI, and the argument is null
 
3:10 PM
RabbitMQ basically has nice features which are not supported in other brokers
 
@ziGi yeah because in php there's no difference between "nullable" and "skippable"
 
@Worf but then why when you are missing a typehint it can be nullable but when there is a typehint it can't be nullable
hm
 
@AlmaDo I thought it was ActiveMq which had more features
 
@ziGi coz php! :D
 
@nikita2206 well, I don't think RabbitMQ has "all features and something more". It's more correct to say - they might have different features. From my experience, Rabbit was better since had desired features for me
 
3:14 PM
@salathe lol
 
like dead letter exchange and requeue amqp support
 
@AlmaDo sure, it's also simpler than ActiveMq. Still ActiveMq has these two features as well
 
@nikita2206 huh? judging by docs it hasn't. But point to the place, may be I'm blind
 
Hello =]
 
@AlmaDo it's here and here
 
3:28 PM
@bwoebi it's overflowing by two chars for me
 
Anonymous
@HamZa ping
 
Anonymous
regex Q.
 
hello folks, can someone tell me what does this do please ?
$html .= <<<EOF
the EOF
 
3:45 PM
@nikita2206 oh so instead of doing this $mystring = "This is my stupid string", i can do this $mystring= <<<EOF this is my other stupid string EOF; , Is that it ?
 
@Joseph yes, but you'll need newline after <<<EOF and before EOF;
 
@nikita2206 alright :)
 
@samaYo pong
@Joseph it's mostly used for multi-line content
Fun read:
1937
A: Why aren't programs written in Assembly more often?

ssgHellо, I am a compiler. I just scanned thousands of lines of code while you were reading this sentence. I browsed through millions of possibilities of optimizing a single line of yours using hundreds of different optimization techniques based on a vast amount of academic research that you would ...

2
 

« first day (1647 days earlier)      last day (3300 days later) »