« first day (1013 days earlier)      last day (3935 days later) » 

Anonymous
2:00 PM
@Orangepill you would recommend that even for a simple classes?
 
@Gordon :/
 
@Danack I'm implementing a TurkeyAdaptor in production; regardless of how ridiculous or unused it is.
2
 
@Simon_eQ Decorators are pretty simple to implement might be a little cumbersome if the number of methods is long but it wouldn't be hard... just tedious.
 
@Bracketworks rofl - I did actually not look that closely at the diagram.
 
It's so funny to find bugs like these in the current stable WP version: i.stack.imgur.com/1RJ4n.png
 
Anonymous
2:03 PM
@Orangepill thanks. I just have 2 classes with 4 methods each, and I only need my third class to inherit 2 methods out of those classes. Not that complex imo.
 
@Simon_eQ actually the accepted answer in the question you posted is kinda what I was thinking ... I was going to suggest forwarding the calls manually instead of using __call but basically it is the same.
 
Finding MySQLs restriction on having one field default current_timestamp, and another field on update current_timestamp, to be be quite annoying
 
PLB
@Simon_eQ Maybe you want to rethink about your class architecture? Because I have just ended up with some nice spaghetti code because I've ignored SRP violation.
 
@JohnBlythe Hello
 
Anonymous
2:13 PM
@PLB the classes are very simple. The problem is that, if I cant find a way to inherit both classes at the same time, I will end up with spaghetti code :)
 
PLB
@Simon_eQ Would you mind sharing what those classes are doing?
 
@Jack I can analyze own packets using wireshark, but the thing is I need to steal another packets flowing from another pc
 
PLB
Stealing is bad. :)
 
@PLB Experimental basis, am learning protocols these days, the tut said that the packets are not encrypted so I want to steal those un encrypted packets and want to read the data
 
Anonymous
@PLB class A sanitizes user inputs from validating email, pass, strings ... you name it all kinds. class B handles db query, like for ex: checking if a given email exits in db .... Now, I created a login class (class C) which unfortunately must use string validation from class A, and checking if email exits from db... Which is a method from class B. so login class must extend A and B at the same time
 
2:19 PM
@Simon_eQ heya :)
 
@Simon_eQ If you could pastebin something, we can probably give you some advice :)
 
Anonymous
Hate typing from ipad ..@Mr.Alien suuuuuup
 
@Simon_eQ back from office, and get a laptop
 
PLB
@Simon_eQ Sounds like DB class should be holding DataValidator object.
 
Anonymous
@Bracketworks wish I could. But, am outside, my laptop is at home. @PLB you mean merge the two classes?
 
2:21 PM
@Simon_eQ Sounds like the login class needs an instance of classes A and B as dependencies.
 
PLB
@Simon_eQ No. One moment.
 
@Gordon Does .htaccess gets cache?
 
interface IValidateStuff { }

interface IPersistStuff { }

class DoTheLoginShuffle {
    public function __construct(IValidateStuff $a, IPersistStuff $b) {
        // ...
    }
}
"Login" doesn't sound like a class though, it sounds like a sequence of procedures.
 
@Mr.Alien no
 
@Gordon I don't know but before a week I was changing the rules for redirection, didn't affected on the local, I cleared the cache and than it worked, I just gave an answer now, so I commented same over there
 
PLB
2:26 PM
Here's what I meant
 
Anonymous
@Bracketworks that makes sense, I should give that a try, till I find better alternatives ... login is just a very simple function wrraped in class
 
PLB
You can abstract those classes using namespaces.
 
@Simon_eQ Then that doesn't sound like a class.
 
posted on July 25, 2013 by Anna Filina

Most companies and recruiters compare developers based on hourly rates. They’ll hang up before getting to know a developer just because the rate is out of their range. Little do they know of the opportunities and deals that they miss. See, hours mean nothing, because efficiency of a developer is variable, and not just by a few percent. I’ll explain this with cereal boxes. Say you need to buy 2

 
Anonymous
@PLB thanks. I see your point. I guess its doable that way too.. I just wanted class sanitize and class query to remain as is, and class login should do all the action. that way the two classes can remain can be easily portable to other projects
 
PLB
2:35 PM
@Simon_eQ I have hardcoded those classes in constructors, you should use interfaces in real-world.
Like that in another project you can simply implement it and pass to existing class.
Dependency injection is a software design pattern that allows the removal of hard-coded dependencies and makes it possible to change them, whether at run-time or compile-time. This can be used, for example, as a simple way to load plugins dynamically or to choose stubs or mock objects in test environments vs. real objects in production environments. This software design pattern injects the depended-on element (object or value, etc.) to the destination automatically by knowing the requirement of the destination. Another pattern, called dependency lookup, is a regular process and reverse ...
 
Anonymous
I always use DI. I will try to figure out about class abstraction later, and take o e some ideas I got here.
 
PLB
Good.
Good luck with your project.
I have to do huge re-factoring. So see you later.
 
Anonymous
ok, thanks & later....
 
> i poured my root beer into a square cup and now all i have is beer. please advise.
 
Anonymous
root beer ?
 
Anonymous
2:45 PM
we don't have that here :)
 
Ahhahahaha
<DaMullet> Freudian: too short
<Bucket> That's what she said!
<Freudian> :(
<Freudian> :((
<DaMullet> Freudian: TOO MANY CHINS
<Corynne> :((((
<Freudian> :((((((((
<Corynne> :((((((((((((((
<Randall> god dammit guys
<Randall> )))))))))))))))))))))))))))))
(no more I promise)
 
@Bracketworks that doesn't sound like a problem.... root of -1 beer would be
 
@mr.alien that looks like the question was written in malformed base64
 
@Orangepill I thought he was asleep and his head was on his keyboard :p
 
2:52 PM
Well I'm going home to continue on private projects! :p
bye bye
 
@dragon112 Private ?
 
Yea, as in my own, not my boss'
the ones I actually do for fun :p
 
Oh, shuu
hehe :) enjoy your private projects(personal)
btw, I got a dragon tatoo now
 
Picture or it didn't happen.
 
@dragon112 See this
 
3:01 PM
@hakre Me Chris wasting votes? I didn't see any context to your message, just got pinged, couldn't tell what on earth you meant.
 
Ahoy hoy
 
@ircmaxell Greetings friend! Do you wish to look as happy as me? Well, you've got the power inside you right now! So send one dollar to happy dude, box 402. And remember, eternal happiness is just a dollar away!
(bah, I effed it up)
 
[tag:ummm[
 
> Well, you've got the power inside you right now. So use it, and send $1 to Happy Dude, 742, Evergreen Terrace, Springfield. Don't delay. Eternal happiness is just a dollar away!
 
3:11 PM
[tag:[tag:ummm[]
aww :(
 
lol
 
> Parse error: syntax error, unexpected end of file, expecting ']'
 
@Bracketworks Crappy parser!
 
@Bracketworks Eternal happiness for only a dollar? This is a deal too good to pass up!
 
I'm just going to leave this here to stave off confusion:
 
user895378
3:19 PM
@bwoebi It doesn't particularly matter how you save data. My objection was that I needed a database to interact with your websocket application. What does MySQL have to do with Websocket? That's why I suggested hiding whatever you were doing in the database behind an abstraction. If you're persisting data your architecture should be such that you can seamlessly change to another type of data storage without ever having known the database was there.
 
user895378
As for static, I just think it's always a bad idea. It's not about "hiding" static calls behind an OO interface. They shouldn't be there in the first place.
 
i need to setup ubuntu server on my VPS but CentOS 6 x86 already installed ,how to do that?
 
user895378
@DaveRandom I hadn't ever used Weakref before. I'll keep that in mind but I'm still going to see if I can't figure out how to plug that memory leak without resorting to hacks. I may not succeed.
 
@rdlowrey Please explain me what sense this makes?!
 
user895378
@bwoebi What sense? I really don't have time to descend into all the reasons why static is a bad idea. 90% of the people in this room will agree with me, though.
 
user895378
3:23 PM
static behavioral methods are an anti-pattern. Period.
 
@Samithaఠ_ఠ You don't
 
@rdlowrey anti-pattern aren't always bad?
 
You install either centos or debian or whatever
 
reason?
 
3:25 PM
personal preference... so law ;)
 
why the hell would you downgrade from centos to ubuntu ?!
 
@tereško What kept you so long? :P
 
@rdlowrey I'm not so certain it's a hack, as such, I suspect it was user error - I have a suspicion I'd stored a node reference from the document somewhere - which has a reference to the document in ownerDocument, so destroying the document object itself wouldn't have been enough. As it is I've wrapped the whole thing in a class of it's own so nothing else ever gets a direct ref to the document and I never store any nodes anywhere. Now the memory is freed when I destroy the wrapper obj.
 
@PeeHaa i need to create 2 users .these are the ips 198.56.238.192, 198.56.248.171, How will i do that via putty ?
 
user895378
3:26 PM
@bwoebi Those two links should save me from falling into a discussion I don't have time for. I won't try to beat you over the head with anti-static sentiment, but I do think you should read them.
 
@PeeHaa life
 
adduser ?? @Samithaఠ_ఠ
@tereško right... ;)
 
user895378
Before you use static or nest multiple if statements it's a good idea to ask yourself: would @tereško yell at me for doing this? If the answer is "yes," then don't do it.
8
 
@tereško: Every developer's thermometer
 
3:28 PM
@rdlowrey tere^sko yells for too much :o
 
sometimes i feel unappreciated
 
@bwoebi lol @ hacky š
 
@rdlowrey Is it still bad when it just relies on some interface
@DaveRandom yep, noticed too late^^
 
user895378
@bwoebi Not sure what you're asking specifically?
 
@rdlowrey I mean db::__callStatic can always prepare the data if necessary before it's thrown at the static methods behind? so there is no direct dependency on static?
 
3:32 PM
@PeeHaa For some reason the word "thermometer" looks really odd to me. I read it about 6 times before I realized "oh, a temperature gauge"
 
user895378
@bwoebi Yikes, I like that even less because then you're into "magical" static calls. Tell me, how can you mock that behavior for unit testing?
 
statics are basically just namespaced globals.
 
@rdlowrey to test the db class, just mock a class which implements dbLayer. If db::__callStatic returns the right on calls to the functions defined in dbLayer, everything is correct
 
@Orangepill And using a global is at least honest, rather than pretending it's not.
 
user895378
@bwoebi How do you mock the db::__callStatic result?
 
user895378
3:36 PM
It's just the difference between object oriented programming and class oriented programming. static is class oriented programming. You can't change the behavior of static because it is, after all, static. When you use object oriented programming you can slot in any behavior for any component. It makes testing trivial.
 
@rdlowrey runkit_method_redefine ?
 
user895378
@bwoebi That's a hack.
 
user895378
The suspected need for monkey patching is a code smell pointing to(re)use issues and a failure in understanding OOP and the value of testing
 
@rdlowrey and not allowed for unit testing?
 
If you need to use runkit for unit tests I feel that you're doing something wrong
 
3:38 PM
(I understand that you should really avoid it in real code, but in unit tests?)
 
user895378
@bwoebi No, but if you write well-designed code you shouldn't need it.
 
@cspray I think that can be edited to "If you need to use runkit, you're doing something wrong"
 
@Bracketworks Touche
 
2 messages moved to JavaScript
 
@bwoebi Unit tests are real code too
 
3:39 PM
@danack I can't say I don't use statics but I have the decency to feel ashamed of myself when I do
 
btw. why should I need to mock db::__callStatic() result? I just have to return the right data from the dbLayer implementing class behind
 
user895378
@bwoebi Because you need to test your code.
 
@bwoebi @igorw recently posted a library to achieve redefining methods without runkit
 
@Gordon what doesn't make it less hackish?
a) test if db::__callStatic works as expected
b) test if the code relying on db works via returning mock data from the implementation behind
I really don't see where this isn't testable. But what I had done before, wasn't testable.
 
Patchwork: A pure PHP library that lets you redefine user-defined functions at runtime. http://antecedent.github.io/patchwork/
@bwoebi it's not that statics are untestable. but they certainly make testing harder than necessary
 
3:44 PM
hi
 
@Gordon they make testing a bit harder, but that's the price for writing easier code
 
@bwoebi it's not easier
public function someFoo()
{
    if (ActiveUser:isLoggedIn()) {
        doSomething();
    }
}
 
@Gordon bäh. nee. this is not a right use of statics
 
I had a project where the entire ActiveUser thing was a class with static methods around the Session. I felt it was easy and good to use until I tried to test it. It forced me to set the application into a valid state before I could unit-test the component using that class. It was just painful.
 
why are you even trying ?
let him write his crappy code and ignore him
 
3:48 PM
@bwoebi check misko.hevery.com/2008/12/15/… for some more info about it
 
@Gordon I feel I should write a few tests and look how well this works…
 
@tereško because unlike you I believe in discourse ;)
 
before… it doesn't make sense to discuss about it, because I won't have a real idea about what I'm talking :-)
 
@Mr.Alien THAT'S NOT YOU! :o
 
3:53 PM
@bwoebi it's not like a single static will make your project or testing go boom. but a lot of statics will. Also check kore-nordmann.de/blog/0103_static_considered_harmful.html and sebastian-bergmann.de/archives/…
 
@salathe no comment.
 
@salathe I expected someone to post it. but no, thank you ;)
 
@Gordon You're not allowed to advertise it? :P
 
@salathe I don't want to :)
 
@Gordon good! we can still be friends then :)
 
3:55 PM
@salathe huzzah! \o/
 
@Gordon right. This is the only real static dependency in my whole app... (except SequentialParallelWorker::exec() and SequentialParallelWorker::start(), but this was for technical reasons, else pthreads would go make boom)
 
21 hours ago, by Chris
I don't think ALL Obama "supporters" are naive. I voted for Obama, and would again. Not because I think he is a great leader or will change the essential nature of greed and oligarchy, but rather because we are given a binary choice. Mitt Romney would have expanded the drones, and cut social programs, etc, etc, etc. Nothing would have been different.
I thought I had linked that.
 
What are best practices to avoid SQL injection when using AJAX with PHP POST requests ?
 
@silverflash the same as for any query.
 
@silverflash the same as you would with other HTTP requests.
 
3:59 PM
@hakre mysql_real_escape_string
 
1688
Q: How to prevent SQL injection in PHP?

Andrew G. JohnsonIf user input is inserted into an SQL query directly, the application becomes vulnerable to SQL injection, like in the following example: $unsafe_variable = $_POST['user_input']; mysqli_query("INSERT INTO table (column) VALUES ('" . $unsafe_variable . "')"); That's because the user can input ...

 
209
A: Why shouldn't I use mysql_* functions in PHP?

NullPoiиteяPHP offers three different APIs to connect to MySQL. There are the mysql, mysqli, and PDO extensions. The MySql_* functions are very popular, but their use is not encouraged anymore. The documentation team is discussing the database security situation, and educating users to move away from the c...

 
4:13 PM
@bwoebi wuut? today I was really spare with those so far. :D
(anyway others did a great job). afk, wbbl
 
Incoming co-recursive acronym! A jax is J ust A nother request. X ylophone!
 
@hakre more than two cv-pls per 10 minutes is far too much :-P
@Bracketworks Ajax is just a XHR?
 
@bwoebi I was gonna do that, but XHR would probably be confusing for those who don't know it's just another request to begin with.
That and xylophones are awesome. They're the theme instruments to skeletons.
 
@Bracketworks Xylophone confused me much more :-P
 
@bwoebi It confuses the savvy, and aides the unknowing! Xylophones strike again!
 
4:19 PM
Shouldn't we say:
ajax = ajax: just another XHR
XHR = XHR: http request

=> ajax = ajax: just another http request
=> fully understandable :-)
 
@bwoebi You lost me at "Shouldn't we say"
 
@bwoebi +2
 
@Bracketworks skeletons? youtube.com/watch?v=Nn8cWVwpQU4
 
(and we strip the xml away… nobody transfers only xml with ajax)
 
@Gordon ^
 
4:29 PM
Does this make sense to anyone other then me?
0
A: Properties shared between child and parents class in php

OrangepillYou are mixing object composition and class inheritance. Inheritance (realized through the extends keyword) defines an is a relationship. Composition defines a has a relationship. To illustrate this concept we will start with inheritance. class Person { public $name; public functio...

 
Is there a PHP routing library which is only
*that
 
@Bracketworks makes sense
on an unrelated side note. awesome quote is awesome
> "There is nothing as blinding as success." - Haas, Chairman of Levi Strauss
 
my favorite is - “Build a man a fire, and he'll be warm for a day. Set a man on fire, and he'll be warm for the rest of his life.” - Terry Pratchett
4
 
@Orangepill haha
 
Evenings room 11!
 
user895378
4:39 PM
@Orangepill that's great -- haven't seen that one before :)
 
@Orangepill I'll interpret "set a man on fire" with "instill him with passion" instead of taking it literally
 
user895378
@PeeHaa Evening. Any bans for insensitive treatment of American feelings today? :)
 
@rdlowrey Neh, but I'm thinking about offending native muricans today for good measure. Just trying to think of a way to do it
 
user895378
@PeeHaa lol, you might appreciate these hilarious stereotype maps
 
@PeeHaa The abbreviation of Americans is 'Merkins
^ nsfw
 
4:44 PM
@Danack That is totally awesome. If they haven't fixed the airco tomorrow I'm going to get one for sure
 
@Danack I was not aware that was a thing. scary.
 
user895378
LAND OF AWESOME
 
Jul 20 at 7:25, by Gordon
these are funny: http://alphadesigner.com/mapping-stereotypes/
 
That site is AWESOME!
 
user895378
4:47 PM
Aha, apparently @Gordon has already walked this path. Brilliant.
 
The geography is too accurate for that map to be true. :)
 
Nordic Union of natural blond [word for female genitalia]!
 
user895378
@Orangepill really? Did you see where we think the Suez Canal is?
 
@gordon That's what I like about that quote... you can take it either way and it's true :)
@rdlowrey I can't find it
 
user895378
@Orangepill here
 
4:53 PM
@rdlowrey Okay... it was too obvious
I like the japan reference
sushi ninjas
 
Useless post is useless: stackapps.com/questions/4240/…
4
 
@rdlowrey The sad thing is those maps are pretty accurate for a lot of the general population
 
user895378
Well, who really needs geography in a world with google and GPS anyway?
 
5:11 PM
@rdlowrey Just the guy aiming the missles :)
 
5:21 PM
can someone please explain why "SELECT COUNT(id) as number FROM people WHERE group_id = 10 LIMIT 20 ORDER BY number DESC" is faster than "SELECT COUNT(id) as number FROM people WHERE group_id = 10"
but I'm using ORDER BY, how does it know which is the greatest with out going through all records?
 
does bluehost supports for hosting site developed using Zend framework
 
I presume you are using mysql. and in mysql , limit is performed after order by, and order by is done through mysql internal indexing that is fast . first it will orderby that where clause will be applied and after that and mysql counter will start from top of the table . a and it will stop after 20. but in second scenario , while there is no orderby but it will read ful table that is slow comparison to indexing
more you can find on mysql optimization of qery
 
@developerCK hmmmmm
thanks
 
@PeeHaa I don't get the significance of 4240
 
5:37 PM
welcome @iroegbu
 
42 40 is B@ or *( in ASCII for hex/dec respectively.
Is he trying to say that we'll go "batty" for the Android app?
 
@Bracketworks I don't get the reference either
 
I'm going with chr(0x42) + chr(0x40) = B@ = "bat" = "I'm cuckoo for Cocoa Puffs!"
 
:P
 
On another note, screw the concatenation operator. If I can't interpolate it, or pass it to sprintf, it's not happening.
 
5:46 PM
I hate when people use what I wrote out of context as a justification against something stupid
 
6:01 PM
MUST SMASH!
-1 by the way. The question asked was "What is hapenning" and this answer makes no effort in answering it. — Shawn 1 hour ago
 
if($foo = get_instance()) {
if($bar = get_instance()) {
// foo and bar are objects
}
}

but:

if($foo = get_instance() && $bar = get_instance()) {
// foo and bar are booleans
}
can anyone explain this behaviour?
 
$bar is not a boolean
 
true, sorry.. but $foo is
So, anyone knows the internal behaviour of why this is happening?
 
@JarnovanLeeuwen Operator precedence
$foo = get_instance() && $bar = get_instance() is evaluated as $foo = (get_instance() && $bar = get_instance())
You can solve this either by writing ($foo = get_instance()) && $bar = get_instance() (preferred) or by replacing && with and (better not)
 
6:18 PM
I store in database some objects that represent state of the system and i want to log every change that were made after object creation, at least date of the change and possibly field that were changed (or even possibly previous and new values). What is the proper way to do it? I thought about making one big table with something like {id, entity_type, field_name, old_value, new_value, date, action_type} and write a whole lot of triggers to automaticly insert data into it.
 
Why does php make me put a semicolon after defining a closure....
 
@Orangepill Because expressions always need to be terminated by a ; to form a statement
 
@NikiC Thanks, I should've thought of that! :-)
 
By the way i'm going to use symfony2 and if its possible i would like to use Doctrine ORM if it has such functionality. Maybe there are some options that adds loggin for each table?
 
wb
 
6:20 PM
@NikiC it looks wrong to have a ; after a }
 
wb @hakre
@Orangepill I would say the opposite in that case :)
 
I think you put a semicolon after a closure in almost every language
 
@Orangepill you don't have to. You can put it inside of other statements / expressions and not directly need it
 
@Orangepill $c = $s{$i}; <- semicolon after }
 
@rdlowrey @rdlowrey @rdlowrey @rdlowrey
 
user895378
6:24 PM
@PeeHaa ?
 
wow
damn fast
:P
 
user895378
I was just one window away in the text editor :)
 
I'm going to start implementing artax for something and I'm lazy:
 
@PeeHaa @PeeHaa @PeeHaa @PeeHaa @PeeHaa @PeeHaa @PeeHaa @PeeHaa @PeeHaa @PeeHaa @PeeHaa @PeeHaa @PeeHaa @PeeHaa @PeeHaa @PeeHaa @PeeHaa @PeeHaa @PeeHaa @PeeHaa @PeeHaa @PeeHaa @PeeHaa @PeeHaa
 
> Fatal error: Access level to Amp\NativeReactor::notify() must be public (as in class Amp\Observable) in C:\Users\PeeHaa\Desktop\ph\Websites\WebMonitor\vendor\Artax\vendor\Amp\src\Amp\N‌​ativeReactor.php on line 377
@ircmaxell awesome :)
I'm using the multi---curl--- eeerrrrrr request example
 
user895378
6:26 PM
@PeeHaa Have you tried re-cloning recently?
 
@rdlowrey 1 to 2 weeks ago
Let me fetch the latest
 
user895378
Yeah, better go ahead and git pull. Should be fixed.
 
k tnx
:)
 
user895378
Let me know if you still have problems after updating.
 
-1
Q: If god had a sexy donkey, would he name it PHP or PYTHON?

Debug_InfoJUST THE USUAL PROCEDURE TRYING TO GET ALL MY QUESTIONS DELETED BECAUSE I CAN'T DELETE WHEN THERE ARE ANSWERS POSTED. DON'T LIKE TO PUT MY SECRETS ON THE INTERNET ALL I NEEDED WAS THE ANSWERS.

@rdlowrey sure
 
user895378
6:28 PM
@PeeHaa Alternatively there's also composer support now courtesy of @Ocramius if you'd rather do it that way.
 
@rdlowrey I don't need to stinkin composer :D
 
@rdlowrey I only edited the readme :X
 
@Ocramius lol
 
@rdlowrey btw, your API is quite good. It took me < 5 minutes to convert 20 classes to use it instead of Zend\Http =D
 
6:30 PM
oh nice feedback.
 
user895378
@Ocramius Thanks -- it took me a while to get to that point. It was kind of difficult to use until I rewrote it a few weeks ago.
 
/me throws dirt at SensioLabsInsights: Y U NO EVAL?!
@rdlowrey the interesting thing is that we wanted to make the client event-driven for ZF3... this one is already at that stage =D
 
ow crap. forgot about the submodule :P
 
@PeeHaa still submodules? Composerize yourself <_<
err, stay composed
 
:P
 
user895378
6:33 PM
@Ocramius Yeah. Note that the Async version will play nice if you want to run it with another event loop. You would just add a call to Amp\Reactor::tick() inside your event loop for the reactor object injected into the AsyncClient.
 
@ocramius ZF3 is already in the oven?
 
@Orangepill yes
we're still defining what to do, but I already started working on my areas of interest
 
@Ocramius What components are you working on?
 
6:34 PM
won't be a jump like ZF1->ZF2 though, since major releases should now come every 2 years
@Orangepill EventManager, ServiceManager, Code generator, Di, Hydrator
will be ready next year btw
 
user895378
@PeeHaa Yeah you need to update the amp dependency too. Should've mentioned that.
 
Should have known that :)
> Fatal error: Uncaught exception 'PDOException' with message ' in C:\Users\PeeHaa\Desktop\ph\Websites\WebMonitor\template\page.phtml on line 33
 
user895378
The API hasn't changed ... just some internal bug fixes for things like the issue you were having.
 
Wow Artax.. I remember crying on that scene
 
Much better <3
 
6:37 PM
@Ocramius better get up to speed with ZF2 then... exciting ...you guys do good work
 
user895378
@JarnovanLeeuwen I know right! So sad.
 
was I really banned today??? o_O
 
posted on July 25, 2013 by Christopher Jones

PHP OCI8 2.0.0-devel is now available on PECL (and in the PHP 'master' branch). This is a development release, so changes may occur. I'm looking for feedback, particularly on: Feature design, including naming choices Install feedback from different platforms with different build tool versions Whether to drop support for installing on PHP 4. I'm likely to do this. (The OCI8 1.4.10 rel

 
42 days seems appropriate number of days....
 
Wut? @hakre Who let you back in????
@Gordon ^ handle it pleeeease
:D
 
6:39 PM
magic powers twisted with unicorns into a sword and my brave fight?
 
@Feeds I just say the post is bullshit because it mentions oracle db.
 
:-)
 
Paying for an sql server:
@hakre do you get another badge?
 
Can Doctrine automaticly log every action (not exactly queries that go throught it, but specificly data that gets updated) into database itself?
 
@Ivan0x32 yes
2
Q: Create entity on entitiy flush

ideeahow can i achieve this: For example, i have Issue entity. I need to log field change on Issue entity. If user changes field "status" on issue entity i need to create database record about it with user, who changed, previous status and new status. Using: Symfony2 + doctrine2.

 
6:41 PM
Oh thanks!
 
@Ocramius the 42-is-the-answer-achievement badge probably?
 
@hakre heh
 
@tereško What's the difference between : $this->serviceFactory->build('foo') and $this->serviceLocator->get('foo')
 
@DaveJust A service locator doesn't inject
I think I have seen a GREAT comment from @rdlowrey somewhere on the intarwebs
 
user895378
About service locator? Maybe.
 
6:46 PM
@rdlowrey Can't find it anymore :(
 
@PeeHaa yep, but service factory abstracts DI
 
@DaveJust the characters that you use to type it
you can't tell a pattern from a single line
and people use the wrong names for things all the bloody time
 
user895378
@PeeHaa I went on a rant one time in the comments of an article on ralph schindler's blog where he was trying to say "SL isn't really an anti-pattern" but I don't have a link.
 
found it :D
@DaveJust And don't just read the article itself
 
> The “as long as it makes sense to the machine code” argument could likewise be used to justify the use of any frowned-upon practice … go-to statements everywhere, global everywhere, who cares! The machine understands it and the code works as planned! Yet you’re using classes. Why? Presumably because you see the maintainability benefits of OOP. If we only care about the machine’s ability to understand code, why do we bother with anything but procedural spaghetti?
 
6:54 PM
@PeeHaa wrong. Most times, a DIC is also a SL
mainly because of how you end up building them
 
@PeeHaa thanks for the link ...
 
@Ocramius SL is not an implementation pattern. DIC is
 
@Ocramius servicefactory !== dic
 
SL is a usage pattern, not an architectural one
 
Implementation wise they is little to no difference right?
 
6:56 PM
Are we talking Service Locator or Service Location? :P I'm talking Service Locato***r***
 
depends
Any DIC Container can be a SL. Not all SLs can be DIC Containers
 
ofc
and as I said, most times, a DIC is a SL
 
But not all DIC are SL
 
@ircmaxell rarely saw that. Mainly because it's kinda useless
 
what determines DIC is based on how the container is implemented. What determines SL is how it's used
@Ocramius HUH? useless? So I guess the majority of ZF2 and Symfony2 are useless?
 
6:58 PM
@Orangepill Thank @rdlowrey for his awesome job in the comments :)
 
@ircmaxell there's only an injector in there that is not a SL, and only in one of the two
 
@rdlowrey Thanks :)
 
@Ocramius both use a DIC as a DIC in the majority of the framework
Both use it as a SL in some parts, but not that much...
Learning new tech: 1. This is so awesome, it's magic. 2. This is terrible, nothing works. 3. I'm so fast at this. 4. Oops, this is obsolete.
 
@ircmaxell a DIC which is also a SL
that's what I mean
 
No object is a SL
 
6:59 PM
I'm saying that a DIC that is not also a SL is almost always useless
eh?
 
A class is a DIC
a class/object is used as a SL.
 

« first day (1013 days earlier)      last day (3935 days later) »