« first day (1721 days earlier)      last day (3221 days later) » 

11:00 PM
Inject it in constructor
 
@SilentEcho inject it whenever you see fit. if you hit a wall change it. it's practically less a problem then you theoretically think.
 
Be there or be... errr... somewhere else
 
Thanks guys, just trying to Do It RightTM.
 
@DaveRandom oh cool, I ask my employee for travel and event sponsorship
 
Hey @hakre, relatively long time no see
 
11:01 PM
@SilentEcho right => defer what varies.
 
@hakre depending on your company, buying an lwn subscription can be nice
 
I guess you're doing that whole "real life" thing, how's that working out for ya?
 
@DaveRandom yeah, rough times. I hopefully have linux privately as well soon (TM)
 
@FlorianMargaine would be good to see see you there if you can swing it
 
@DaveRandom don't count on it
I'd love to, but this year is not going to be possible
 
11:03 PM
:-(
phpnw seems to have become the PHP conf circuit equivalent of Glastonbury, it's worth it for the socialisation alone, and there's a whole bunch of (usually) awesome talks on top of that
Although I would like to do DPC next year, that always has a schedule of talks I wish I was in
 
yeah but I'm not especially working with php
drupal is its own community outside of php, and it's mostly python these days
 
@DaveRandom Do you mind if I come over again? :)
 
@DaveRandom surprisingly well as always ;) - on the day-time this is currently magento 1 from which I could benefit last year already from my zend fw 1 knowledge gathered years ago.
I have quite some good working conditions since january. last year was nice as well but the company went insolvent, and I prefered to switch.
they still are doing their thing with a new investor, but I didn't mind to have done the switch.
 
@DaveRandom btw, rpm sucks
I've been working on a deb packager these days, and it's all very nice -- ar and tar are relatively easy to work with
so I looked at the rpm format to see if I could do something similar
and ugh -- cpio.
 
every start is hard. especially if you need to learn something new if you've got something working.
 
11:08 PM
best site ever codecrap.com
 
@PeeHaa I suppose I can find a space for you to come be my drinking partner in person instead on just over the internet as usual. Oh wait, no, I mean that other thing where you come to my my house and we get fucking hammered and this time we don't give @Joe a whole bunch of legal intoxicants that don't agree with him and he can stick to his hippy drugs
 
:D
 
@hakre it's not "hard", it's just stupid
 
???
 
But yeh, srsly you're as welcome as always to crash at mine at you want (or just crash somewhere in my city if your prefer) :-)
 
@hakre the format sucks
 
@FlorianMargaine nope, at least not entirely.
 
> <noscript><script type="text/javascript">alert("You do not have JavaScript enabled. Please enable JavaScript.</script></noscript>
 
lol ^
 
11:10 PM
@FlorianMargaine I wrote about 1/4 of an LZMA extractor once. I'll tell you this once, so you can't ever say I didn't tell you: don't do it.
 
@hakre the biggest issue with cpio is that there's no lib for it
@DaveRandom lol
 
open questiom: should I learn C coding practically?
 
@DaveRandom thankfully, rpm supports other compression algorithms
 
document.wrong = document.write;
 
@FlorianMargaine no lib as no assembly code or no lib as no header file?
 
11:12 PM
@hakre I'd say, go through learncthehardway at least
@hakre no php lib or no lisp lib
 
@FlorianMargaine wasn't that C++?
 
@DaveRandom <3
 
^ perhaps I make it. Updates pending.
(if you guys don't mind)
 
if (preg_match("/delete from|update|insert into|create|alter table|alter column|drop table|drop column|execute|shutdown(...)/i", $string)) {
        exit('Attack attempt detected!');
}
 
11:13 PM
@hakre it's good just to know really how much machines do for you
even if it's not assembly, it's pretty close
for example, we often take for granted adjusting arrays and the likes
but really, it's a lot of work
implementing a vector struct for the 1st time is enlightening
 
@hakre You should learn C so that you understand memory management and can write C if you need to. You should learn C++ so that you understand what a weird and yet strangely brilliant abstract of same it is. You should not write actual programs that you use in C(++)?. IMHO, YMMV. As someone who grasps at best the basics of both.
 
@hakre, sorry, still looking at this problem. Feel free to opt out at any time. :) I have a UserProvider which is creating a User. The UserProvider is aware of my db connection, which will be needed to load the BlogPosts. The User is not aware of my db connection (SRP).

Does this mean I should create the IteratorAggregate objects in the UserProvider?

$blogPostIterator = new BlogPostIterator($this->db);
$user = new User(..., ..., ..., $blogPostIterator);

In which case, isn't this Iterator basically a Provider for a single user?
 
@RonaldUlyssesSwanson sigh
 
What I love about C is that you actually compile the code. It's a bit cumbersome for little changes, but on the other hand little changes really count. With PHP it's more the day-to-day job and I don't think this is such a bad concept because you can share a lot of things with the interpreter.
 
@hakre addendum: As someone who grasps at best the basics of both
 
11:17 PM
this is the best so far:
entryName.length() > (relPath.length() + "/".length())
// as the length of "/" could possibly change
 
@peehaa Hi, I have a piece of code (gently provided by Jay) to search for the images in a directory and show them in a gallery, as described in the question http://stackoverflow.com/questions/31148453/image-gallery-with-php-password-protected-upload-some-issues/31195726#31195726 .
with the cose that Jay gived me the thumbnails doesn't appear in row of 5. He suggested me to ask you to find a solution. I can provide you the code!
 
@hakre I think this is a red herring, personally. Yes it's nice that you are dealing with things at a lower level, but at the end of the day the idea that the ASM that the compiler spits out is anything like what you wrote is just not the case
there's that heavily shared video of Uncle Bob talk about how it's "a more readable version of ASM" and in theory that's true, but these days when you throw your code into a compiler it's unlikely your micro optimisation made any difference unless you told the compiler to quit optimising
(btw over a pretty short period I've learned and grown to genuinely love C, but I'm ever aware that it's a bad idea for most tasks)
 
It's more than just that. It also perpetuates the problem the compiler is solving. the egg-and-hen problem perhaps.
as it's not a perfect solution, we see the leaking abstraction to the next level.
and then again from compiled to interpreted, again to the next level.
 
@Luigi You are trying to show 5 divs on a single row?
 
if (!$abstraction->isLeaky()) {
    throw new \WTFException('You seem to be dreaming', E_IMPOSSIBRU);
}
3
 
11:24 PM
I was recently reading an interensting book of Tom de Marco about planning software development (or managing, my english is not best; anyway). he tried to create a model. so this was about rules. but he made one exclusion: on assembly code.
 
@PeeHaa mm, no to show all the thumbnails ordered in rows of 5, as in the scheme in the question
 
@SilentEcho no. This is different. See the IteratorAggregate needs to have the UserProvider to create the Users when it's due to create the users.
 
float: left; box-sizing: border-box; padding: 20px 5px; width: 20%;
?
 
@hakre One User, many BlogPosts. So presumably the Iterator would create BlogPosts. Meaning it would need a BlogPostProvider?
 
@SilentEcho do not concentrate too much on creating objects. Creation of object normally solves on it's own. If not, delegate the creation of object to a dependency.
 
11:27 PM
Should the BlogPostProvider be created in the UserProvider or in some kind of ProviderProvider and injected into the UserProvider? ><
 
Just write the code you see fit. If it doesn't work, change it. It's really that simple.
 
OK :P I'll create it in the UserProvider
 
@hakre English not the problem there, problem is abstraction level is so high no-one even knows what they mean any more. But yeh, if you are writing ASM then maintainability and even design are no longer considerations, the only reason you would even start doing such a thing is because you are trying to optimise for a specific platform, in which case why are you bothering with the "rules" (platform agnostic, readable code) in the first place?
 
Probably overthinking this, more from a POV of trying to learn than for this specific project.
 
again, IMHO YMMV
 
11:29 PM
@Luigi Yes CSS
No idea what that table is in there
Tables are for tabular data
 
@DaveRandom Yes, AFAIK this made really sense to me. It was more as a hard limit: If this is about ASM, don't even try to manage the project because the programmer already know why he/she/it is doing it that way.
(or quickly die afterwards ^^)
 
1 message moved to bin
@Luigi pastebin.com/9x1tZd1y <-- please use pastebin for large code samples :-)
(or gist or whatever, just not dumping walls of text in main room)
 
I'm sorry
 
No problem :-)
 
@SilentEcho what will be the final purpose of such objects, displaying data?
 
11:32 PM
@PeeHaa I'm not really able to modify that code, I can modify the css of the .thumbnail, is it what you were saying?
 
@RonaldUlyssesSwanson The BlogPost object is the Model of a single row of blog_posts table. Essentially it will provide data about a single blog post.
@RonaldUlyssesSwanson Actual rendering of data is handled by templating.
 
@Luigi if you're new you should read room-11.github.io - these aren't official rules, more just courtesy guidelines. Sometimes people can be a bit abrasive but don't take it to heart, the etiquette only exists to ensure that we can all get the most out of the chat service, and if you're new then we don't shout at you for breaking the rules you don't know yet
/cc @everyone ^
@hakre <insert "mount stupid" graph here>
 
@SilentEcho probably, yes. I assume that Users and Posts come from the same kind of storage?
 
And if you are not new then we will shout at you and call you names
 
@PeeHaa is a berk.
 
11:35 PM
@PeeHaa Flex all the things!
 
He is a premium bell-end
 
can't follow any longer. but yeah, yes.
 
WTF is a berk!? /me opens google and prepares himself for what is to come
 
It's an extremely mild and niche form of abuse
 
lol
berk
bəːk/Verzenden
nounBRITISHinformal
a stupid person.
 
11:36 PM
afaik it's actually rhyming slang for c**t but it's pretty abstract
 
TIL
@kelunik As in flex box thingy?
 
I believe it derives from "berkshire hunt" which rhymes with that but I'm not sure if that's actually true
 
@SilentEcho show some code?
 
@PeeHaa Jup.
 
According to the master of flexbox disaster @RonaldUlyssesSwanson support sucks
:(
 
11:39 PM
> anusridder means 'knight of the male rectum'. Used to insult homosexuals. Interchangeable with Anaalridder, depending on region. src
no it doesn't
 
heheheheheh :p
 
> Chips is a softer version of shit, mostly introduced to avoid using 'shit' to prevent children from using it, an English loan word.
Really?
 
@PeeHaa not for long, hopefully
 
> Nicht (literally: "female cousin" or "niece") can be used to mean "queer" (noun) or "fairy", in reference to a homosexual man.
 
@DaveRandom Some people do that, but if I ever hear you say that I would punch you in the punch and call you a fucking koekwaus
 
11:41 PM
@PeeHaa Last two versions of all major browsers support it: caniuse.com/#search=flex
 
srsly? isn't that just German for negation? Is Dutch so different?
 
s/punch/face
@DaveRandom In that regards it is
 
@RonaldUlyssesSwanson Relevant code is in /src
 
It's like nein and nine :P
What I never understood was "ta" though
 
11:43 PM
That's weird, they're basically the same language in my eyes, there's like a 300 year divergence or something but that's kinda bollocks
 
You people stole some scandinavian word(s?) and assraped it
 
At the end of the day English is basically just array_merge($norsk, $latin)
 
lol funny cause true
 
@PeeHaa I'm sorry to bother you, can you help me?
 
@DaveRandom I'd say it's not always insulting, however most males are homophobic (straight), so it perhaps most often is used in connotation.
 
11:45 PM
@DaveRandom It's the little differences that make it annoying to switch between zerman and dutch. I have said some stupid things to germans because of that
 
@PeeHaa You guys just took German (which is derive from low/common norsk dialects) and duplicated vowels in random places AFAICT
 
@Luigi Well if you cannot change the code to make it sane you are going to have a hard time either way me thinks
 
@hakre *most*?
 
@DaveRandom something like a large share?
 
@DaveRandom Yeah sounds about right :P
 
11:47 PM
@hakre Really? That's not how I think of ze Germans based on the ("totally impartial") media
@PeeHaa Also you drink a whole bunch so you shlur your S sounds
 
@DaveRandom what? I didn't say about germans, but yes, I can't see how that should be different 4 zee grmns.
 
@PeeHaa ok, sorry for the bother, i'm asking someone else becouse of I'm not able to doby myself!
 
the norsks went on the other island as well... .
 
@hakre For ze Dutch as well (which, btw, seems to be basically the same word as Deutsch?)
 
@DaveRandom possible maybe, probably done.
to quote bjork (IIRC)
 
11:50 PM
Well yeh, USA seems to have turned randomly into a liberal country where gay marriage is legal everywhere and weed is legal in a lot of place so I guess there's hope for humanity yet.
Either that or I'm still in some really elaborate dream
 
I beg your pardon. a country that doens't allow drugs nor free sex is on the downturn.
 
@bwoebi we could always have an exception, it is a possibility
 
(the connotations is: that can't afford to .... is ...)
 
@Andrea why can't I read your tweets anymore? Did you remove me (intentionally?)?
 
@ircmaxell ...isn't that just Lisp?
 
11:52 PM
@Andrea In my opinion, division by zero should always be an exception. If your app actually wants Inf or NaN, you can check for zero and explicitly set the variable to one of them.
 
@Trowski you could
 
@hakre ..and the USA, the last place on earth I would have expected (excluding mid east countries) is on the upturn. It's kinda surreal.
Seems like it happened overnight while no-one was watching, too busy watching other shit. It may not last but it's nice to see not everyone is a complete arse.
 
@DaveRandom It's actually amazing how much has changed in the last few years here. I think it just took the right wrong people finally being pushed out of power.
 
@Trowski What really interests me is the way that despite the fact you (as a country) basically a collection of small, disorganised groups a whole bunch of people seem to have managed to change the rules that are applied with no real enforcement and yet still people seem to be respecting them (ish)
I mean I wouldn't wan't to walk down a small-town Texas street holding hands with a guy or whatever, but it's nice to know that the law would be on my side if I did
 
@DaveRandom That's how we both communicate with each other right? :D
 
11:59 PM
@PeeHaa I have on idea what youer' talking about faceplant
 

« first day (1721 days earlier)      last day (3221 days later) »