« first day (845 days earlier)      last day (4117 days later) » 

5:00 PM
@DaveRandom Real work, what is that, tweaking the templates? I'm not familiar with such work.
 
@webarto Oh, the irony of the timing of that statement.
 
@DaveRandom Bitch please
 
user652649
what do you old chaps use for templating?
 
@PeeHaa Don't be impolite, let the man do the tweaking real work.
 
user652649
5:01 PM
ircmaxell suggested me to use mustache but i think it is very limited for my needs
 
Then don't use it. Templates =/= Views.
 
@wes If you want something heavy I'd suggest Twig
I mean, if you're sure you need it.
 
user652649
indeed i will not @webarto
 
@wes PHP works fine too.
 
@webarto Let's not go there.
 
user652649
5:03 PM
@WesleyMurch ok i'm looking at it
 
@WesleyMurch I say, Sir, are you challenging me for a round of Fisticuffs?
 
Anonymous
@wes what is up, with your profile pic?
 
user652649
@webarto we want allow our customers to manage their own templates, but without accessing to the actual php code
 
@webarto I'll only say one thing: template parsers are a way to sandbox untrusted template code, and that is invaluable and cannot be done with vanilla PHP.
 
user652649
@PHPNooB i'm on diet
 
5:05 PM
^^^ exactly
 
Anonymous
Ohh, in that case. proceed
 
user652649
:P
 
@wes @WesleyMurch pardon me, then you blokes have bigger problems :P
 
@webarto: It's common when you work with content management systems.
 
@WesleyMurch Yes, I can imagine.
 
user652649
5:07 PM
i have indeed a lot of problems, and i tend to create new ones
 
user652649
still snowing... 5 days of non stop snowing...
 
2
A: Strange tags in html?

ysthLooks like Template Toolkit to me.

^^ 40k rep user and that answe r
 
user652649
I love to imagine them living with the finger on the F5 key, waiting for an easy question
 
Finally! Three days straight of manually sanitizing, copying and pasting from yaml files to my DB. Finally completed /me mentally exhausted
 
5:17 PM
i think almost all php question are easy ... just need to troll self
 
user652649
another thing i noticed, they give a very fast short answer, then they edit again and again for to improve the original crappy answer, also copying what other answers say... that is unfair for who doesn't have time to live on SO. i think editing should be limited somehow
 
I'm off. Have a good evening everyone :)
 
@wes this is the trick ..give short correct answer (might be crappy) than improve it .. but i really dont like that some copy others answer
 
@wes That's just the way it is. SO is a game, like it or not.
 
@Jimbo later ... :P
 
5:26 PM
Anybody here work from home and for 1 company only? Just interested in chatting about, maybe I'll try to become one if I can...
 
The term is: full-time (remote) job (telecommute)
 
Anonymous
I am on up voting rampage today.
 
@webarto gangam style child ...lol
 
echo "Hello PHP World!";
 
2
A: Strange tags in html?

ysthLooks like Template Toolkit to me.

i think that is really rep-whoring ...
 
[tag:delv-pls] http://stackoverflow.com/questions/294590/open-source-project-beginners
[tag:cv-pls] http://stackoverflow.com/questions/188495/open-source-virgin-what-steps-to-take
@NullPointer: Why do you feel that way?
 
@WesleyMurch that was just kind of link only answer ..
 
@NullPointer What can you imagine should be added to the answer?
The problem is the question, not the answer.
 
that should be probably comment ...
 
5:40 PM
@NullPointer Since when do answers belong in comments?
It's a direct, and correct, answer to the exact question asked.
 
@WesleyMurch that answer looks like more comment ...
 
"Looks like"? Meaning, it is a short answer?
I'm kind of playing devil's advocate, but I must admit that it seems offensive to accuse one of "whoring".
Especially when you cannot truly know the motive of the poster.
@NullPointer ^^^
 
@WesleyMurch sorry but imho its not offensive ..
 
@NullPointer It's derogatory.
 
atleast op should provide more information ...
 
5:45 PM
@NullPointer That's got nothing to do with it IMVVHO
 
@WesleyMurch lol...
Sir. ... we should just leave to community ... :)
 
@NullPointer We'll have to continue this cat fight later, gotta run. Take care ;)
 
@WesleyMurch later .... you too :)
 
@WesleyMurch It's easy to spot "repwhores", because they're usually high-rep users who answer questions that very clearly do not follow the SO FAQ. And honestly, if you want examples just look through your answer history
 
Anonymous
Does anyone know, if it is possible to create iphone apps in Ipad?
 
Anonymous
5:50 PM
Does one must buy mac to build simple apps?
 
@PHPNooB simulator
is way to go
 
Anonymous
You mean, it is actually possible ? Are you sure?
 
@PHPNooB exactly its possibel
 
Anonymous
Wow, good news. Because, I got a request to build an app for the iphone, very simple one. And, all I have (will have in a couple of days ) is the Ipad retina
 
Anonymous
@NullPointer Have you ever built an app ?
 
5:55 PM
@PHPNooB no
whoo ... ipad retina
however its not a good choice if you want to control quality
 
Anonymous
Yea, actually, I am buying the Ipad mainly to read books and do some PHP on while I am on the road, which is a LOT of times. About Iphone apps, I don't care much. I was just asked and was wandering it if was possible.
 
...
 
...
 
What's retina?
 
@webarto the iPad's display.
 
Anonymous
5:58 PM
It means Ipad 3
 
@webarto its very high resolution display
 
Ah, OK, thanks.
 
Anonymous
You can't see the pixels with the naked eye
 
Anonymous
That should sum it up ^
 
@webarto no your very welcome
 
5:59 PM
its Apple's way over over charging for intel based hardware :)
 
Anonymous
@Pheagey lol
 
@PHPNooB i even can see pixel on my 1600*900 monitor .. when brightness is high :P
 
Anonymous
:)
 
Dual-core A6X with quad-core graphics
 
Anonymous
First App I will buy: becomekodiak.com
 
6:01 PM
so if i install 8 core graphic in my pc it will be retina ... :P:P
 
@PHPNooB What a horrible PHP code...
 
Anonymous
It is just a demo for the app @webarto
 
I'm not sure why not laptop...
 
or microsoft surface ..
would be better than ipad
it has win8 with core i5 cpu
 
But you're not cool then...
 
6:05 PM
@webarto or i am not girl than ....
 
Anonymous
Surface is definately awesome, but with the ipad there is extra chance of making an app for the iphone. Unless if I am told, that I can create iphone apps with surface, I will change my mind instantly.
 
however i am boy
 
@webarto lol
Evening bitches
 
@PeeHaa jo...
 
hi @PeeHaa
 
6:07 PM
@ircmaxell There is some text missing in your tweet. You meant to say "Just try (in you personal code at home)" ;)
 
kids light has gone .. now have to shut the f**k up my pc ... so now night ...
 
@NullPointer night :)
 
@NullPointer laters
 
Anonymous
later
 
I want to laugh at OP for using lotus notes, but that would be a terrible thing to do: stackoverflow.com/questions/14757667/…
 
6:09 PM
@PeeHaa Yes, you're such a bitch ass sometimes.
 
Guilty
 
Don't want to be sexist.
 
@webarto Nope better save it for tomorrow on the job. Bitches like that :)
 
Anonymous
@webarto WORD!
 
@PeeHaa What job?
 
6:11 PM
Well there are people how actually have to go work tomorrow
 
:'(
 
peehaa you have to work on fridays.
 
Anonymous
@Michael Unless he lives in UAE. Yea, he does!
 
@PHPNooB huh? you don't have to work on Fridays there?
 
@Michael Sadly yes. But the word is I don't have to do anything this weekend
 
Anonymous
6:14 PM
Yea, only Friday is off. I worked like that for two years in a company as sales and marketing. My boss was a little crazy, sometimes, he would call me in Fridays also.
 
You only have Friday off?
 
is Registry kinda anti-pattern?
 
I have Saturday and Sunday off.
 
Anonymous
Yea, only Friday is off. I worked like that for two years in a company as sales and marketing. My boss was a little crazy, sometimes, he would call me in Fridays also.
 
@PeeHaa unfort. mant enterprise corp's still use lotus :(.
 
6:16 PM
@PHPNooB wow
 
*many
 
@Pheagey Not as many as you think do
 
1 is to many...
 
hehe true that
 
Anonymous
@Michael fortunately, I am in Switzerland now. Seeking asylum from my boss, and I have 7 days off. Except, I have to learn French, for free three days a week
 
6:19 PM
evenin'
 
Evening mr T :)
 
@tereško Prime example of today's working man.
From 7AM to 7PM.
 
hi @tereško
 
well ... it's 8h+ at work , then commute and shopping
 
I was just going to say: I'm pretty sure he got some beers on the way back :P
 
6:22 PM
so yeah , i leave home at 08:30 (local time) and it's almost 20:30 now
 
To drown the memories of bad code.
 
but yeah .. there is a beer , and some blue-ish chees e
 
is there any one here famillar with unit testing for applications built on top of or along side WordPress?
 
Horror. ^
 
Unit testing + WordPress = LOL
 
6:24 PM
@KyleAdams WP is global state all over the place. Good luck unit testing that
 
@KyleAdams unless you can completely decouple your code from wordpress - there is no way
 
They have a unit test framework
 
lol, no, they don't have one .. it's a PR trick
 
but using it with applications is a nightmare
 
...
 
Anonymous
6:24 PM
Teresko has got me on ignore list, can anyone tell him a message for me
 
@Kyle use phpunit
 
Code?
@PHPNooB It'll cost you :P
 
I think it is more the fact they don't know how to unit test than it is an actual unit test FW
 
@PHPNooB he did it for a reason
 
@Michael you dont say! any ways, wordpress has a unit test framework here core.trac.wordpress.org/browser/tests but implementing it to work along side your application is a joke
 
6:25 PM
oh
 
Anonymous
Fine! @webarto @metal_fan yea, I just need to let him know, that I am sorry.
 
so I was wondering if any one has any answers too stackoverflow.com/questions/14758041/…
 
@tereško @PHPNooB is sorry and as a sign of axe burying he wants to give you new iPad Retina.
 
Anonymous
Anyone tell teresko, I AM SORRY! :)
 
because the only way I could see to do it, is put my tests for my app in the root of the testing folder which makes it a mess
 
6:26 PM
You just gotta love those "unit tests": core.trac.wordpress.org/browser/tests/trunk/tests/post/…
 
Anonymous
@webarto heyyyyyyyyy :)
 
there a joke yes but I dont see any other way other then writing everything from scratch
 
@KyleAdams ask wordpress #irc room
 
Anonymous
Don't make things worse. Just tell me I am sorry
 
6:27 PM
@KyleAdams core.trac.wordpress.org/browser/tests/trunk/includes/… << this is not unit testing framework (that's the class which every unit test of theirs has to extend)
 
@metal_fan no one knows the answer
its like their stupid or something
 
@KyleAdams Well you should have known better...
 
@KyleAdams well, then you'd figure this out yourself :)
 
@tereško I haven't said otherwise :P That is crap^2
 
Anonymous
@PeeHaa tell teresko I'am sorry. pls
 
6:28 PM
I wouldn't be here asking @metal_fan if I didnt think of that. Any ways, Has any one built an application (NOT a theme framework) on top of WordPress?
 
@webarto .. sorry , wrong number
 
@KyleAdams BTW aren't those tests for testing the core instead of your own code?
 
Anonymous
I will behave, and I will not ask noob questions any question on his presence.
 
@KyleAdams Write your own tests for your own application, what is the problem?
 
Anonymous
@webarto @PeeHaa do the right thing
 
6:30 PM
@webarto Well the problem probably is the fact eveything is tightly coupled making it impossible to unit test
 
@PHPNooB why do you care actually? he can be pretty rude, I was considering ignoring him too...
 
@webarto omg, really? The problem is, If I wrote the tests from scratch, I have to do my own database connections, my own queries for loops and jazz, my own this and that. WordPress has already taken care of that for me with their unit tests - the problem is how do you implement their tests with yours so you can leverage them yet keep your tests seperate and clean?
 
Anonymous
@KamilTomšík He is the rudest person alive, actually he is "Ivan the Terrible" re-incarnated. So, it is a pleasure to talk to him : )
 
@KyleAdams WHy do you need to add database connections?
 
@pee
 
6:32 PM
They are unit tests
 
oops
 
@webarto the much anticipated singleton version of bootstrap.php
 
:joy:
 
you should not need to access DB just to test your application logic , @KyleAdams
 
Singleton is about down-votes on SO
 
6:32 PM
@orourkek OMG that thing is really getting out of hand :P
 
@PeeHaa You cant tests a wordpress loop with out a database connection, you need to make sure the post you get back is what you
ok lets see you @tereško write a test for the wordpres loop with out a database
 
@orourkek nice repo link
 
@KyleAdams Then stop calling it unit tests
 
@KyleAdams I don't know what to say, either you are doing it wrong, or WP is doing it wrong, I'd say both, but not sure why you need to do that (write impossible tests).
 
@PeeHaa "Code Bowling" with a twist - it's not how much code you can write, but how much bad code you can write
 
Anonymous
6:33 PM
@KamilTomšík You should see his down-voting record.
 
@KyleAdams you provide data , and make sure that your UNIT correctly works with said data , your UNIT should not give a flying fuck where the data comes from
 
@KyleAdams You don't test some stuff within a loop, but returned value
 
@webarto Well WP is doing it wrong to start with, but calling tests where you load you entire application, storage layer and god might know what unit tests is also not really the correct term
 
@PeeHaa In that case, I'd just hack things up like whole WP is, and made sure it somehow tests it. You can't make a pie out of s*.
 
@webarto +1
 
6:36 PM
brb food
 
be-sometime-back .. cooking food
 
@tereško is Registry kind of anti-pattern?
 
Got access to repo.
On to rewriting.
 
@metal_fan kinda , yes
especially static registries , which are just glofified arrays of singletons
 
@tereško ok... what about static methods in general? Should they never be used, or it's better to use them as "helpers" instead of procedural functions?
 
6:49 PM
@igorw If I require a dev package then imho the stability constraint should be "dev" down that path, including all packages it requires.
 
the problem is that, when you use procedural functions with OOP = you're implementing anti-pattern and when you use static methods = you're also implementing anti-pattern...
 
@igorw I really don't get why it would allow dev on the direct descendant and fall back to stable after that
 
@metal_fan Sounds like you just answered your own quetsion :)
 
A package behaving differently depending on whether you include it directly or whether a subpackage includes it doesn't sound right
 
@PeeHaa the point is --- what to do then?
 
6:53 PM
@metal_fan Don't use static
Inject whatever you need to pass
 
@PeeHaa then procedural with oop?
yeah, but if have 6-12 objects at the same time?
*if i
 
@metal_fan If you think you need to pass 6-12 objects to anything you are doing OOP wrong
 
Di injection is a good, but it should be used for global objects
 
@metal_fan There are no global objects. That's the point
 
@metal_fan wrong
 
6:55 PM
@NikiC here's the thing though, usually you don't directly reference a dev version. you reference something like "1.0.*" or "~1.0". and whether or not you get a dev version depends on the end user's choice.
 
@igorw you don't? I though slapping dev-master in everywhere is how it's done
 
@tereško okay, If I keep the SRP and have about 6-12 objects, what to do then?
 
@NikiC dev-master should be avoided, see also: igor.io/2013/01/07/composer-versioning.html
 
@metal_fan what to do about what ?
i fail to see the problem
so what if you have 12 objects .. inject into each exactly what it directly needs
 
I've wrote app similar to SO, An index page has : News, Notifications, Comments, Votes, Messages, Answers, questions..... - in index page. So I have to inject exactly 12 objects?
@tereško
 
6:59 PM
no , you dont have to
just because your architecture is a mess does not means that DI is bad
 

« first day (845 days earlier)      last day (4117 days later) »