« first day (2358 days earlier)      last day (2605 days later) » 

Anonymous
3:00 PM
@FélixGagnon-Grenier it's a joke. I shouldn't have passed.
 
@JoeWatkins it does right? I was overwhelmed with pleasure
 
Anonymous
But it's useful to get a job for someone who has no professional experience or degree in IT
 
I guess I was lucky
 
I don't have a degree
 
fo' realz?
 
3:02 PM
yeah, never even finished high school
 
^ I am almost the same, although I did get as far as GCSEs (16yo exams)
I was kicked off the GCSE I.T. course
 
I never even got to choose subjects ...
 
I got a D in maths and C in science
 
@DaveRandom well, you could have stopped sending naked pictures of you to your teachers to pass your classes
 
@FélixGagnon-Grenier How do you think I managed a D?
 
3:04 PM
so many levels of puns, my brain isn't structured to handle such concurrency
 
anyway if doesn't effect me, if I had a degree I wouldn't get offered better jobs than I already get offered, and I wouldn't be any better at doing those jobs ... I don't buy that you need to have a degree, or be a certain kind of person to get good jobs in IT, it's about what you can do, not about what bits of paper you have ...
 
@kelunik I want to market it, but I can't in honesty until I understand it like I do react / ratchet combo, which is imho easy to understand compared
 
have some epic music, with canons, blackjack and hookers youtube.com/watch?v=VbxgYlcNxE8
 
@JoeWatkins You're not exactly a great example of your average tech dude looking for a job.
 
> WARNING: Cannons may make dogs bark, scare your mom, leave your neighbor dumbfounded, make cats panic, wake you up in the middle of the night shouting at the top of your lungs because you think you are being robbed, scare the crap out of you, and/or blow up your ears and brains; among other things...
 
3:11 PM
You're the guy who wrote a the debugger for PHP.
 
still an inspiring example
 
Oh, don't get me wrong, I'm a firm believer that if you're a strong dev, you can definitely get by without a degree.
Work on your GitHub and Stack Overflow profiles, be impressive, stand out.
 
@kelunik yea, all okay… wasn't home until now
 
I'm just saying, if everyone stood out, then no one would.
 
@bwoebi now, quick
 
3:13 PM
@kelunik yeah, already did
 
It might be already too late.
 
@MadaraUchiha good point
 
(removed)
 
(removed)
 
(remowed)
 
3:15 PM
(remoled)
 
(not removed)
 
@Ekin Spider on the keyboard?
 
Anonymous
some spider
 
I wish I saw that message
 
3:15 PM
'twas my niece
 
vbghfty
 
I licked my keyboard
 
@Ekin aww
 
Anonymous
hahaha
 
3:16 PM
inb4 "She's 16"
 
@Jimbo just try it for a night please...
 
she's 2 :P
 
It's not actually hard to understand
 
Anonymous
lies.
 
That* hard
 
3:17 PM
@Ekin Cunningham's law at its finest :D
 
@PeeHaa seconded @Jimbo
 
@MadaraUchiha heh right :D
 
@MadaraUchiha this just makes me think how my kid brother is just attempting to drift through life
 
@tereško All I know that 3-ish years ago, I started interviewing for my first job
And that my then ~50k points on SO were very impressive to my interviewers
 
Remember kids if you want to become as smart as me. Smoke and drink your way through education
 
3:20 PM
And the fact that I had half-completed shit on GitHub also REALLY helped.
Without bragging, companies fought over me, in my first job, and eventually I got to choose where I'd work
 
I relate to every of the advices that were just given
 
lol, I got my current job by sending them link to my SO and github profiles
 
@tereško I think that's how it should be vOv
Your answers on SO and code on GitHub tells an interviewer much more about you than a CV.
 
I think it was couple months later, when they asked me to give them something like a CV, for HR purposes
 
@PeeHaa seconded @Jimbo
 
3:22 PM
anyway, I am really fucking annoyed that my kid brother hasn't even tried to learn anything new since even before finishing his master's degree
 
@tereško Then, he won't stand out
That's about it vOv
 
he earned a master's in history and now is just pissing away time in some museum
 
I learned because I'm passionate about it.
Some learn because they actively want to stand out
 
@DaveRandom :-)
 
And some don't want to learn.
 
3:24 PM
@tereško somehow this sounds like he's an exhibit
@PeeHaa seconded @Jimbo
 
I hate learning in the classical sense
 
I learn because I like to tell people in detail how they are wrong
10
 
I ... don't remember how I got here ... I remember bits of the start, but it's too horrible to talk about ....
 
;D
 
@tereško Spite Driven Development
lol
 
3:25 PM
so much win
 
I learn because I like to tell people *in detail* how they are wrong
 
I'm just honest-ish
 
@tereško So when are you leaving Latvia for a job that would actually appreciate your skils?
 
dunno
 
3:29 PM
When are you going to find people who are able to tell you in detail how you're wrong?
 
I might try that, when I get fed up with my current job
@MadaraUchiha that's one of the reasons why I am in this chat room
btw, decided on the name for that authentication library: Palladium
 
Anonymous
@MadaraUchiha Same, though that was completely down to 11 not profiles
 
Well this has happened today... https://t.co/p1tPfGobif
 
@DaveRandom lol
rekt
 
it doesn't beat the roof one, but pretty good ...
 
3:35 PM
I keep hearing about strange practices in package delivery
it might be just a 3rd-world-country thing, but in Latvia you get package delivered to your hand, literally
then again, it might be related to the fact that about 80% of people live in apartments and not in private houses
 
Anonymous
@tereško but you have nothing on your github page. How does that work
 
heh, actually I have another code sample on github, that is hidden (for some reason)
I'm gonna try to find the link
 
Anonymous
This year has been fine for me. I got 2 internship offers. I am doing my intern for a startup company inside a university compound.
 
@samayo this thing: github.com/glome/cbc/commits/overhaul go back in history
 
Anonymous
Sadly these guys went to India and hired developers to set up their company website in WORDPRESS.
 
Anonymous
3:42 PM
Now, all is hell
 
majority of that branch is my code ... but it's nothing I can actually be proud of
it's a bit shit
 
Anonymous
@tereško not sure why it's hidden from your profile
 
Anonymous
maybe you should pin it
 
naah, I'm fine with it being hidden
@samayo maybe you should push for some time being set aside to make the company site less shit
using security and the public perception could be two possible vectors
or you could start looking for a proper position as a full time developer
 
Anonymous
They want to keep me on permanent basis, but they can't afford to pay the minimum required salary, as they are just starting.
 
Anonymous
3:48 PM
I knew that before I joined. I just applied to add something into my CV.
 
which is why you should try looking for alternatives
 
Anonymous
Yeah, I'm looking. I have an interview (by phone) on Monday.
 
hmm .. good luck then
 
Anonymous
Thanks.
 
Anonymous
4:12 PM
Can someone suggest a good movie?
 
Anonymous
I need a good wine, and one-two movies tonight.
 
Anonymous
 
@samayo if you were going to use a CMS for a marketing website, or general company website what CMS would you use? drupal ?
 
Anonymous
@JayIsTooCommon @Gordon nice choice. I haven't seen both
 
Anonymous
4:19 PM
i can assure you my one will be better.. @Gordon is uncool.
 
Anonymous
@corey yes.
 
or you just check the IMDB Top 100 or the AFI Top 100 or the BFI Top 100
 
@samayo movie suggestion -> imdb.com/title/tt2910814
 
@JayIsTooCommon sorry, that is not the real legend
 
Anonymous
what is the real legend?
 
4:22 PM
 
@tereško that's the one I linked below his
 
Anonymous
you're all uncool
 
yes
 
The last movie I watched was imdb.com/title/tt3792960 - it's french and kinda artsy but I enjoyed it
 
@corey "marketing website"?
why would it need a CMS?
 
Anonymous
4:24 PM
@Gordon is Schindler's List any good?
 
Anonymous
I generally try to stay away from those kind of movies
 
oh actually, that's a lie. I watched Singing in the Rain about 20 times in the last two weeks because the son wants to see "wayne". he cant pronounce rain properly yet. but he likes the music and the dancing. and let's be fair, it's a very good movie.
@samayo yes, it is. it's #8 on the AFI top 100. and #6 on imdb
 
@tereško I am thinking more for a small business who wants to edit content easily, and create pages. You could create an admin backend to accomplish this, but in I think it would be a good business decision to use an open source solution that doesn't have so many security exploits.
@tereško what do you suggest?
 
@corey the best option would be something custom made. But, if you have to save time, you could use Joomla or Sonata
 
@samayo and for a good wine I can recommend vivino.com/wineries/post-house/wines/…
 
4:29 PM
Joomla is an CMS. I've used it years ago. I like dupal or expression engine. Wordpress has many security exploits, and mostly when plugins are installed. If you have managed hosting with wordpress, then it isn't an issue.
 
Anonymous
@Gordon That is actually I amazing. I have no idea what good wine is, or what makes a wine good. I just started taking random wines every Friday for some time now, and they all tasted shit.
 
s/is an CMS/is an old CMS .. I haven't used or seen the source in years. However, I don't really handle marketing websites any longer.
 
@corey you have to separate the CMS system from the public site
 
Anonymous
I know it's supposed to taste like shit, but at least it would be nice to know what a good wine feels like
 
@tereško you mean for security?
 
4:31 PM
@samayo I personally prefer shiraz
I mean for making sense of thing. The application that makes the content should not know anything about how it will get presented.
 
@samayo I am certainly no expert. I just happen to use this vivino app thing to keep track of wines I liked, but they also recommend (spam) you with offers every day. While I still believe wine doesnt have to be expensive, I have to admit that the more pricy recommendations have been better on average.
my rule of thumb when I dont know any of the wines on a menu and I dont have the app to check is "a cabernet from chile is never bad, preferably older than 5 years"
 
Anonymous
Hm, I will search for those tonight if I can find them.
 
oh and in general: wine is good if you like it :)
 
you should try similar thing with beers :D
 
there is beer apps like that. untappd.com for instance.
 
4:37 PM
Im currently caching my comments using redis and it looks like post:x { [0] = comment_json_data} and im currently only caching comments with no replies because I dont know how to handle replies. Could you guys give me some examples how I should handle comment replies
 
@samayo I doubt you'll find the one I recommend though. I haven't seen in any market here. I got it from the app.
But you could download the app and check your local market for some ratings.
 
Anonymous
It seems I found both your recommended wine type in one bottle: Shiraz/Cabernet for chf 44.85
 
Anonymous
I will check for Chilean win older than 5 years, and start from there.
 
Anyone?
 
Anonymous
4:43 PM
@corey I just remembered you.
 
Anonymous
How is your app going
 
They are all going well... maybe a different corey? Or where did we meet?
 
Would asking a stackoverflow question incentivize y'all?
 
Anonymous
Ah, same name different @corey
 
Anonymous
@user7594714 not likely.
 
4:47 PM
@samayo yea but my applications are going well and hopefully more being released to the publlic. Exciting times.
 
evening
 
Anonymous
o/
 
\o
 
@samayo what would?
 
Anonymous
Ask it in the main site, write clearly the issue/problem and what you have tried.
 
Anonymous
4:55 PM
If it didn't get much attention put a bounty on it.
 
Anonymous
If you can't place a bounty, let me know I can help you
 
5:06 PM
so, did anyone play Thimbleweed Park yet?
 
o/ Paul
 
5:22 PM
\o
 
5:34 PM
best practices defined:
default:
    throw new Exception("WOT N TERNATION");
 
@Dereleased yeah exactly.
 
dat flamingo
I feel uncomfortable
 
5:42 PM
:P
 
5:53 PM
defined() not working for $objectinstance::CLASS_CONSTANT – #74350
 
Can some one get me out of this trouble.. I've total count of rows and limit and I need an offset with ascending order...
E.x

total count : 50;
limit: 20;
Any logic to get an offset value using limit and total count? I mean I need 30 for Offset value in this case...!
 
@Jeeves wat O.o
 
@PeeHaa I don't know. That's why I asked you.
 
@BasheerAhmed what are you trying to do? (50 - 20 results in 30 )
 
Yeah makes no sense bro
 
5:56 PM
@FélixGagnon-Grenier but what about 20 - 20 = 0
 
which is a perfectly fine offset
that being said, this is probably not what you are looking for. what are you doing. pagination?
 
@FélixGagnon-Grenier :D I was thinking the right way but ah thanks for realizing..
I was just panic...!
 
Anonymous
@DaveRandom hahahahaha
 
Anonymous
Mother Jesus
 
6:14 PM
so ... I was curious about comic book sales
according to stuff on the internet in february of 2016 and 2015 there were only 4 DC comic books in the top 20 sales
in 2017 there are only 4 Marvel books in top 20 (an two of them are StarWars)
 
and you mention that because?
 
I was just reading Green Lantern and got curious about the sales
 
heh. listened to justice league the other day. green lantern seems to be some rare specimen of smartass
 
Wrong reflection on variadic array functions – #74351
 
since jeeves started to share these, I've started to think that php is a buggy language
 
6:21 PM
actually, if I'm not mistaken, green arrow is usually the smartass (not like in the TV series, where he's basically a discount batman)
 
good morning
 
o/
 
isn't there a way to alias a variable in a use statement of an anonymous function?
 
No
 
i.e. ` function($param) use ($this->prop as $prop)`
 
6:30 PM
wat
properties of the current instance are available by default
 
okay... $this is available in anons... good to know
 
:-)
 
6:49 PM
Random fact
 
cool ... and with bind/bindTo you can completely break encapsulation ... yay
 
lol. indeed :P
 
... kinda why I never use it
/me uses anonymous function only for lazy factories
 
and the award for my least favorite method ever goes to: bindTo
 
6:58 PM
@FélixGagnon-Grenier you probably should try reading "Injustice" ... people say it's good
 
this? sure why not, I was looking for a plan for tonight #foreverAloneOnFridayNights
oh cool, the reader is actually sensible and let's you navigate with keyboard arrows.
 
@FélixGagnon-Grenier yes. That looks like "year one"
 
I am using this one: readcomiconline.to and mangafox.me
 
does anyone know of a legit use case for that thing? I only find it on tests
 
7:03 PM
@pmmaga which part? bindTo?
 
yeah
 
or anonymous functions in general
 
bindTo
 
you can probably use some decorator-like things with it
 
@pmmaga not sure if legit, but I use it in a dumb templating system to bind a scope to a stdClass, so I can use $this->whatever in the template
 
7:05 PM
yeah, I was also thinking about templating as an options, but I am strongly against use pf $this in templates
 
... to be honest, I did that because I was growing weary of phpstorm highliting every undefined variables
 
@pmmaga for a real example, you would probably have to make some purely functional code
 
@tereško also why?
 
@FélixGagnon-Grenier the template (the html with variables) should not be "pulling in" any information
also, the $this represents invisible context in a template
and makes it less reusable
I can give you other reasons too, @FélixGagnon-Grenier, but the real answer is: "it feels wrong"
 
right, I can agree it somewhat binds the template to a specific rendering engine. I'm not sure to understand what "pulling in" means in this context
 
7:09 PM
> my oop sense is tingling
 
ahh, I see ;)
 
and I tend to trust it
 
@FélixGagnon-Grenier "pulling in" in this case is pretty much what bindTo seems to do
 
bind is a purely functional thing
it goes with a completely different paradigm (the one I use extensively in ES6)
 
you're not passing your stuff, you're picking it up yourself :P
 
7:11 PM
hmmm, right
 
template is passive
mvc's view is active and uses templates
yay, second beer
 
which reminds me I absolutely have not been productive enough today to leave work like this
 
it's friday
 
distant gaze hmmmmm....! true dat.
@tereško so I take it that, if you'd see a template with <?= $this->render() ?> that calls in another template, you'd be very tingled?
 
yes
template shouldn't render templates
 
7:20 PM
technically, it would be the templating engine
yes, you can tell me to shut up
 
:)
I just dont like to expose cross-contaminate layers
where does it stop
 
@tereško partials in the templates are fine in my book. as long as you pass what they need
 
<h1>Hi, <?=$this->serviceFactory->create('Auth')->getCurrentUser()->getUsername();?>!</h1>
 
... no need to go to such disastrous extent to prove a point ;)
 
4 hours ago, by tereško
I learn because I like to tell people in detail how they are wrong
 
7:24 PM
:P
 
my point is, when you got your grubby filthy hands on $this, you can start accessing everything
 
which reminds me of this
$this->object->{"function(){   this is a truely awful  name for a variable }"}
 
sometimes you have to work with JSON objects
:(
it is still better than $this->$var
 
@tereško hmmm... not really. or well, it depends on the templating engine. it can completely insulated from the rest of the application. you could always pass the service factory in a property, but you could as well do that with simple vars
<h1>Hi, <?=$serviceFactory->create('Auth')->getCurrentUser()->getUsername();?>!</h1>
 
which is why I have begun using Twig
 
7:29 PM
yeah, I've actually started to wonder if I would not go back to such engines. PHP templates are good and everything, but as soon as I start thinking about escaping everything by default I feel like I'm reinventing the wheel again
 
native templating is ok, if you are the only developer on a project
.. or you need a team, that only consists of developers, that you can trusts to make right decisions
and that's really fucking hard
 
I believe I am presently in this very improbable situation (well, we're actually pretty much two devs that deal with frontend-ish stuff)
it is... amazing.
 
in my current company there are 4 people (out of 200) that I would trust to that extent
and 3 of them are team-leads
 
Extreme
 
on a completely different note, should I buy this? ukjuicers.com/ir-d5-infrared-food-dehydrator (mother wanted a dehydrator on her birthday)
also, is that site actually trustworthy
I have no issue with spending €450, but I dont want to throw them away
 
i truly don't mind, but please remember this moment next time you want to send someone away because their question is about a framework :P
 
@pmmaga who are you talking to?
 
@tereško to you
 
beeeecause?
 
@tereško because you tend to get jumpy when people ask questions about frameworks which still is more on topic than some of the thing you bring up
 
7:40 PM
also, please consider, that I usually send people with framework-specific questions to specific resources, because we dont actually have people with such expertise here
 
i don't mind either way, it's just that you could ignore those questions instead of chasing them away
 
usually: IRC
 
@tereško that's very true, i understand why you do it. :) but maybe just ignore most of the times
 
or are you willing to actually talk to them, instead of letting them to scream into the void
 
most of the times their questions end up not being that framework specific
 
7:42 PM
How do you add two integers in CodeIgniter?
 
:D
 
I have no problem with chasing those people away
Jun 3 '16 at 6:47, by Praveen Kumar
Should i learn laravel or smarty ??
^ nah, that one was fake
Nov 10 '15 at 22:26, by EquinoxMatt
is it wrong that I do really like Laravel DIC
 
Yii is appropriately named; it's the sound you make while jumping out the window when someone on your team proposes it.
 
@tereško intval((function($dec){ ob_start(); printf("%.0f", $dec); return preg_replace('/\..*$/', '', ob_get_clean()); })(4.66)); btw
 
not enough laravel
 
7:48 PM
I don't know a fucking thing about laravel, I was just posting the simplest and most efficient answer in the PHP Scripting Engine that laravel implements
 
@Dereleased most of those option look either like plastic throw-away or industrial-grade
 
For a little while I wondered why there was such hate for laravel. Then one day I remembered that one of the worst devs I ever worked with loved it more than anything. It may be logically fallacious, but that's enough reason for me to avoid it.
 
it's where all the people from codeigniter, fuelphp and cakephp (and a considerable portion of yii) migrated to
 
tbh, the only real life person I know that uses it (and literally said stuff like "I love Laravel, it is so good" along with "I really understand OOP well") turned out to be complete fraud that got fired because they weren't able to fucking understand code by reading it
it really did not help my opinion
 
I hope you all do realize, that this is just a variation on ad homonim
 
7:54 PM
... the less funny part is, while I was away, they got all their time to say that my code was so bullshit because uncommented, and were so proud to say that theirs was so much better because they had comment in front of every fecking method and function that stated the parameters, that were already stated in said methods and functions
 
I keep typing all this shit basically trying to say I haven't used a mainstream framework in a long time. Last ones were ZF1 and CodeIgniter (don't remember the version).
 
@Dereleased don't rely on printf to round appropriately, it'll differ from round in many cases. so that should be printf("%.0f", round($dec))
 
I work around PHP a lot.
@PaulCrovella Good catch!
 
@Dereleased in my experience, the current "commonly agreed practice" is to use symfony's components (not the framework) in combination with various other composer packages
it's not what you will get told on r/PHP, of course
 
Better description: I write a lot of software for people who use PHP; occasionally that is in PHP, usually it is not.
 
7:58 PM
then that tidbit should be helpful for you
 
quite
 
8:16 PM
!!xkcd 1814
 
the expansion fucked up the mouseover character encoding. nice.
 
Summary – #74352
 
@Jeeves ...
 
8:25 PM
@PeeHaa Are you happy?
 
I swear, ever since you got @Jeeves to post bug reports in here they've been getting stupider and stupider
 
@NikiC Better than what?
 
im caching my comments and im wondering if it is okay to invalidate cache every time someone post a new comment
 
@user7594714 go for it.
 
@Danack Aight, but dont you the drawback is a bit too big, because when I need the cache the most i'd have to invalidate and practically gain nothing
 
8:43 PM
@NikiC I love how he has a sock puppet vote
That's some proper effort he put into that
 
please don't do that a third time. There is only so much my nerves can handle.
scrutinizes the screen
 
Wes
9:13 PM
(removed)
 
cringes badly
 
Wes
indeed
 
@FélixGagnon-Grenier here, have this you filthy old man: youtube.com/watch?v=tSRObg9ugWs
 
lolwat
bah w/e. random asian chicks under the rain. what's not to like.
 
I try no to traumatize people on weekends
 
9:21 PM
G'night people o/
 
btw, @Saitama, you would have probably recognized that song
 
9:32 PM
commuting home, la'ers
 
@tereško I do, :P
 
9:47 PM
@NikiC well, actually it just coincides with april fools day approaching
 
@bwoebi Oh right, that's a thing too
Thanks for the reminder
 

« first day (2358 days earlier)      last day (2605 days later) »