« first day (1119 days earlier)      last day (3843 days later) » 

7:02 PM
lolwut where's this chat going to :)
 
:)
 
lolz who starred that ...
 
Anonymous
@HamZa probably, someone who designed the website for that goat porn site.
 
anyone suggesting a good movie ?
 
Anonymous
@HamZa Goat porn ?
 
7:07 PM
@Simon_eQ E_NO :)
 
Anonymous
@HamZa ok! joking. comedy, action, horror .. what?
 
@Simon_eQ action/comedy
 
@PeeHaa shhh
 
Anonymous
@HamZa ehh, I'm bad at movie-picking. Just too much to chose from :) comedy+action = The Hobbit. Because, that's what I'm re-watching now.
 
Anonymous
7:12 PM
fight club is good too.
 
@Simon_eQ will check it out
@Simon_eQ I checked the fighter, a nice movie
 
Anonymous
1 hour ago, by Simon _eQ
class foo{
	function a(){
		return $this;
	}
}
class bar{
	function b(){
		return $this;
	}
}

$o = new foo();
$a = $o->a()-chain class bar here then call directly->b();
 
Anonymous
@Danack did it.
 
I didn't do nothin.
 
Anonymous
Just needs some modification, and I will patent it as a new design pattern :)
 
Anonymous
7:19 PM
a cloudy chance of spaghetti codes
 
 
Anonymous
@HamZa :) I wish there was a list that would describe how programming language would be like if they were real people.
 
@Simon_eQ I think there is.
 
7:25 PM
where did moviesascode.net go :(
 
Anonymous
@DanLugg no that was religions, I saw that already
 
Anonymous
I meant, personality ..
 
:)
On a fridaY night and people are Still HERE???
 
2:25PM here.
 
7:26 PM
@Cool2beblue we're even here sunday morning :)
 
Actually; here's a good list: lambda-the-ultimate.org/node/3133
 
Sunday morning is understandable. Dont get laid on Sunday mornings... well least I dont
@DanLugg XD Sorry, I work on GMT
 
haaloo!! :D
 
@Cool2beblue lol quite ironic since even someone in india could use gmt :)
 
lol
 
7:28 PM
@NeerajKumar hello !
 
> C++ is Java’s cousin. Similar to Java in many ways, the main difference being she grew up in a more innocent time and doesn’t believe in using protection. By “protection”, I mean automatic memory management, of course. What did you think I meant?
 
@DanLugg hahahah
 
@Hamza hey
 
@HamZa :P
Whatever.
 
7:29 PM
We Indians have to use GMT a lot of times... Outsourcing forces us :P :P
 
I mean London time
 
> The site’s owner was only able to recover a fraction of the Bitcoins, leaving him without enough to cover what users had stored on the site. He’s offering users a partial refund from the funds that remain, as well as an apology. Though, that’s probably cold comfort to the users who lost large sums of money and now have no recourse to get it back. After all, the US government doesn’t even consider Bitcoins to be money.
 
@NeerajKumar LOL
 
somebody can help with Zend Framework?
 
@NeerajKumar You mean your main source of income forces you...
 
7:30 PM
@DanLugg c++ is java's uncle. Because Java is written in C :)
 
5 mins ago, by Dan Lugg
http://blog.utest.com/if-programming-languages-were-women/
 
i need some admin panel module on Zand Framework/ Anybody can help me?
 
@Fabien damn :(
 
@Cool2beblue not me. but for a lot of people here, yeah its a main source of income
@KirillWarp shoot it!
 
@KirillWarp zand means "sand" in dutch
 
7:31 PM
@NeerajKumar :) Not a bad thing. India has experieced rapid growth. It's only now since they are hitting high inflation with the fed fears
 
@HamZa I now know a new word! yay! :)
 
Same is happening in SA!
 
Zee grains of zand in the Zahara outnumber zee people in zee world!
 
R10 to on dollar!!!
 
@HamZa So what?
 
7:32 PM
WTF!
 
@KirillWarp hahaha you didn't get the joke ...
 
@DanLugg Strange page scroll behaviour on that page. Is this a feature or a bug?
 
@Cool2beblue oh dont ask man.. prices of everything is skyrocketing!! like anything.
 
@HamZa i get, but i can't fun yet
 
@hek2mgl *shrug*
@crypticツ It's almost more like a Sudoku.
 
7:37 PM
Slllllllllllloooowed down in here :(
Any web developers around ;)
O.o
 
@DanLugg funny page! :)
 
@crypticツ Ping!!!
 
@BenjaminGruenbaum shoot
 
does anyone see a problem in voting for close a question but giving an answer to it anyway just to help the OP but keep SO clean?
 
Anyhow
No :)
Night night everyone :) I wish you all happy baby making :)
 
7:42 PM
I am a web developer
 
Anonymous
"anyway just to help the OP but keep SO clean?" @hek2mgl What does that mean?
 
Anonymous
anyway, when you close, you close. that's it!
 
@Simon_eQ Check this one... stackoverflow.com/questions/19866022/…
@Simon_eQ Really don't see a problem with doing so. Still asking me whats wrong there
 
Anonymous
7:44 PM
@hek2mgl You are encouraging people to ask stupid questions over and over. That would be, what's wrong with it.
 
@NeerajKumar i need a effect using jquery/javascript to smoothly transition some html.... a small amount of html. Just a icon on a button. I dont want to fade, or slide it.... Need something different ;)
Have any ideas :)
 
@Simon_eQ Sounds like a reason
 
Anonymous
If it is bad, just close it. If user has a list of CV'ed questions/answer then, he/she will be suspended. And SO gets cleaned that way.
 
lemme think
 
@hek2mgl what @Simon_eQ said and I find it a "hypocrite act"
 
7:45 PM
check this
 
Anonymous
@hek2mgl what @HamZa said!
 
@HamZa Why "hypocrite act" ?
 
these are css effects. will only work on mordern browses. see if solves your problem @Cool2beblue
 
Anonymous
Because, if you close it ... then answering it does not make sense. You close it, only when it is NOT worth answering.
 
@hek2mgl because you voted to close it, voting to close means it isn't suited for SO in it's current form. Most people answer it to gain rep
 
7:48 PM
@NeerajKumar Nah. I can do all of that in jquery. It's not that I dont know what to do. It's just that I want a new way of doing it...
Sigh
 
Anonymous
Anyway, I'm out. Till tomorrow, or Monday ..
 
They are cools though
thanks ;)
 
@Simon_eQ cu
 
@coo
oops
lol typo
 
@hek2mgl Althought I've got a new "perception" after reading this meta question
54
Q: Offtopic questions have to be cleared off the way. NOT via closure.

Your Common SenseDisclaimer: this rant is about Stack Overflow site only. If you are a resident of some other network site, the below problems most likely would be quite alien to you. Recently I run across some question on Stack Overflow. Despite of being quite easy to answer it has got no answer yet (and scarce...

 
7:50 PM
@HamZa Yeah, I wouldn't have answered : ucfirst($title); just to gain rep after closing. Of course. that is too easy. Just answered because I thought using CSS is a good alternative OP should know about
@HamZa reading meta article ......
 
@hek2mgl There is always a way, but if we were thinking like that we would then answer all crappy php, regex, * questions
 
@Cool2beblue yes?
 
@HamZa "if we were thinking like that " means: like in the meta article? (haven't finished reading yet, can't say)
 
@hek2mgl I personally hate it when I vote to close a question and posts a comment about trying something and then a couple of high rep users barge in giving the OP the solution (and most of the time without explanation). It would seem like I'm the "bad" guy for not helping him, and yes I receive sometimes some awkward comments ...
@hek2mgl nope, like you thought with the CSS question
The problem is, I can't do anything about it and I know that SO will respond something like "if you don't like the system then leave it otherwise accept it"
 
@HamZa No problem, I'm with you. I think 'give a man a fish, ...' and I don't like programmers (or wannabe programmers) who aren't able to discover things for themself (even if it takes the whole night)..
@HamZa Ususally I'm thinking like you and don't answer questions for reputation only anymore.. Maybe it was just an unlucky post.. no problem
 
7:59 PM
@hek2mgl I understand it
 
@HamZa what?
 
@hek2mgl they wouldn't exist if we didn't had community in the first place but heh, small price to pay for a few vampire ;)
 
@hek2mgl that sometimes you just answer and break the "fictive rules"
 
" small price to pay for a few vampire ;)" sounds nice.. might you try to explain? (My English isn't good enough)
 
8:05 PM
"Why mark a silly question with offensive "closed as a [implied] stupid question" ? Why not answer it all right, making ALL the sides satisfied? Why not to make it this way:

have a poor noob have his silly answer
have all the rep hunters have their beloved reputation points
[to be implemented] have real questions have their professionals to answer"
"Your Common Sense" is smart :)
 
Anyone know the developers of the common application ? commonapp.org
 
@HamZa "Your Common Sense" is smart Not sure if I should say yes to this. It's more a no for me. Maybe he thinks that he is (and others aren't)
 
@hek2mgl hehe, no that's my opinion. You should read some of his other questions (and answers on SO)
 
@HamZa I had some conversations with him on this site..... ;) He has some - let's say questionable opinions-
 
the problem with poor question is it get indexed by google and finding it is useless. To me it fit the same category as people saying: "google it" and then find it trough search engine to get that answer is kind of an ironic joke, except it's not funny
 
8:10 PM
@hek2mgl hmmm I see ...
 
@Mr.Alien Not sure :) I've "redesigned" webarto.com and I'll market it as "agency", some time in future :) Thanks for asking.
 
@HamZa But however. I still give him upvotes for good answers and just leave those questionable posts
 
@JoeWatkins try explaining the explain.php with the explain.php and look at the output (in browser) of the function table(). (after having pulled my recent changes)
 
@HamZa (and all) Are you good at DOM (HTML/XML) ? There was an interesting question today which is still open
 
@hek2mgl meh, I last used phpQuery :)
 
8:14 PM
@HamZa ok :)
however, will post it anyway.. if someone is interested. I would really like to see a solution (or a common agreement that its impossible)
1
Q: Load HTML containing namespaces with DOMDocument

TiMESPLiNTERI've a problem. I want to load a HTML snippet with namespaces in it with DOMDocument. <div class="something-first"> <div class="something-child something-good another something-great"> <my:text value="huhu"> </div> </div> But I can't figure out how to preserve the namespaces. I...

 
@hek2mgl You may want to read this and laugh a bit :P security.stackexchange.com/a/33471
 
reading ...
@HamZa AMAZING POST!!!!
:)
 
@hek2mgl Now anyone that posts something about limiting a password to x-length I would point them to it :P
 
@HamZa totally cool story!!!
(seeing that @Anthony gave an answer to the XML post. Nice :)
 
@bwoebi no output when trying to explain explain.php
if you fail to compile a string you wil dtor caches twice
@bwoebi don't modify global tables like that ...
 
8:36 PM
@JoeWatkins It works.
 
it's not necessary
 
@JoeWatkins it is.
 
no, it isn't ...
 
it is.
quick example:
 
@HamZa freakin' brilliant
 
8:38 PM
file1.php:
<?php
function show() {}

file2.php:
<?php
function show() { return explain("file1.php"); }
var_dump(show());
 
not necessary
 
that will fail with the previous version because of a redefinition of show().
 
@CarrieKendall yup
 
it doesn't matter, don't modify global tables
 
@JoeWatkins just to prevent that, it was necessary.
 
8:39 PM
gotta go out ...
 
@JoeWatkins If you have a better idea how to solve it, I'll accept it.
 
it doesn't need to be solved, do not modify global tables ...
 
@JoeWatkins what's the problem with touching them? :o
 
had one of you had a "typewriters cramp" before?
 
the global table is just temporarily backupped and reinserted at the end…
@JoeWatkins The manner in which you say that, sounds a bit like the chimpanzees problem
 
8:50 PM
MariaDB now supports multi-source replication, just in case multi-master wasn't dangerous enough for you.
 
What do you think of using closures in your domain objects setters to sort of save complex validation logic functions to be executed when the public validate() method called on the object?
 
"y'know, you really ought to show some self-initiative and read a book or two first before coming here" -- as a participant in the PHP tag, I can say this has become a mantra. — Dan Lugg 18 secs ago
 
@tereško Why are you so religious when it comes to MVx ?
 
@DanLugg Pfft, it's Colonel Shrapnel, you expect him to do anything other than act on his own?
 
8:59 PM
lol
 
oh, wait, you were quoting shog.
no, wait
that's not shog
that's Robert Harvey. whatevs.
All them diamonds get confusing.
 
@hek2mgl My guess is it's like when you know too much about something you can't enjoy it from the land of ignorance. Like when you watch a movie and the hacker is slapping his keyboard and shit is flying out the screen.
 
@DanLugg +1
@Charles why the hatred ...
 
@HamZa The Colonel ("Your Common Sense") is way, way too rough around the edges for his own good. He makes @tereško look like a giant fluffy teddy bear.
 
@Charles but he sure has valid points
 
9:02 PM
@Charles @tereško is errrrrrr… worse…
 
@HamZa Oh, you bet. He's sharp, and passionate, and has about as much tact as a thermonuclear warhead.
Yeah, @tereško hasn't gotten himself suspended for a year+ at a time..
 
@Charles rly…?
 
@bwoebi Hey, @tereško is a nice guy. People just don't understand him
 
@bwoebi they're both widdle, cuddwy, teddy bears. :-)
 
@Fabien Yeah. Can understand that until a point. But think that design patterns shouldn't be something unchangable (just because Fowler said it once. And think Fowler would think the same).. Most patterns are re-invented every day by programmers. and it is not wrong just because Fowler says
2
 
9:04 PM
@bwoebi YARLY
 
@HamZa Oh no, I understand him, and I agree with him 95% of the time. I'm just more jaded than he is so I don't care as much any more. :)
 
@HamZa Yeah, people don't understand that he can't accept anything related to my vast code which doesn't reflect his own opinion.
 
@hek2mgl Which I think is fine when they admit that they're varying from the pattern, but in most cases people don't mention that and it perpetuates the misrepresentation of the pattern.
 
lol
 
@salathe haha ;-)
 
9:07 PM
It's like the difference between saying "This hotdog is awful" and "This hotdog is awful IMO". At least the second quote understands that it's subjective, otherwise people might incorrectly assume the hotdog is awful.
If it's your hotdogs it'd matter.
 
2 messages moved to facepalm
 
Woah, what was wrong with the hotdog analogy?
 
@Fabien Yeah maybe you are right. I don't care too much about patterns (while using some - just because they are comfortable. most of them invented myself and read afterwards that this is a pattern) ... Maybe I should buy a book from Fowler (or set on X-mas wish list)
 
2 messages moved from bin
@Fabien I just had to [meta-tag:]
 
@bwoebi I'd have accepted the answer "IMO I thought it needed to be binned".
 
9:10 PM
@Fabien I just binned it to generate the message :-) and because I have moving rights in the bin, it was the bin and not another room ;-)
 
@hek2mgl Yeah, I need to add it to my already-too-big list :)
@bwoebi Well i'm just glad it was the bin instead of trash.
 
@Fabien would you really treat statement "budweiser should not be referred to as beer" as subjective?
 
If I had had moving rights in the trash, but not in the bin, I'd have trashed it :-D
 
@tereško lol. Some things are universally accepted.
 
@bwoebi exploiting your powers again :P
 
9:13 PM
@hek2mgl Ich glaub ich bin noch etwas zu verspielt…
@HamZa do you think I'm room owner to have a cursive name on the left of my posts? ;-D
 
lol
 
@bwoebi :) ?
 
@hek2mgl missing some English vocabulary ;-)
 
@bwoebi google translate translated it in french in a form that implies you're a girl O_o
 
@HamZa copy please? oO
 
@HamZa lol ;-D joueuse^^ The English version is better^^
 
@bwoebi hey, you aren't a girl are you ?
 
There are no women on the internet. Shush.
 
@HamZa no.
@Charles No women, just girls?
 
heh.
 
9:18 PM
lol
 
About that pattern stuff. I don't think that it is always good to apply all java properties to PHP. then one could just using Java. (because it's more powerful and supports beans)
The thing I really like at PHP is that you can choose how elaborated your application should look like (and needs to be)
even a simple contacts.php may do the job in some cases. Try this with Java
 
@hek2mgl that's the power and the problem of PHP.
 
@bwoebi yes. and I like it :)
 
@hek2mgl as long as you don't inherit a large collection of single scripts which repeat the same code 20x, just with microminimal variations
 
Any testable application has to have so many sometimes artificial layers of indirection added that it may as well be written in Java. The tradeoff is probably worth it as long as you're testing. Otherwise you've introduced all that complexity for no gain.
 
9:26 PM
@bwoebi Of course I wouldn't do that. But there are so much companies how tell you how cool, modern and powerful they are but when you start the job they give you 1000s of contact.php s , the account to the bug tracker and say: it's your job now
 
@hek2mgl you wouldn't write such things… but maybe inherit it.
@JoeWatkins bugs.php.net/bug.php?id=66066 here we have the same problem, just with opcache. I'd wait and see how Dmitry fixes it in opcache and just do the same here.
 
@Charles so you prefer to go back to "include oriented programming" approach in php ?
 
@bwoebi Now happy that I found a job where they have nice code
 
@Charles If there are too many artificial layers of indirections, I just won't touch and look at that code. Finitum. You always can exaggerate it.
 
@tereško There are limited use cases for simple stuff. Anything of any decent size or scope always benefits from being designed in a more thoughtful way.
 
9:29 PM
.. it's also possible that there are too many layer in the applications, because someone has not understood how OOP works
 
I wouldn't write a contact form using an OO framework, nor would I design a modern ecommerce website using practices from ten years ago.
 
@tereško Exactly. For too many people OOP = E_NEEDS_MORE_INDIRECTION.
 
I'm curious about how you can get "www.baloodealer.com" out of "www.domain.com" — Crayon Violent 14 mins ago
 
@DanLugg That's the problem I have with OOP. Which I usually see in Java and in the big frameworks in PHP…
 
do you like that behat stuff? It's amazing!!! (I should had a look before)
 
9:33 PM
@bwoebi Well, you shouldn't have that problem with objects. You should have that problem with the idiots defining them.
 
@hek2mgl Do you actually use it? I'm trying to figure out whether to use it, or just write the tests in Mink.
The thingy underneath behat.
 
Hi
 
I won't speak on Java, but C# is a good language, wherein if you know what you're doing, you won't end up with 7 trillion layers to write "Hello world" to a stream. Mind you, Micropoop has abstracted their 6.9 trillion layers away for you...
 
I've an issue with OOPs
 
@DanLugg yeah, you got what I mean…
 
9:35 PM
here's my question:
 
@DanLugg I ++ you on this
 
0
Q: PHP OOP - issue with Static functions and variable or use Singleton?

NadeemI'm creating Class for Tax purpose, which I need to use it on some pages in my app. I need a general suggestion is it a good way or to use Singleton, I don't want to use Singleton but a Static version of my class, here's the code: class CalculationCommon extends ObjectModel { // Customer Addres...

 
@Danack At my new job I have to implement such tests ( :) !!!!, yeah! not just 1000 contact.php's again) Have just played around with it. But was able to test some features of a website (schutzklick.de) with ease (without knowing the code)... Can say more after some more time working with it
 
@Nadeem are you aware that singletons are not part of object oriented paradigm ?
 
any senior can help me?
 
9:37 PM
@cheesemacfly Everytime I'm trying to decipher what MS has done, if the source wasn't released public, then I fire open ILSpy and have a look. I pretty much cry and lol everytime.
 
Yes but I want to use a pure static class
 
@Nadeem No such thing per se in PHP.
 
I have to finally learn to be happy with tests… and write them…
 
@DanLugg any help then?>
 
A class with nothing but statics isn't really OOP either
Likely your error is happening because your variable is only defined in the else block
But you are returning it all the time
 
9:38 PM
@DanLugg I know that feeling...
 
@Nadeem just stop pretending to use classes and go back to using global variables .. at least that what it looks like yuo really want
 
@Nadeem The best you can do is just static methods and a private final constructor... but ... well, you didn't hear that from me. (in fact, I didn't even say that)
 
More importantly...if the code you're using has an error that error message should tell you what is wrong
 
some kind of syntax error I guess
 
lol
 
9:39 PM
Well,
 
@DanLugg you said it and it's a good advice … if and only if he really wants to make a static class.
 
on some pages, I need this class so I don't need to make new instance and don't want to pass any parameter
automated static class
 
@bwoebi Then behat might be the right starting point for you. It's a different approach then unit tests (although not meant to replace unit tests)
 
@Nadeem PHP doesn't retain static state between requests; you do know that, right?
 
@Nadeem Sweet mother of God, so much evil in three words :O
Ahmagad!
 
9:40 PM
@hek2mgl Is behat not some type of unit tests?
 
@Nadeem If you want to use static class - use it, if you will see an issues in maintain, just rewrite it. But easy to change a class which implements singleton
 
> I'm a PHP Programmer from since 2006 doing great things still thrive for new techs in programming world.
 
@bwoebi No. :) It's totally hard to describe to someone who didn't used it (like me, a week ago)... Try it! it's amazing!!!
 
@tereško don't make fun of me :(
 
9:42 PM
@bwoebi It's an integration test, aka end-to-end testing, aka application testing. It doesn't call code, it calls everything like a user would via standard http requests.
 
I don't understand how people can have "PHP programmer/guru/evangelist/etc since anytime-before-last-month" and not understand some fundamental shit.
 
@hek2mgl What's the difference between a behaviour which basically just code formulated in words and an unit test which is real code.
 
@bwoebi and then you'll have to try saucelabs.com !!!!!!!!!!!!!!! crazy!
:)
 
Are they lying to everyone; or just themselves?
 
@bwoebi (but it's a paid service)
 
9:43 PM
@Alexander so, I'm doing wrong?
 
@Nadeem I am trying really hard not to. Here is the bottom line: stop using static keyword. You completely missing the point of OOP.
 
@Alexander Singleton is a bad solution 99.9% of the time. Please do not mislead.
 
@hek2mgl I have other problems than throwing my money away for that^^
 
@Alexander what is "easy to maintain" about singletons ?!? Please stop giving people bad advice!
 
Singleton = super-massive-hidden-global-dependency-graph
 
9:45 PM
@MadaraUchiha that's why I'm asking here, it's a simple class
 
happy friday, i'm off!
 
@MadaraUchiha There's always a 0.1%.
 
@bwoebi Just follow this docs.behat.org/quick_intro.html ... It's testing ls without even knowing the code (and that's the concept. it's implementation independently)
 
@CarrieKendall Have fun!
 
@bwoebi Yup, but there's a 0.1% chance that his case is it.
 
9:45 PM
@CarrieKendall Have a good one!
 
Which isn't very likely, is it? :P
 
@Nadeem You are doing correct. Sometimes is simple decision is good. So why don't use static class?
 
@MadaraUchiha Yea, his case being that he needs a super-massive-hidden-global-dependency-graph.
 
@hek2mgl yeah, I saw. But for that you first have to define the code which interprets the text… (the regex and the func)
 
@bwoebi no problem.. it's not neccessary ...
 
9:46 PM
@DanLugg That's probably what he wants, not what he needs.
 
@Alexander Because static is basically a fancy way of saying global
 
@Nadeem describe the problem for me please, don't include the solution.
 
Furthermore there is absolutely no point in using static, for PHP specifically, 99.99999% of the time
 
@bwoebi behat helps you with this
 
@hek2mgl hmm?
@cspray only in the 0.00001% where you use pthreads :-)
 
9:47 PM
@bwoebi But yes, testing effort keeps reasonable with unit test or behat (bdd)
 
@MadaraUchiha I wanted to use a global function in different pages without initialize the class or passing some args
 
@bwoebi Perhaps. But that's a very, very small audience really :)
 
@Nadeem ok .. lets start from beginning. What problem are you actually trying to solve with that static abomination?
 
@Nadeem You are describing the solution, describe the problem
 
If you are just learning PHP it is a much better rule to always say "Do not use static"
 
9:48 PM
Tell us what the function is.
 
@tereško be nice and use less words with a negative tone :-)
 
@bwoebi meant it's not necessary to spent money on saucelab.. but it's crazy how internet development tools have evolved over the years. and having the feeling that it's just exploding at the moment (thanks open source)
 
INTERNET FIGHT!
 
ok
me too don't wanna use static thing but how I could achieve it ?
 
@Nadeem Achieve what exactly?
 
9:49 PM
what problem are you solving ?!
 
@Nadeem We can't tell you until you tell us what the function does that you're trying to work with.
 
without passing any arg to a function
 
We don't give a flying crap about parameters, man!
 
That doesn't make sense.
 
@Nadeem that is your solutions. What is the problem ?!
 
9:49 PM
@tereško that's also a way to not receive a 30 min ban…
 
@tereško coordinating state without understanding what application architecture, state or dependencies mean ^^
 
@BenjaminGruenbaum are you intentionally being this annoying or does it come naturally to you ?
 
Let's say, I wanted to calculated a tax rate in an app, assuming 13% for a specific case, I wanted to use it globally over the app
 
@cspray +1, but if I may errata: "If you are just learning using PHP..."
 
@Nadeem This make no sense. Parameters aren't "evil"
 
9:51 PM
@tereško completely naturally. I was however, not disagreeing with you - just describing the problem I think he is solving.
 
@DanLugg touche
 
@hek2mgl I'm still not really sold in testing, even when I really, really appreciate the tests of php-src. (Maybe because it sucks to see that a test is failing with a shitty memory leak in an unreasonable edge case…)
 
lol verbing wierds words.
 
@Nadeem Good, we do this in my application. We made the resident tax percentage an application configuration variable. The thing that calculates sales tax accesses the configuration.
 
@BenjaminGruenbaum no, you describe the solution that he imagined for solving the problem
 
9:52 PM
@tereško Yes, that.
 
@bwoebi do you have a github account?
 
I need to do some calculation from DB before showing the correct tax rate depending on the location
 
@hek2mgl yes github.com/bwoebi … why?
 
How do I return HEAD to the current commit after git checkout 0a1b2c3d?
 
@Nadeem I don't understand why you'd need a global.
 
9:54 PM
@bwoebi thanks for pthreads :) (didn't know it is yours)
 
because a user could change his delivery address from his profile
 
@hek2mgl no? it's just a fork? It's @JoeWatkins repository…
 
ah ok... I'm a blind fish...
 
I just had helped him a bit…
 
then thanks to the originator... :)
 
9:55 PM
^^
 
and for the help...
 
lol, stop thanking^^
do you use it?
 
@Nadeem As it happens, so do we. In multiple locations, with multiple, different rules. We created an interface for our tax calculation classes, then coded each one with the specific address validation rules. They're actual, full classes, with instantiation... but outside of accepting the address in question and the taxable amount, they're entirely self-contained.
 
@bwoebi may need it for an (os) project and will contact you.. but not on friday evening.. :)
 
@hek2mgl Friday evenings are fine.
 
9:56 PM
So, should I avoid using static?
 
@Nadeem yes.
 
@bwoebi Is it possible to refer a pecl extension from a PEAR package.xml? (and force it's install?)
 
@bwoebi fixed it yet ?
 
@JoeWatkins what are you referring to?
@hek2mgl ask, @JoeWatkins; I don't use pecl nor pear ;-)
 
I'm still confused
 
9:59 PM
the modifications I told you to reverse ...
 

« first day (1119 days earlier)      last day (3843 days later) »