« first day (508 days earlier)      last day (4458 days later) » 

12:07 AM
(that I had to write that reply) news.php.net/php.internals/58707
 
@ircmaxell I hate when people point out all the problems and no solutions. If you point out a problem you should suggest a possible solution. Otherwise be quiet. Really irks me.
 
He didn't even point out any problem! He just pointed out that problems exist! That bothers me even more
 
@ircmaxell Yea, true that.
So, I was trying to figure out a blog post for my first week+ as a professional developer. But, ultimately it really boils down to "Learn how to use vim and read convoluted code" so far
 
12:23 AM
yeah, that's about what it is
 
Unfortunately my IDE from my local machine still can't actually access files on the development machine for writing. Turns out the quickest workflow is just SSH into the server and pop up vi
Kinda aggravating...but at least I'm getting work done
 
nite all
 
12:37 AM
@CharlesSprayberry I ended up creating a copy of the server environment locally and making all changes locally and pushing them when they were ready.
Every project should use version control already, so it's viable for typical environments.
If your project has unusual dependencies then it might not be.
 
@LeviMorrison Oh, this project has unusual dependencies alright.
 
@CharlesSprayberry I'm not sure how to interpret that . . . :)
 
@LeviMorrison I deal with so much spaghetti at work I've been thinking about adding the title of 'Chef' to my resume.
There's dependencies..and a lot of 'em
 
1:15 AM
not asking because of micro optimizations: Are exceptions in PHP fast? I'm creating a parser that needs to resolve grammar productions. I want to peek them but also use them and I thought to opt from if check'ed accept()'s that do have a return value right now to just making expect()'s throw exceptions and if I'm peeking I'd catch them.
Example code of current:
/**
 * Css Selector Parser
 */
class XDOM_CssParser implements Iterator
{
    /**
     * @var XDOM_Tokenizer
     */
    private $tokenizer;

    /**
     * @var string
     */
    private $string;

    /**
     * @var string|array
     */
    private $current;

    /**
     * @var string[]
     */
    private $currentCache;

    /**
     * @var int
     */
    private $offset, $currentOffset;

    /**
     * @var int
     */
    private $peek;


    public function __construct()
    {
        $this->tokenizer = new XDOM_Tokenizer();
 
1:27 AM
anyway, I'll sleep over it. gn8
 
user895378
2:11 AM
@ircmaxell I agree with you. I may reconsider the need for supporting _ in naming conventions. I won't ever need to autoload anything like that and I would consider it a bad practice name something in that fashion. If I'm already telling users with < PHP5.4 to shove it, I might as well take the next logical step and stamp out nonsense wherever it occurs.
 
They did it for compatibility with PEAR, but my argument there is pear doesn't use namespaces
 
user895378
Wait, are you saying Super_Long_Class_Name_Because_Of_Silly_Outdated_Naming_Conventions_Supporting_B‌​ackwards_Compatibility isn't a useful namespace technique in 2012? :)
 
2:38 AM
Is there a more of an automated way to add databases name and user with a defualt password , lets say I want to install a large number of Joomla Templates on server. so time consuming when you have to go into databse and add name user name and password . Is there a way to do this via desktop application.
or plug in
 
user895378
@Riley Why not just write the actual queries to do what you want and execute them in your setup script?
 
Here's an idea, write a script to do it? Maybe in PHP?
 
haven;t got to that chapter yet
but you saying in phpmyadmin
 
user895378
nooo, actually write a script. do some programming. automate it.
 
i just want to have lets say 50 usernames and 50 unique databases with passwords. And on top of that permissions already set to all. So everything is ready to be used for installations.
 
2:44 AM
@rdlowrey: Can I get your opinion on something. I had a problem today (which I've solved), just wondering how you'd solve it.

I had to write a PHPBB auth plugin, to enable a single sign on with a particular CMS. However I couldn't include any of the CMS core files in the plugin because of clashes with the defined class names.

How would you go about solving it?
 
user895378
@Leigh Do you have any control over the CMS code?
 
user895378
Because my first reaction is ...
 
user895378
If so, why isn't it namespaced?
 
@rdlowrey: Sure, but it's too big to refactor
@rdlowrey: And most of the code is very old :P
 
@rdlowrey hey rdlowrey what think about my last post
i just want to have lets say 50 usernames and 50 unique databases with passwords. And on top of that permissions already set to all. So everything is ready to be used for installations.
 
2:46 AM
@Riley: I suggest you "get to that chapter", and write a script to automate it
 
user895378
@Leigh How much of the core CMS libs do you need access to validate a successful login?
 
i agree
 
@rdlowrey: The clash is on the classname "Cache", and caching is heavily integrated into most database operations
 
user895378
@Riley I'm with Leigh: The only way to do what you want is to write a script that executes the queries that you would otherwise manually generate in phpmyadmin
 
i would just like to hear from more experenced others to input on this or if they have done something similair
 
user895378
2:49 AM
@Leigh Well, is it a VERY high traffic login system? Because logins are likely not nearly as frequent as other DB operations and you could likely get by with a one-off class to do the login
 
@Riley, it's not that difficult, you only need a couple of functions, write something along the lines of

$templates = getListOfTemplates;
foreach ($templates as $template) {
createDatabaseStuff($template)
}
@rdlowrey: I'm kind of happy you don't have an instant solution :P

I ended up implementing authentication as a web service in the CMS, and then having the auth plugin do an internal POST to it
I tried on the fly namespacing but it didn't work so well
 
user895378
I know it's the old problem of patching an issue instead of fixing it, but if the CMS codebase is extensive enough that namespacing it isn't feasible, I'd say your solution is pretty solid. It provides a useful "service" that you could actually use going forward in other cases.
 
We have a CMS rewrite beginning in April :P, bringing 10 years worth of code up to a decent standard. Most of it still has PHP4 style constructors in classes
 
when you go to install lets say a wordpress or a joomla site.. you have to first go into server control panel and add a database then add a username and password the add that user to that database . Then set your permission to all.
 
user895378
I don't have a ton of experience working with legacy code (thank goodness). I don't know if I could deal with having to maintain PHP 4 code
 
user895378
2:53 AM
I might cry softly into my pillow at night after trying to bootstrap up old PHP4 code
 
:-D
 
have unzip about 30 or so templates on on the server and unpacked in serperate folders. It would be great if there was a list of database available and u just go down the list installation after installation.
 
We have PHP5 as a min version. Just a lot of the code pre-dates it :p
 
I work with it every day... And it's painful
 
user895378
gross
 
2:54 AM
@ircmaxell: Ever heard of a dbms called ObjectStar, or Huron?
It's a mainframe system, I spent 3 years working on 20 year old code
 
user895378
@Leigh I believe namespaced classes no longer support PHP4 style constructors as of 5.3.3 ... If you're aiming high :)
 
@rdlowrey: I'm trying to push 5.4 as the min version for our rewrite (starts in april, due to go into testing cycle in sept), but I'll settle for 5.3 :P
Also trying to push for nginx support, and moving all non-relational data to MongoDB
so much resistance... :(
 
user895378
people are always afraid of new
 
they just don't like rewriting stuff they think they can get away with not rewriting
 
user895378
Hmm ... well ... lazy is another problem entirely. I guess not everyone likes it enough to spend most of their free time doing it (like me) :)
 
3:00 AM
@rdlowrey would such a script be able to fulfill this ..?
 
I have a premature micro-optimisation fetish. I actually really enjoy making code .. better
2
 
always sunny in philly - love the episode when they take a trip to the grand cranyon
 
user895378
@Riley I fully subscribe to the D.E.N.N.I.S. system.
 
@Leigh nope
 
@ircmaxell: Nope what?
 
3:02 AM
Nice
 
@Leigh You gotta do what you like
 
user895378
@Riley As for your DB operation, it's a simple matter of scripting calls to the database to do what you're talking about. That's all there is to it. Just google PHP MySQL query. I'm not in trouble shooting mode right now though, so that's all I can offer.
 
hey, what's the easiest way to compile all the extensions for php
php 5.4
 
user895378
@Riley There are a million resources on the interwebs to demonstrate querying the DB
 
@andho: PECL?
 
user895378
3:04 AM
@Leigh I'm right there with you. I try as hard as possible to avoid the micro/premature optimizations but sometimes I just can't help it.
 
@rdlowrey: With a very customer facing product, being able to make a page load 100ms faster is a big deal
 
user895378
@Leigh Yeah I just read something on wired saying that where users used to be satisfied to wait 2 seconds in the early 2000s they're now highly likely to click away if they haven't gotten output within 300ms
 
well i just love that fact subscribe d.e n.n.i.s system .. and in return i was wonder if you have a linkeden port or skype id so we can rock out the D.E. N. N,I.S system
if you don't want to share over here add me maryburnsart is my skype ...
 
user895378
@Riley love to, but I really gotta do some work at the moment. PHP chat is always open, though.
 
welll i understand that but you rarely come across some one like yourself
.. i form south jersey ..
 
user895378
3:11 AM
You should talk to @ircmaxell he's in New Jersey, I believe. And he's way more helpful than I am when it comes to joomla questions
 
where abouts in South Jersey?
@Leigh look where the reply points to
 
user895378
lol you like that
 
user895378
joomla master right here
 
cherry hill area
 
@ircmaxell: Oh, never knew you could reply like that :D cheers
 
user895378
3:14 AM
@Leigh Maybe I should've suggest teresko instead. He's even more helpful for beginner joomla questions :)
 
Not just beginner joomla questions, I hear he likes to do screen sharing with beginners and actually do live coding with them ;)
 
but i would just like to have some one like yourself rdowrey to email my work and you can give me an valuable criticizes
 
user895378
Sure. I take credit cards. Otherwise, I'm pretty busy.
 
fine
whatever
 
user895378
Here's a tip: get involved in the joomla community if that's what you want to work with. The appropriate relationships will come of their own accord.
 
3:17 AM
so many others pretend to know what they are doing its great to pay and not have to worry
 
user895378
I know zero about joomla
 
I know enough about it to know I don't want to know any more
 
its not really joomla i using it to pull out and some use of plug ins. but i started the site design in expression engine
 
See, now I know even less about your problem :)
 
user895378
ditto
 
3:19 AM
html5
JQuery
 
thanks for the buzzwords
 
hmmm pecl
 
anyway, it's 3:20am, I'm going to go roll the wench off my side of the bed and steal the warmth
 
I was talking about extensions in the php source
 
no thats where i having issues with implementing into joomla but firist i ahve to go about doing the css correctly
 
user895378
3:21 AM
@Leigh Have fun with that
 
i have run make but the .so files for the extensions are not generated
 
well i need to grab some coffee and try to comprehend the next chapter
 
user895378
good luck
 
@rdlowrey please add me maryburnsart@gmail.com send me a message .. I just need to have someone that can evulate or possible i can send you a paypal payment whatever i have to
 
user895378
@Riley Seriously, you'll be better served to work through learning your material on your own. If you have problems or questions, Stack Overflow is a great place to get help. Also, there are (almost) always knowledgeable people in chat. Learn the stuff, then you won't need help.
 
3:27 AM
.. overwhelmed and two projects are way overdue that is why i reaching out
to the put where nothing makes sense
point
 
@Riley Ah, I have a friend who's in that area as well
 
you do
 
@rdlowrey Good luck with that...
:2858536 I have first hand experience. And I'll say: good luck
news.php.net/php.internals/58713 <-- That's why my responses were delayed
 
user895378
@ircmaxell will check it out in a bit when I can clean up this unit test
 
:-D
 
user895378
4:30 AM
""array" is a strict check, and "(array)" is a casting check. One will fatal if a non-array is passed, and the other will attempt to convert the parameter to an array."
 
user895378
I agree with you, though I think the average joe-sixpack-php-user will be completely confused by this. Many won't even understand what loose typing is or how it affects typehinting. Of course, if someone doesn't get that it's likely they might not even use typehints.
 
true
 
user895378
Totally agree with this:
 
but then again, I'd argue that it's a documentation problem at that point
 
user895378
"I personally see casting data-loss a bigger issue than just parameter hinting"
 
user895378
4:32 AM
Personally, I like your solution. I think it's the right direction given the nature of PHP. The fact that you can move between types is what makes this particular issue difficult.
 
user895378
I'm not sure there's a single unified theory of typehinting for PHP as it exists right now
 
user895378
That's why I like the different form for (casts) typehints and formal ClassName typehints
 
:-D
I'm glad someone got that ;-P
 
user895378
There isn't a single fix. It has to be an amalgam of different solutions
 
user895378
Or none at all. But people keep clamoring for a solution, so I don't think "None at all" is the right answer.
 
4:34 AM
Yup, which is why I think the "trifecta" of RFCs will together go a long way to make the situation better
I am thinking screw it, I'm just going to create the third RFC and patch myself (or coordinate with @nikic so that he has some help and push to just do it)...
 
user895378
politics blows
 
user895378
I'm terrible at it.
 
user895378
maybe that's why I don't like it.
 
which is why I push through it
I find sanity and good intentions usually can bypass most political BS. That, and begging for forgiveness later...
 
user895378
Haha definitely
 
user895378
4:38 AM
Sorry to ping you on the joomla situation happening. I was getting uncomfortable and was trying to push it off on someone else without saying, "NO, LEAVE ME ALONE."
 
which is why I make some enemies, but a lot more friends (because I just get sh*t done, not caring who's toes I step on)
 
user895378
Yeah, I lost like half an hour trying to be nice. I'll know better next time.
 
@rdlowrey no problem at all. I've got Joomla experience (prob more than most), I just have stayed away for the past 3 years... So...
thankfully so
Ok, good night
 
user895378
Later dude
 
5:17 AM
posted on March 07, 2012 by Brian Moon

Engineering cultures differ from shop to shop. I have been in the same culture for 13 years so I am not an expert on what all the different types are. Before that I was living in Dilbert world. The culture there was really weird. The ideas were never yours. It was always some need some way off person had. A DBA, a UI "expert" and some product manager would dictate what code you wrote. Creativit

 
5:55 AM
Hey, Does anyone know if the CMIS module in Drupal is still buggy?
 
does anyone know that whether drupal 7 contain adsense module or its available upto drupal 6 only ??
 
6:07 AM
hello guys
can any one help me on database driven rewrite rules for username, i will get the username from user once only, after input that username will be like this www.mysite.com/username
 
6:36 AM
@rdlowrey I'm not sure that app.setUp is really any different than app.ready in the current design system.
 
user895378
hehe
 
user895378
well ...
 
user895378
I may disagree. Read the commit message here and tell me what you think:
 
user895378
@LeviMorrison Personally, I like the decoupling that results from using app.setUp
 
6:40 AM
 
@rdlowrey So, app.setUp is used for configuration style stuff and initialization code, and app.ready is used for main functionality?
 
user895378
Yeah, semantically you use app.setUp to get your app ready and app.ready when that stage is finished.
 
@Riley I've only used this one: colorzilla.com/gradient-editor (it's linked in the url you provided)
 
user895378
You could stuff it all in the app.ready event if you want to, but we're just providing a logical delineation for where you should specify the behavior
 
@Riley I quite like it, although I wish I could tell it to not include the old webkit style.
 
6:42 AM
what happens if you want to have jquery also
 
@rdlowrey Because the body of index.php is sort of like an app.ready.
 
user895378
My thoughts exactly
 
jfiddle gets confusing
 
user895378
That's where you do things if you want straight-line or traditionally object oriented code
 
i meant jsfiddle.net
 
user895378
6:44 AM
@LeviMorrison as opposed to ramming your entire application into the configuration with a million listeners
 
so basically an all around would be combining CSS panel or window with jsfiddle.net
 
user895378
So in a web application you'd use index.php (or whatever front controller filename you prefer) to instantiate your request object and your router and then let the router go to work dispatching the appropriate controller.
 
user895378
(or attach event listeners to app.ready to do it for you)
 
@rdlowrey I was thinking: what if you don't call app.ready until end of the script?
 
user895378
That crossed my mind earlier ... I had a couple of thoughts on it ...
 
6:51 AM
That way the body can attach event handlers to app.ready instead of doing it in config.
 
user895378
Oh wait, I misunderstood what you were saying.
 
user895378
So you're suggesting don't have Artax\App fire off app.ready and allow user application code to do it instead
 
You would do it at the end of the script automatically
To implement it beneath the surface, it would be code shutdown, but you would fire app.ready and then app.tearDown.
 
user895378
Okay, I see what you're saying. Basically it makes the entire script body configuration
 
user895378
Instead of saying, "you should only configure up front and we'll tell you when it's time to start the real business"
 
6:57 AM
I'm not sure that's a good idea, but it would be more familiar to users.
Instead of coding the ready event inside the configuration file.
Honestly
What if we moved the config into index.php? Can you think of how that could work?
Because honestly, it's not exactly configuration.
Or rather, what if the body specified the listeners portion of the configuration?
$cfg = [];

// application-wide debug output flag
$cfg['debug'] = TRUE;

// don't load HTTP app libs during boot
$cfg['httpBundle'] = FALSE;

// specify namespace paths for class autoloaders
$cfg['namespaces'] = [
  '' => AX_APP_PATH . '/includes'
];
 
user895378
I'm totally fine with that, I just initially wanted to give the option to pre-specify them.
 
^ that's all config and can stay in config.
but the listeners aren't really configuration options, are they?
 
user895378
But you can do the listener specification in its own file and include it.
 
user895378
Well, the issue is ... (it may not really be an issue, I just need to think about the mediator implementation a bit)
 
I guess you need to set up some listeners beforehand
such as exception handlers.
 
user895378
7:02 AM
That, and if you specify them in the body then it's up to the user to push the listeners onto the mediator event queue like so:
 
user895378
foreach ($listeners as $listener) { $artax->mediator->push($listener[0], $listener[1]); }
 
user895378
I have an idea
 
We could make another method to make that easier.
 
user895378
Yeah, def ... something like Artax\Mediator::addAll
 
pushAll(Traversable $listeners)
something like that
 
user895378
7:04 AM
yep, I believe we had that discussion before :)
 
The one issue I know of is a minor one, really.
Pretty obscure, I should think.
StdClass can be iterated in a foreach loop, but it doesn't implement traversable.
However, defining your listeners in a StdClass seems odd . . .
Actually, it doesn't seem as crazy as I thought
 
user895378
Well, how about this: read my voluminous, mostly finished tome on how the mediator works and see if that clears up anything for you on the current inner-workings of the event system ...
 
$listener = new StdClass;
$listener->setUp = function() {

};
$listener->ready = function() {

};
Not as crazy as I first thought.
 
user895378
You may not wanna read that now
 
user895378
7:07 AM
It's ... lengthy ...
 
user895378
But I like where this discussion is going
 
If PHP had real method overloading
sigh
 
user895378
I've spent most of my evening fiddling with that wiki, which means code standards will have to wait until tomorrow :)
 
user895378
@LeviMorrison I would star "If PHP had real method overloading" but I try to avoid putting down the language I spend most of my time with :)
 
@rdlowrey dig the relationship metaphor
 
7:12 AM
I loathe PHP. At the same time I have developed a love stronger than the hatred.
 
user895378
@AndyPerlitch Ah thanks dude. It came naturally to me because, well ... I usually do exactly what the metaphor says not to :)
 
@rdlowrey I almost like the idea of a StdClass, actually
It's sad it doesn't implement traversable
I shall report that bug immediately.
 
user895378
I don't think I've ever even tried to typehint a StdClass ... we can do that right?
 
We shouldn't have to. It should implement Traversable because it is.
 
user895378
Since Traversable isn't available :)
 
user895378
7:17 AM
I know right, Traversable would make StdClass money for this
 
At the same time, someone could also pass in an array, or a SplFixedArray, etc.
If the patch isn't too hard, maybe I'll submit one :)
 
user895378
Although, specifying the event name as an object property prevents you from specifying multiple listeners in the same StdClass
 
user895378
for a single event
 
True, but I personally don't see myself adding more than one handler at a time.
I might add another later during execution or something.
Actually, how is that different than an array?
 
user895378
It's not, which is why right now the listeners are stored as two individual elements in an array
 
user895378
7:21 AM
$listener = ['event_name', function() { ... }];
 
user895378
and added like:
 
user895378
In a loop: $mediator->push($listener[0], $listener[1]);
 
user895378
Though I admit it's a less than ideal situation
 
user895378
The use case I see for easily specifying multiple listeners for a single event at once is ...
 
We could change it to $listener = ['event' =>function() {}] and do some checking to allow $listener = ['event'=>[function(){}, function(){}]];
 
user895378
7:23 AM
making your listeners as testable as possible. Having small, testable listeners all chained to one event ...
 
Then you could do $stdClass->event = [function(){},function(){}];
 
user895378
Ohhhhhhhhh
 
(when stdClass is fixed, anyway)
 
user895378
I like that alot more than push($listener[0], $listener[1])
 
user895378
Event name as key/property and either a single closure/callable as the value or an array of callables as the value
 
7:27 AM
Yep.
And you just push them on in the order the iterator gives them to you.
 
user895378
And if you push through a Traversable fix for StdClass we can typehint traversable and people can do whatever they want
 
Yep.
Personally, I'll be using StdClass, lol.
 
user895378
Haha
 
Never thought I'd say that.
 
user895378
I feel good about that situation. In the meantime, perhaps just leave off a typehint for the push() and unshift() attach methods?
 
user895378
7:29 AM
Or just do traversable and when it's fixed we get StdClass capabilities
 
user895378
Yeah, I think I'll just typehint Traversable in the interim.
 
I'm not quite sure I understood that.
 
user895378
Hehe, I'm a moron. That didn't make any sense.
 
user895378
It wasn't just you.
 
user895378
The Traversable would obviously go in the theoretical pushAll()
 
user895378
7:34 AM
All the typing is getting to my brain. It is, after all, 2:33am where I live.
 
user895378
I actually need to sleep soon. BUT ...
 
user895378
because I wasted my whole night working on that dumb wiki page the code standards will just have to wait until tomorrow
 
lol
I'll keep brainstorming and maybe work on a patch for StdClass.
 
user895378
sweet. I'll implement pushAll() and code standards tomorrow for sure
 
user895378
7:37 AM
and continue your thoughts on the location of app.ready
 
user895378
I'll catch ya later dude. Don't work too hard
 
damn, it's fkn hard tryin to keep up with this convo.... I'm lookin up mediator patterns and stdclass and all kinds of shit haha
 
user895378
Haha sorry we commandeered the whole room.
 
nah it's all good. good learning experience
 
user895378
7:38 AM
Gonna have to give SO PHP chat some shoutouts in the docs
 
user895378
All righty. Happy learning/working/whatever. Back in the AM.
 
@rdlowrey G'night :)
 
later
guess I'll bounce too. have a good one Levy
 
:) ciao
 
Boo
8:35 AM
Wow, didn't know so even has a chat
amazing
 
8:46 AM
Guys do you know any solution for getting all needed google cached pages at once? Maybe php solution, maybe anyother?
My friend had a blog and some amount of posts on it, but he screwed up the database and everything else. So it is now only in google cached pages.
 
Boo
What do you want to do with it?
get the whole content, parse it and put it back into the database?
 
9:01 AM
How can I download flv files from urls ( for example: domain.com/test.flv )?
 
@user1123379 the same as any other urls
@Eugene he should restore the database from backup
 
I don't know to take from other urls neither.
 
@Gordon No backup sadly.
 
@Eugene if it wasn't backed up it wasn't important
 
@Gordon I could argue on that, but no need now. Found a ff plugin for fast saving cached pages by filter.
 
9:10 AM
2
A: difference in reading XML from source code manually copied and programitically generated by PHP

GordonIt looks like you have magic quotes enabled. If magic_quotes_runtime is enabled, most functions that return data from any sort of external source including databases and text files will have quotes escaped with a backslash. So when you use fgets to read in the file, any quotes will be esca...

@user1123379 see the lower part of my answer there. shows three ways to download a url to a local file
 
Takes you gordon
I did +1 for you :)
 
9:27 AM
@user1123379 thanks
 
@Gordon It takes a long time when it weight 200MB :\
 
@Gordon: You say "All of these would work", that is providing the host hadn't disabled url access in file_get_contents et al
Although I guess in that case, fopen would fail too
 
morning
 
@user1123379 that depends entirely on your network connection speed.
@Leigh yes
 
10:18 AM
Good afternoon all
 
10:33 AM
Hello
 
10:51 AM
So, anyone starting any 'official' projects with 5.4? Any gotchas with that and the new Apache?
 
@JohnP There is a new apache?
I am going to test our app with 5.4
 
@andho yup, 2.4 - httpd.apache.org/docs/2.4
 
@andho yup and it's a pain in the arse to compile on centos (at least the setup I wanted)
 
Hey everyone. Anybody know why was this answer upvoted? These codes snippets are same and could never do what OP describes.
 
@Martin because people dont read answers. they see a wall of text and some code and think its right. if you think the answer is wrong, dv it and maybe leave a comment explaining why. wont stop them from mindlessly upvoting it even then though. i've seen clearly one line answers get uv'ed despite me putting wrong below it.
 
11:02 AM
How would you define complexity?
 
@PPPHP what complexity?
 
as usual, in programming. I often come across when reading books etc. they talk about complexity in designs, classes and stuff and you should keep it minimum..
 
@Martin: The code snippets are not the same, (hint: self != static)
Although it is left to reader imagination to assume he is calling B::test()
 
11:17 AM
happy new day everybody
 
Scrap that, even if they call B::test() it wont print anything, or return anything.. he kinda has the right idea, his code just doesn't work
 
same to you!
 
morning hakre
 
@hakre hiya. and why so happy?
 
@Gordon I don't comment when downvoting users < 3k. Most of them tends to downvote me into oblivion then. But what you said is absolutely true
 
11:25 AM
@PPPHP complexity can be defined by several matrixes
 
@Martin: Then flag them, and also serial downvoting is detected by the end of day scripts, and reversed.
 
@Martin usually serial downvotes get detected and automatically removed. if not, contact a mod.
 
11:59 AM
I know they are. But in my experience, it's better not to comment when downvoting in cases like this
 

« first day (508 days earlier)      last day (4458 days later) »