« first day (531 days earlier)      last day (4431 days later) » 

8:05 PM
@rdlowrey looks a bit hack'ish
and did you actually check if your "thing" with 500th error actually works ?
especially since most common reason for it is endless loop at some level
 
user895378
@tereško I'm not sure I understand what you're asking
 
@tereško Maybe, but filtering PHP's errors is a bit hackish anytime you do it.
 
i am saying , that i have reasonable doubt for this $listeners->{'http.500'} ever being called
 
user895378
If an exception occurs during the invocation of an exception listener the chain is broken and execution stops.
 
user895378
At boot time custom exception and shutdown handlers are registered that route all uncaught exceptions and fatal runtime errors to the exception event. exception event listeners are always passed an instance of Exception that they may handle as they please. If, during the course of exception listener invocation, a further uncaught exception arises, execution will cease immediately.
 
user895378
8:13 PM
If debug mode is turned on, the relevant error message will display. If not, the script terminates silently so that end-users aren't shown an ugly error message because you were a moron who allowed your exception handler to throw an exception
 
user895378
    try {
        $this->mediator->notify('exception', $e, $this->debug);
    } catch (ScriptHaltException $e) {
        return;
    } catch (Exception $e) {
        echo $this->defaultHandlerMsg($e);
    }
 
user895378
@LeviMorrison Thanks for updating the Tokenizer situation. I updated a couple of variable name references that didn't get fixed. Otherwise it's great. And it didn't break my example script :) I've been holding off on writing unit-tests for the Http package code because it's subject to change and I'd probably end up duplicating lots of work.
 
@rdlowrey It still has a lot of work. At least I was able to work on it a bit.
 
@rdlowrey Is it a framework proposal?
 
user895378
8:24 PM
@Keyne I wouldn't call it a framework proposal. It's a project that @LeviMorrison and I are working on. Feel free to peruse the source code or the half-baked wiki if you like.
 
user895378
@Keyne The core package is fairly stable at this point, but nothing else is. There's no code on the master branch in the Http package at the moment -- it's all in the dev branch.
 
user895378
Unrelated to anything or anyone, but ... for the record ... I'm starting to have crazy man-love for git
 
Nice :)
I'll give it a look. Currently I'm studying some frameworks/components proposals to better understand the architectural paradigms being used. Right now I'm focused on this part: the request, routing and response. So your code came in a good time. I'll let you know if I got any ideas.
 
@rdlowrey Which parts have you going goo-goo?
 
user895378
@LeviMorrison The submodules are awesome ... but I've just in the last week or so started doing lots of branching and merging for adding features. For example, the fact that I was able to dump the unrelated stuff I'd made changes to into another branch before pulling your Tokenizer changes. Stuff like that is awesome.
 
8:43 PM
hi all
 
hi
 
user895378
@LeviMorrison Real quick I want to revisit the "why only allow custom specification of Closure controllers and not all callables" question ...

(1) I want to disallow the bad decision of using static methods or global functions as controllers
(2) The above leaves only Closures and class-based callbacks (array-style [$instance, 'method'] and instances with a magic __invoke() method).
(3) If you're using a class as a controller then just let the Router instantiate it for you. Further, because the Router will automatically provision the controller class's dependencies, there is no need to manu
 
@Keyne Welcome to the framework maker's club. :)
 
user895378
@GordonM lol
 
Seems to be all the rage in here for people to be working on a framework of some sort.
 
user895378
8:47 PM
I like to think of it as "the place where bad code ideas go to die"
 
:)
@rdlowrey What's the latest status on your project?
 
user895378
@GordonM Crazy HTTP routing stuff happening, though it's only on the dev branch, not master, if you go looking to see what's been happening.
 
user895378
How about yours? Other than the unit-testing excitement?
 
Today was pretty light on executable code. Spent most of the time giving the validation package classes proper docblocks.
 
anyone got a solid working regex for letters only (a-z) and at least one space plus characters (like öçüğş)
 
8:51 PM
I also realised a possible improvement for one of the components to make it a hell of a lot more flexible but haven't done any actual development on it yet.
 
user895378
@GordonM As of 30 seconds ago I'm now watching reefknot, so I won't have to ask what's happening next time :)
 
@GordonM =D I'm not qualified to build a full-stack framework, but when using the available frameworks I always ask my self why it's so hard to clearly understand everything that has been done. In the end, for studying, entering on the framework maker's club is the best option.
 
user895378
@Keyne This chat room is amazing for sharing and picking up new and different approaches to solving "framework" type problems. When you force yourself to stop and build the whole thing for yourself you'll learn so much.
 
@rdlowrey I think you're my first watcher, so thanks ;)
 
user895378
Not to mention, once you get to the point where you're good enough to see the flaws in the popular frameworks, the natural path is to work on your own instead.
 
8:55 PM
Yeah, I agree, when you're forced to write code in a highly generalized way you really learn a lot about good coding.
 
user895378
Your first couple of iterations might be terrible, but even if you don't make something usable or it takes a really long time ... the amount of knowledge you'll gain is really amazing.
 
As for the validator idea, I currently have a Required plugin and a RequiredOnVal plugin. The Required plugin forces a value to be non-empty. The RequiredOnVal plugin forces a value to be non-empty if a dependant condition is met. At the moment the condition is extremely simple. You give it a dependant value and a flag. If the flag is in one state then the value is required if the dependant value is empty. If the flag is in the other state then the opposite is true.
I just realised today that if I replace the flag with a callback I can make that particular plugin far more powerful.
 
user895378
All right, quittin' time. Enjoy the learning gentlemen.
 
You could then make your field required if the dependant field is in a particular range, or on a particular date, or anything!
@rdlowrey See ya round
 
@rdlowrey Bye!
 
9:00 PM
@rdlowrey Unsure. I'll have to think more on that one.
 
user895378
@LeviMorrison No problem, just food for thought. Catch ya later.
 
9:11 PM
@LeviMorrison I just noticed that PHP's internal data structures suck just as much as the user-facing ones
Or even more, I'd say
 
@NikiC just?
 
evening
 
word
 
libreoffice
 
@ircmaxell It's terrible, really.
evening @Gordon
How's it going?
@ircmaxell I tried to fix a pretty simple issue (lexing of nested heredoc strings in the tokenizer ext) but got completely fed up in the whole stack mess.
 
9:21 PM
@NikiC so far so good. tired though. been at the office til 9
 
@ircmaxell One example: In order to access the top element of a zend_ptr_stack, I have to first pop the stack and then push it again :D There is no top or peek or I don't know what in the API
@Gordon good to hear :)
It can't be that hard to just provide a nice and simple stack API
Though maybe they want you to access the top element directly via stack->top_element. who knows ^^
 
9:51 PM
Ah, nice
 
night
 
good night
 
10:16 PM
1
Q: Pure-C: Developing FTP client, troubles with memory allocations in Knuth-Morris-Pratt algorithm

Mooing Duckcommented: Since you won't let us edit your code, please remove the pictures, please remove all unneeded code (the rest goes at ideone.com), and remove background info. The fact you're making an ftp thing isn't relevant to passing -1 to malloc.

 
@JamshidHashimi pastebin.com/VxpAae6u
oups
the guy is gone
 
10:46 PM
Is it correct that getDataSet in a PHPUnit DB test (PHPUnit_Extensions_Database_TestCase) should populate the DB with the given dataSet?
If its of any help my BaseClass looks like this: pastebin.com/a4mKd3Kt
 
11:06 PM
I am sry to possibly ask the obvious or being code-blind right now. From my understanding it should, but I thought to go for sure and ask to possibly avoid debugging at the completely wrong end.
 
hmmm lemme check what your question is
 
11:26 PM
@SunnyRed sorry can;t help you with that...
 
@RepWhoringPeeHaa No prob. Thank you for trying to.
It's been a long day on my side. Probably it is best to stay put for now.
Greetings
 
Tom
11:46 PM
nite
 

« first day (531 days earlier)      last day (4431 days later) »