« first day (573 days earlier)      last day (4368 days later) » 

8:00 PM
^ anonymous recursive loop
 
It allows you to use a single function on all elements in the array, instead of programming the loop for it
 
I've only really assigned functions to array values so I could loop them.
 
@rlemon Thats lame :C
 
@EventHorizon no that is useful
@EventHorizon lame is synonymous with "idk how to use that"
 
no no no
I meant at the github thing
 
8:01 PM
@EventHorizon ohh :P hahaha
 
lol
-2 to me for not replying directly to it :P
 
@ircmaxell , can you explain to me , why people in such cases always put in WHERE clause both username AND password ?
 
@rdlowrey It's also doing that annoying locked zoom level on the mobile site version. Can't even zoom in with my phone :(
 
@rlemon may I use that in my forum signature?
 
user895378
PHP chat is like a girlfriend: you think she's the answer to your problems but really she's only good for telling you that everything you're doing is wrong (see below)
 
user895378
8:02 PM
22 mins ago, by gosto
i thought i can find answer here quickly , but its the opposite , only advices
 
@tereško I wish I knew
 
is the some tutorial which tells you to do it ?
or do they all just make the SAME shit up ?
 
I think its tutorials, I have seen that a lot in tuts
 
@ScottyC use what?>
 
and also , if you have a username in where clause , what is the point in selecting said username , @ircmaxell
 
8:03 PM
They all use a lot of the same concepts
 
lame is synonymous with "idk how to use that"
 
ohh sure
> Third, arguments.callee is no longer supported. In normal code arguments.callee refers to the enclosing function. This use case is weak: simply name the enclosing function! Moreover, arguments.callee substantially hinders optimizations like inlining functions, because it must be made possible to provide a reference to the un-inlined function if arguments.callee is accessed. arguments.callee for strict mode functions is a non-deletable property which throws when set or retrieved:
damn strict_mode
 
Awesome. Made me laugh out loud for real. xD
 
Good party gents but I gotta drive home now, have fun.
 
@tereško huh?
 
8:05 PM
@ircmaxell SELECT unique_field FROM whatever WHERE unique_field = 'something'
 
instead of SELECT 1
 
yeah
 
yeah, that's a valid point...
 
makes me sad
 
I'm selecting enough info to populate the user object at that time
 
8:07 PM
Why does it make you sad? Because people misuse it?
 
@ScottyC .. well .. for the answer : how long have you spent on learning SQL ? how many books have you read before you begun to use in production code ?
 
Okay, been reading some more of that Real World Solutions for PHP book. It's still easily the best PHP book I've ever seen,but I did run into a couple of things in the stuff about unit testing that bothered me.
 
@ircmaxell , that would be a good enough reason , though you still should not ask the DB to send you stuff you already know
 
@GordonM Do share
 
The author advises against fragile unit tests, and that makes perfect sense as far as I'm concerned. But he then also advocates subclassing a CUT in order to make its non-public methods public for testing. That doesn't seem to quite gel with the "avoid fragile tests" advice.
@Truth The book?
 
8:10 PM
@GordonM No, your concerns
 
@Truth Oh. See above. :)
 
:P
 
I do
because = may be case insensitive depending on collation
 
user895378
@GordonM I agree with you: protected/private methods are an implementation detail. You should generally cover them with tests of your public interface. Otherwise you'll spend an inordinate amount of time rewriting tests for when implementation details change.
 
8:12 PM
Seems to me that a unit test is meant to test the API of the CUT. Non-public methods are part of the inner workings of the class. You should be able to change them or even delete them without breaking the the things that consume the class.
By explicitly testing the non-public methods you're making the test fragile by definition.
 
@ircmaxell , i concede
 
user895378
Every now and then I'll write tests for non-public methods if I want to ensure something specific works how I expect it to. Generally, though, it's a bad idea.
 
You should test the public API and look at the code coverage report to see if the non-public code got thoroughly exercised. If it didn't then either your unit test isn't sufficiently thorough, or your class contains dead code.
 
@tereško in general I agree though
 
But other than that it's still a good book :)
 
8:14 PM
This one @GordonM ?
 
That's the one
 
@rdlowrey yeah , such tests might be useful , if your protected/private methods have some complicated logic , which you want to check
 
Hmm, maybe I should get it
 
user895378
@tereško exactly.
 
I was looking for a good PHP book
 
8:15 PM
for example , it is doing some regexp magic
 
@tereško I only read one book on SQL, before starting to use it for production software. I don't pretend to be an expert on the subject, but I know how to do basic stuff. Insert, delete, update, joins, aliasing. And I use PDO, not mysql_*
 
user895378
@ScottyC Just by using PDO you're way ahead of most of the people who wander in here with SQL questions :)
 
@Truth , dont look for "good php book" .. what you need is a good book on application architecture
 
user895378
/me Waits for the PoEAA link
 
@tereško Even better, does this one answer the criteria? Or do you have a different recommentation?
 
8:17 PM
I read a lot of programming books, some on PHP, some on Java, some on theory without being about a specific language. The PHP books usually suck.
 
the "Real-World Solutions" book was not bad .. a bit boring
 
@rdlowrey I learned from books, not stupid online tutorials that don't escape their data. :P
 
Yeah, it's not exactly very entertaining. But kudos for mostly good advice and some real world examples from big projects.
 
Updated my answer
it is now a book
 
@Truth Of course PoEAA books is a "must read" , and you might benefit from "Clean Code" book too. But i two i would recommend would be "SQL Antipatterns" and "Design Patterns Explained"
 
8:19 PM
Some of the most boring books are the most "correct" The ones written for beginners are often not that great.
 
@tereško Thanks! Noted.
 
I'll take the design pattern one.
 
you do not need to learn the php language .. instead you should focus on how to use that language
 
Meaning what, exactly?
 
PoEAA, Code Complete 2, Clean Code (Martin Fowler), SQL Antipatterns, TDD, Driving Technical Change, etc
 
8:22 PM
maybe "Refactoring: Improving the Design of Existing Code" too
 
I prefer Working Effectively With Legacy Code
 
@ScottyC , meaning that it is easy to learn a programming language .. much harder is to learn programming
7
 
Any of you guys taken the Zend PHP Certification test?
 
yes
 
ircmaxell and Gordon .. maybe some others
 
8:25 PM
Hey guys my pall is having some issue with his code, here is his post: stackoverflow.com/questions/10554295/…
 
it's a "knows basic syntax" badge .. useful somethimes, but a big portfolio is better
 
So I take it that the test doesn't go into structure or design much then?
 
structure or design?
 
MVC, OOP practices.
 
@ircmaxell where,when, how much?
 
8:28 PM
Oh, shoot. Yeah.
 
@ScottyC Some OOP, no MVC. Mostly focusing around the language and the standard library, as well as some security and basic programming theory (basic)
 
I did. Thanks for catching that.
 
@Nation How is that even remotely PHP related?
 
just closevote , it's not even proper JS question
 
Until they standardize the arguments in PHP, any tests/certs about syntax just seem silly
 
8:31 PM
Where, when and how much is the Zend PHP Certification test
 
@ircmaxell Okay, good to know. I wanna take the test sometime soon.
 
it's not really worth it...
 
@ScottyC Unless you plan on working somewhere that values such certs, your time would be better spent building your knowledge and/or portfolio, IMO
regardless of skill level
 
and invest the money in beer
 
So it's better to focus on building some impressive stuff instead?
 
user895378
8:34 PM
I'm trying to customize a documentation template for a project using the new phpDocumentor2 and I run into what? Missing documentation, of all things:
 
@orourkek Okay, that makes sense. Thanks.
 
user895378
 
@tereško I'm 19, too young to drink. ;)
 
or just building stuff in general. The more stuff you can talk about in interviews, the better off you'll be; much better than having a cert, anyways
 
user895378
by overriding the what?
 
8:35 PM
Clearly you should override the word "the"
 
overriding the ninja.
 
user895378
/me checks for file named "the"
 
user895378
nope, doesn't exist.
 
LOL
 
@ScottyC , oh .. you are from that strange country where 18 is old enough to die in wars , but not old enough to drink
 
8:36 PM
@tereško I never have understood how that is
 
fascinating .. isn't it
 
user895378
Especially considering how powerful the alcohol industry lobby is here
 
same here
 
to be fair, there are a lot of stupid 18 year olds here. Even 20 year olds...
 
@tereško It's something alright
@orourkek Why stop at 20? I know a bunch of stupid 30 year olds
 
8:38 PM
seems like i touched a nerve
 
@tereško There is a very simple reason
 
@CharlesSprayberry I meant just in terms of knowing their alcohol related limits and boundaries, but yeah, you're absolutely right :p
 
Parents don't want to be responsible for their kids, and society doesn't want people to be responsible for themselves. So they go out and instill laws like that to make decisions for people, instead of letting them do it for themselves
 
i think either Carlin or Hicks had a better one , but this would do too
 
@ircmaxell Ding, ding, ding we have a winner!
 
8:40 PM
@ircmaxell Glad someone finally saw it for what it is.
 
it's sad, really...
 
user895378
I'm just sad that I'm starting to not be asked for ID when I buy alcohol :)
 
user895378
THAT's sad.
 
@rdlowrey haha
 
user895378
I'm too tanned for ID.
 
8:41 PM
@rdlowrey I got reverse-carded once
 
@rdlowrey I'M TOO TAN FOR ID
darn! too late :[
 
user895378
@ircmaxell For senior citizens discount?
 
user895378
@orourkek lol
 
What is this too tan thing about?
 
I was buying cigaretts when I was 18. The two women behind the counter were arguing if I was 25 or 30. So they carded me. They thought it was fake since I was obviously older than that... I told them to call the cops to verify. They handed it back
 
8:43 PM
I see. LOL
 
user895378
@ScottyC there, now I can delete them.
 
thanks for removing those pics
 
user895378
@ScottyC @rlemon asked if he could use my avatar for his meme generator. I'm now officially "Too Tanned Guy"
 
@Nation What are you saying? O.o
 
$('script[src*=jquery]').remove(); // jCeption.
 
user895378
8:45 PM
@ircmaxell nice
 
lol
 
@rdlowrey "Failed to load resource: the server responded with a status of 404 (Not Found) rlemon.github.com/lememe/images/tannedguy.jpg";
:{
 
@ircmaxell buying smokes from before I was 19 was easy... i'll be 26 soon and some lady at a store I haven't been to before told me my actual ID was fake.
@orourkek take away the trailing "
 
@rdlowrey I was just going to suggest caution, or you'd end up on a meme site. Guess I'm too late, eh?
 
@rlemon the trailing " was from my paste to here
 
8:47 PM
@ScottyC I did ask first. :P
 
yeh i believe there is a way to get the molecule in the atmosphere to play a video
 
@orourkek well it seems to work for me without that.
 
i am just thinking it possible someday
 
just look at the rain bow
 
user895378
8:48 PM
<-- also getting 404
 
@rlemon maybe a private-to-you folder?
 
@orourkek well then idk what to tell you.
 
it might some crazy, but it just might work
 
@rlemon Got tabs?
 
hrmmm... i see what your saying now... imgur wont take that address.
 
user895378
8:49 PM
Weird. I'm trapped somewhere in the interwebs.
 
@RepWhoringPeeHaa Yo yo
 
user895378
hola
 
@ScottyC you should see my 'work' workspace.
chrome has too many tabs open.. I can't read the titles anyumore
 
Rule.fm really needs to release issue integration with github
 
8:51 PM
@Mike What does the site do? I'd look but my office's web filter is blocking it
 
Chrome should have an optional second line of tabs.
 
@rdlowrey i totally borked that repo methinks. I pushed bad content to it and tried to rebase on the remote repo... now nothing is working. like at all.
 
rule.fm is a crm/pm tool
its like bonfire
 
How is that a lot of tabs open? it's only like 10...
 
or freedcamp
id like to be able to close tasks via github
 
8:52 PM
github.com/rlemon/lememe/tree/gh-pages there is the tree... it's all there... github on the otherhand has not published this
ProTip: Do not rebase your gh-pages...
 
user895378
I've just pushed out my logging framework on github if anyone has nothing better to look at right now.
 
user895378
5.4+
 
user895378
Though I pulled out the one trait because documentation generators choked on it.
 
im writing an ajax message handler library for CI
all of the ones ive found dont do ajax
the either do echo or flashdata
 
You have all seen this? ruhoh.com
^ check it out... interesting stuff.
 
8:54 PM
wtf is it
 
> ruhoh is the only static blog generator built with language-agnostic APIs. Blogging like a hacker just got more hackerish:
 
Interesting. I haven't seen it before.
 
same guy who did jekyll bootstrap
I want ruhoh in php or python.
eff ruby
 
user895378
@rlemon +1
 
he's working on nodejs/python/php support
I think it's a pretty sweet project... I was working on something like this... but using Gists as a backend and oauth/gist api to update the blog.
but in order to do that the gists have to be public.... and Idk if I wanna pollute my gists.
ohh yea this would be a github hosted blog. :P
 
8:59 PM
thinking about starting to use trello
 
@Mike it's kinda annoying (imo)
certain features I don't like (personal opinion)
 
@rdlowrey , i am sorry to say , but traits are just a language sugar .. the methods in traits just get copied into a class before interpreting them
 
why
and what features?
i wish there was a PM tool out there that just hald all the shit i want lol
 
guy u know what i dont like
 
Rule has everything except git integration
 
9:01 PM
bunch of certs
i think they kill alot
 
@Mike nvm, I just went to verify the 'lack of features' and it just appears the features are not well implemented.
 
user895378
@tereško I know, they're almost never needed. I just had three methods that were actually suited for a trait. No matter, I just shoved them into an abstract class and extended it.
 
I want to delete a card, I can click the delete or open it and press DEL on my keyboard.
 
user895378
I usually favor composition over inheritance, but this instance is justified.
 
^ Y U NO TELL ME DEL ON KEYBOARD IS GOING TO KILL MY CARD?!?!!?!!?
 
9:03 PM
it's late , it would require too much attention to either agree or disagree with your assessment , @rdlowrey
 
i work on a team of 4 devs
and im the only one that uses github
the rest use FTP
and edit on the server
why do i bother >_>
 
user895378
@tereško the ignore switch is never a bad option ... especially on a friday
 
naaah , i will just tear you a new one in the morning
 
@Mike It's not always when 4 people tell you you're wrong, it actually means you are wrong
There's a slim chance that they are all wrong and you are right (which is the case)
You should educate your team members
 
user895378
@Mike Smells like Dreamweaver :)
 
9:06 PM
i cant, management refuses to enforce rules. @rdlowrey and yes, they all love DW.
perfect example is boss just pretty much forced me to edit and commit on master branch.. as a result code went foobar on a clients site i lol'd
 
user895378
The first question on my "Developer Talent Questionnaire" is:
 
user895378
1. Is Dreamweaver your preferred IDE?
 
if there isnt a GUI for it they wont use it, perfect example why they wont use git or ssh.
 
user895378
If yes, proceed to question 35
 
and in all honesty id rather me do all the work and them to stick to photoshoping images.
 
user895378
9:08 PM
35. Please don't let the door hit you on your way out.
 
leave the code base to me, i dont know a lot and i definitely dont know everything... but i do know more than you.. so please forgive me when i revoke your username from the server.
/rage
 
user895378
root access FTW
 
x2
 
@Mike , you need to fire your boss and hire a different one
 
haha
unfortunately he leaves me well paid. So i put up with it
hes one of those bosses that doesnt know ish about programming.. and also one of those bosses that thinks the big things take 5 mins and the small things take 5 hours.
i had to make an installer script that would clone a git repo and install and configure codeigniter because kids he has working for him dont know wtf's up.
 
9:11 PM
you should invest some time in looking for a better job
 
user895378
agreed.
 
its a side job, my 9-5 is accounts payable at a govt org.
after this project ill probably drop the side job
my 9-5 is eaasy peaasy
 
I just wrote an FTP streamwrapper, I've got one question though; when should I put the modified file on the server?
 
just dont forget to explain in explicit detail to him , why you are leaving
 
I figured I shouldn't put the file on each stream_write()
 
9:13 PM
the designers are working on G5 macs they cant even install chrome or a recent version of firefox
so theyre designing to standards from 5 years ago
 
instead, I thought I should just flag the file as modified and write everything on stream_close (if it was modified).
 
@Mike I didn't say enforce rules to make them work with git
 
oh i will
 
but there's also stream_flush, should I use that?
 
I said educate them so that they begin working with git
 
9:14 PM
@Truth , or with git
 
There's a large difference, and the latter is much more difficult at most times.
 
but AFAIK stream_flush won't get called unless you do an fflush()
 
private repositories on github cost moooniez
 
@Truth git should be a requirement, training AND enforcement have to go hand in hand.
 
@tereško I stand corrected.
 
9:14 PM
@tereško thats not a problem.
 
@Mike Yes, but I can tell you by experience that enforcement alone means nothing without proper education
 
@Truth couldnt agree more man.
 
They'll do it, but they won't understand why and how, and they would probably do it badly.
 
@Mike Huh, what?
 
you could start by giving 30 min lecture each monday
on basics of programming
 
9:15 PM
It's like saying sourcesafe should be a requirement....every one knows it's no use, but you need it if you go anywhere in big tech companies.
 
alright im out of here
beer with my name on it before a shitty ass design meeting
plan on getting plastered and walking in to this design meeting with a heavy buzz
and a 5 o clock shadow.
LIKE A BAWSS
 
that's the spirit :]
 
aaaanyway...anyone got some insight into my issue?
I'm sure it would take only a couple of seconds' thought
 
not me ... i have never used it
 
@tereško seriously? never used streamwrappers?
 
9:23 PM
i dont even have a clue on what you are talking about
i am drawing blank here
( i think thats the expression )
 
I haven't used them before either. Here's an interesting article I just looked up.
http://devlog.info/2008/10/19/php-stream-wrappers/
 
i would assume that Christian can google himself
 
@tereško I think he addressed the link to you :D
 
w00
here's another one about stream wrappers: phpmyweb.net/2012/04/26/write-an-awesome-plugin-system-in-php
interesting stuff
 
Shame @ircmaxell's afk, he could have helped easily :)
 
9:28 PM
More to anyone that had an interest in the subject.
 
i will just continue to read a book
 
Anyone familiar with cakephp 1.3?
 
Well
150 points today all in under 2 hours
I think that's enough SOing for today
I'm off to bed, see yall tomorrow :)
 
@Truth , better get 200
there is a gold achievement for it
 
user895378
only if you do it a bunch of times ... like 150 :)
 
9:37 PM
yeah .. i still need 145
 
user895378
I'm finally caving on my anti-twitter stance and getting an account. Anybody want a new follower?
 
user895378
Probably not :)
 
@rdlowrey Sure. What's the pay?
 
user895378
free as long as you can post your handle in chat
 
@rdlowrey Wut?! Time is money. :/
 
9:43 PM
Lol no good questions
I might just have to settle for 150 anyone @tereško
 
@rdlowrey Sure.
@chrisveto, Estonia
I make things.
1k tweets, 61 followers, following 21 users
 
@go_oh, 51.4487513;7.0123734
Freelance PHP webdeveloper, consultant and Zend Certified Engineer from Essen, Germany.
2.2k tweets, 296 followers, following 176 users
 
lol
 
@rdlowrey What's your twitter handle?
 
user895378
@rdlowrey
0 tweets, 6 followers, following 9 users
 
9:47 PM
YAY!
force upsteam from home and we're back!
 
user895378
 
@rdlowrey what does the 'r' stand for?
Robert Daniel Lowrey?
 
user895378
yes: we've had this conversation before :)
 
just making sure it was you
;)
 
Some dude told me on twitter that he reads my tweets with popcorn. I take it as a bad sign.
So don't expect to find anything "programming" related much.
 
9:50 PM
oh , hell .. why not
@_teresko
web development partisan
200 tweets, 59 followers, following 126 users
 
I keep hearing the word "partisan" more and more.
 
that subtitle is 2 year old
 
cool
 
@TheGreatRupert, Kitchener, Ontario. Canada
a.k.a rlemon. I write code; some of which works!
740 tweets, 30 followers, following 67 users
 
thegreatrupert?
seriously?
 
user895378
9:55 PM
@rlemon nice
 
@Chris yea. you got issues with that?
 
user895378
Thanks for the twitter seeds gentlemen.
 
Nope ... not at all hides
 
I will find you!
 
 
user895378
9:56 PM
I'm now going to have to create a github page just so I can archive all the too tanned brogrammer meme iterations.
 
lol
@Chris you know there is an option to just upload it 'from the web'
which should have taken care of that refer thing.
 
@rlemon Pss, duh
looks for it
 
nope
they block it there too
assholes
 
 

« first day (573 days earlier)      last day (4368 days later) »