logs archiveIRC Archive / Freenode / #php / 2015 / August / 18 / 1
Chunk2
I also know about json_encode, this won't work because it contains instances of other classes
Illya
sagerdearia: mention that you've been writing it for 15 years as well
runinsquares
"I've used PHP long enough to not want to use it anymore, do you use Python?"
that should get you the job
laszlof
Chunk2: reflection
Chunk2
laszlof: Thanks, I didn't even realize PHP had this
runinsquares
laszlof, could you make an example, i'm interested to see how this works
laszlof
runinsquares: http://3v4l.org/cMZtW
something like this
Chunk2
runinsquares: it looks pretty straightforward if you're talking about reflection
laszlof
you could obviously move the reflection stuff into the class itself
but it provides a way to filter the properties
(i wish get_object_vars() had that)
         

caffinated
Chunk2: http://3v4l.org/EedZL
Chunk2
there's a lot to wish for in PHP
laszlof
caffinated: he wants to do it within the class.
runinsquares
i heard reflection is for debugging tho?
thebuccaneersden
not necessarily? runinsquares
ph88
caffinated: do you know how i can mail to the windows list ?
DissidentRage
<runinsquares> "I've used PHP long enough to not want to use it anymore, do you use Python?" <runinsquares> that should get you the job
I tried that once
"no but we use Rails"
runinsquares
did you get the job?
DissidentRage
I didn't but only because it was in Colorado and I'm in Virginia, and they didn't want to hire someone who'd have to move across the country
caffinated
Oddly, I've never run in to any company that has a problem with someone relocating to work there.
laszlof
psh, devs can work remote :P
DissidentRage
laszlof: that's what I'm saying brah
caffinated
ph88: not offhand, no.
runinsquares
or catch the train? no? bad rails joke? :<
DissidentRage
but each company I apply to doesn't want it
runinsquares: huehue
thebuccaneersden
ive done thw work from home thing for a while. it gets rather lonely :\
laszlof
same
I enjoy working from the office
ph88
caffinated: do you know after compiling php on linux how i can map a snap ? -- i can't find it with google
DissidentRage
I have a dog, that's enough
runinsquares
lol, i just had a vision of everyone saying broh/brah to answer questions in this channel and how surreal that would be
         

laszlof
but we just hired someone who will be remote.
neclimdul
i heard reflection was for changing private methods to public in production code
DissidentRage
runinsquares: now imagine everyone with Guy Fieri hair
runinsquares
gotta use prepared statements brah, stops the SQL injection duuuuuude
i want this to be a thing D:
until i'm annoyed of it
laszlof
too late
caffinated
I'm already annoyed
;)
runinsquares
caffinated chillax brah
DissidentRage
don't harsh it brah
caffinated
"Simmons, I want you to poison griff's next meal!"
DissidentRage
are you using that in a text RPG?
thebuccaneersden
http://www.opengeek.net/images/ogeek/what/what-the-hell_7.jpg
runinsquares
btw brahs, has any brah used RoR, dawg?
thebuccaneersden
yup
runinsquares
how'd you feel about it dawg?
DissidentRage
needs more hashtag
thebuccaneersden
pretty cool. high learning curve tho
caffinated
RoR has a high learning curve?
(Action) blinks
ph88
i'm stuck with compiling php stuff on both windows and linux ..
runinsquares
thebuccaneersden, does the fw do most of the work or do you need a solid ruby foundation regardless? #rubyonrails #ruby #askinquestionz #brah
the video that i admittedly didn't sit the whole way through made it look like RoR takes a lot out of your hands and you learn the framework rather than ruby, mostly. is that accurate or completely wrong?
caffinated
and there's the problem. You've never actually used it, have no real idea how it works, and yet you've already formed an opinion based on ignorance.
neclimdul
runinsquares: I've only maintained applications built on it not really developed against is but that seems correct. As much as any framework does I think.
runinsquares
caffinated are you saying i have an opinion on it when i've clearly asked a question showing i have no opinion? Oo
caffinated
how you frame the question says a lot.
runinsquares
neclimdul, thanks
caffinated, does it sound like i'm against the fw? i'm actually quite interested in learning it
caffinated
and yet, you just spent the last 10 minutes making jokes about rails being for idiots.
runinsquares
lol no i didn't
caffinated
then you and I must be reading different channels
runinsquares
we really must be
caffinated
in any case, build something in it. learn how it works. then if you hate it, you're at least justified in your opinion.
runinsquares
i don't have an opinion caffinated
only curiosity
syosoft
eff rails!
;)
thebuccaneersden
runinsquares : a lot of the framework does do the work for you. The RoR philosophy is very much convention over configuration
id say learning ruby is obviously important, but its a much more readable language than others, should be easy enough to pick up
ph88
learning ruby doesn't seem important at all o_O
caffinated
a framework is supposed to reduce your workload though abstraction. if it didn't, it wouldn't be much of a framework.
thebuccaneersden
i would say a framework reduces workload by identifying and simplifying frequently solved problems
caffinated
which is just another way of saying "it abstracts things to make them easier and/or faster to implement"
I see rails a lot like I see symphony. You can learn a little, or you can learn a lot. It takes a very low amount of base knowledge to get started - but if you really want to take full advantage you'll need to put in more effort.
xyphoid
you should be pleasantly surprised by the stuff the framework provides that you weren't expecting
that's my brenchmark
(whatever a brench is)
thebuccaneersden
thats not surprising since a lot of frameworks were inspired by rails
caffinated
however one sees rails, it was indirectly responsible for a lot of major improvements in the PHP ecosystem
thebuccaneersden
yup!
symfony also deserves a lot of credit too tho.
caffinated
of course. I'm just saying that rails made a lot of things "cool". Like proper software testing and many other good software development practices.
thebuccaneersden
fabien did a fantastic job breaking up syfony in v2 to core components that are modular
caffinated
prior to rails, many people weren't even concerned with these things
thebuccaneersden
it set the stage for things like composer etc
yeah. i give rails a lot of credit. it really did push things forward
caffinated
it honestly wouldn't surprise me if stuff like the direction of symphony was influenced by it all
that's not to put fabien down or anything - it's good that he recognized a change needed to be made and then put his money where his mouth is. symphony is better for it.
and really, all these ideas predate ruby and rails too
they just needed to be pushed in to the mainstream somehow
thebuccaneersden
they did, but rails lead by example and ppl saw that it was good
« prev 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 next »