« first day (1277 days earlier)      last day (3674 days later) » 

11:00 AM
You've just moved the problem to the routing layer...
 
they might be hosted in different places
 
Physically, possibly, but in order to do what you suggest you must have some single layer 3 entry point
 
must I?
 
Even complicated stuff like multi-entry points with MPLS only partially solves the issue, because the internet routers will always route a specific layer 3 address via a specific route
 
now I see your point
well it's still better than nothing
we're not amazon
 
11:03 AM
i have one question how do i insert a custom static row in yii cgridview ?
 
or google
 
is reverse proxy not supposed to make things like this easier
 
It's not that it's impossible in theory, it's just that it's impractical in practice unless you are Google
(or someone else with $∞)
 
@iroegbu how many reverse proxies would you have?
 
hello zerkms
can you please help me about yii Cgridview ?
 
11:05 AM
@bwoebi where minus is defined? :p stuck with search keyword
 
@GauravParashar hello. But I don't work with yii
(thanks gosh)
 
thanks
but can you tell me how i get answer about my queries i am new to stack
 
@AlmaDo sub_function?
 
@zerkms maybe two, I'm not experienced :s
 
@AlmaDo as it the behaviour of the operator?
 
11:07 AM
@DaveRandom operator. I want to modify it
 
@iroegbu so you have 2. are they both available?
btw, I REALLY liked this video about HA: infoq.com/presentations/braintree-availability
 
@DaveRandom thanks. @Leri how do you know that it's "sub_function()" ? (not obvious for me..)
 
@DaveRandom @DaveRandom I managed to allow Apache under Windows Firewall settings, following answer here: stackoverflow.com/a/14432841/386579 and it worked :)
 
@shasi Winner :-)
 
11:10 AM
@AlmaDo I was playing around with php-src. So I know few things about impl. I really want to finish my URL class, but could not find time. sigh
 
@DaveRandom btw, what would you consider to be the lowest acceptable TTL for A record?
 
@Leri oh, ok. Sad that it's not sort of technique, but I got the idea
 
I cannot think of something less than 10M
 
what are the things that every programmer should know?
 
@Bilal The name of fiance's mother
 
11:13 AM
@AlmaDo BTW, if it's not mega-secret, what are you trying to do?
 
@zerkms Well, like I say, Google have theirs set at 9 secs and I would guess that they have tested that to death, but then they do run their own DNS server stack.
 
9seconds?!?!?!?
 
@Leri I want $array1 - $array2 result in array_diff()
 
@zerkms looks like you're having serious family issues
 
@Bilal looks like your guessing module needs replacement
 
11:14 AM
@AlmaDo I am sure $arr1 + $arr2 === array_merge($arr1, $arr2). Are you sure it's not valid on the contrary?
 
@shasi hi
 
@zerkms you're right.
 
@Leri ? "+" is defined for arrays while "-" isn't
 
@zerkms Interestingly it's current 222 seconds. I wonder if they fluctuate it based on network load or something?
 
@DaveRandom they are 20 seconds for me
 
11:15 AM
so I want to define. It's quite easy, I think - so if I'll not be able to do it, then I should continue reading of lxr
 
->  google.com
    internet address = 203.109.178.80
    ttl = 20 (20 secs)
 
@AlmaDo Oh, yes, just had a look + merges hashtables.
 
@zerkms 222 for me, there's obviously something complicated going on here. Possibly caching layers on the traversal path
 
yep
so 222 =~ 4 minutes
assuming we're at least 2.5x times less important than google - 10M is a good start
 
@AlmaDo Hmm, not sure about it. php_array_diff is defined in array.c which should not be included in zend_operators...
 
11:18 AM
@Leri I'll do it manually, then
 
@zerkms Basically set it as low as your name servers can cope with. I suppose there's an argument that the smaller your traffic, the lower you can afford to set it
 
it has sense (i.e. "-" for arrays ) - but little. So I'm not going to do RFC or something else. Just want to try
 
@DaveRandom it's not only servers. If clients will request it too often - for them it will look like performance issues
 
@AlmaDo Duplicating behavior.. Well, php does that in several places but inconsistency is a problem.
@AlmaDo Oh, then it's fine. :p
 
in fact, I can do evil things (i.e. include array.c or whatever) - since it's just to try
 
11:21 AM
@zerkms Maybe. DNS resolutions should be <1ms from start to finish though, it's just a pair of UDP packets, it's not got all the TCP cruft to deal with
 
@AlmaDo Make sure, you don't mess your environment before you mess up with php-src
 
@DaveRandom btw, recently I've found that UDPs also have sessions and the connections for them are maintained by a network hardware
 
I messed up mine so that I use Windows when I want to run something on php. :D
 
@Leri ?
 
@DaveRandom it caused some funny bugs with my python daemon and statsd
 
11:22 AM
what could be wrong with the env.?
 
@zerkms That's in the nature of SPI (which I guess it what was the root cause of that)
 
@AlmaDo I ended up with my custom build of php and can't use stable binaries. /because me is lazy a** to fix pathes
 
@Leri oh.. I've not done such things for a years. I doubt I'll be able to build it :\
 
Man I get so much junk to my @php.net address
 
I'm looking to this and thinking "Hell! It's a mess!". But if I'll not start, then it's senseless. You can't pass a road without taking a first step
So I've forked it for now :p
 
11:25 AM
@DaveRandom I get so much junk to my @<insert providers I use here>.<com|net> :)
@AlmaDo It looks more scary than it is in fact (unless you step in the dark).
 
@Leri inorite. But the @php.net junk is definitely the weirdest junk I get
 
@Leri for now I have too much free time (and I've done with things that I was doing before). So I hope I'll have some progress
 
If anyone is interested in spending $$$ on a luxury mansion in Malaysia I haz teh contactz, btw
 
@DaveRandom Great, all I need now is teh moneyz :D
 
@AlmaDo And thanks for reminding that I have real work to do. :D
Later.
 
11:30 AM
Has someone got a 'basic oop' example? on a git repo or somethign ( I feel like I don't have yet the full understanding of static var/ static functions/ constants /.. etc. And I would like to have an example to create my own exercise that it makes sense.
 
@TOOTSKI Don't lie, I know you're sitting on a huge pile of money while writing this, looking at your diamond-encrusted 100" monitor and gently caressing your solid gold AK-47 as you smoke your cuban cigars hand rolled in $100 bills.
 
Oh, you got me!
 
@JoeWatkins bug in pthreads found… will PR shortly…
 
Actually solid gold AK would burst into pieces if shot from.
@bwoebi Tell us so we can PR before you.
 
@TOOTSKI I love how you say that as if you've tried it
 
11:34 AM
@TOOTSKI no :-P
 
@bwoebi what IDE are you using for C apps?
 
@AlmaDo vim
 
@Gordon well.. expected answer
 
@AlmaDo but i dont do C apps
 
( PHPStorm users is it normal im not able to change the value of the font-size? )
 
11:36 AM
@Duikboot no
 
I am not able to change the value.
 
hit ctrl-shift-a and type in font size
 
It's in my preferences
I like a nice size 11
 
Doing that changes the size of the IDE font size.
 
@DaveRandom Not really, it's hard to stay sane when in news, you see this on daily basis, and it's like that for 20 years.
I "studied" gold watches, that's when I saw that ^^
 
11:38 AM
@AlmaDo nano (or well if I really need an IDE: XCode... but never for php things)
 
@TOOTSKI The new doesn't get any better when you come here you know, the only difference is that the pictures are of places that are further away
 
@DaveRandom Haha, yeah, probably. It's best to shut off any "news". Who cares.
 
@TOOTSKI Well I do care, I'm just powerless to do anything about it (as, indeed, are you)
 
Argh font-size not in love with you
 
@DaveRandom Yes, but when you're constantly thinking about it and how you can't do anything 'bout it, you get depressed. I'm just looking on the bright side :) (across the border, lol)
 
11:44 AM
@bwoebi How is pthread? Haven't been able to try it out myself yet.
 
@Machiel It's useful :-) and the API is usable :-)
 
@bwoebi Does PHP wait for other threads to be finished before outputting data?
 
When is the predicted date for php @stable?
 
I am not able to change the value: i.imgur.com/WgNlXaJ.png
 
@Duikboot You have to enable font override somewhere, something like that.
 
11:47 AM
@Machiel no. Just like in normal threads it might happen that multiple threads write simultaneously to stdout. It's your task to make that synchronized.
 
I found it I have to save first the scheme
and then I can edit it.
 
@Duikboot: Check Appearance and tick Override default fonts
@bwoebi Ofcourse, but if I'd be processing a large batch of images in a seperate thread and output the message that the images are currently processed the user won't be waiting till the image thread is finished before that is displayed, right?
 
Ok works thanks.
 
@bwoebi why this is done here:
if ((result == op1) && (result == op2)) {
					/* $a += $a */
					return SUCCESS;
				}
unclear how can we compare result with anything
 
result == op1 when using $a += $b. and also result == op2 when $b == $a.
 
11:50 AM
Yes, but - why are we comparing with result? (i.e. it's not assigned. Or I've missed the entire logic?)
 
@Machiel rephrase please? who's the user?
@TOOTSKI you're just too slow.
 
I wanted to check source ^^
Haven't had checkout of php-src on 'puter.
 
goto lxr.
 
Yeah, fuck, I'm "slow" too.
 
^.^
 
11:53 AM
I've gone berserk cleaning fabpot's trashy php-cs-fixer ^^
 
@bwoebi Sorry, what I meant was: what if only one thread (#1) outputs to stdout - and another (#2) is still processing a task (for ex. resizing a batch of images) - will the user still receive the output or will the webpage continue to load till thread #2 is finished.
@bwoebi I know this isn't the way to go anyway, I'd solve this with a message queue, but I am curious.
 
the former. If the browser displays it is another thing.
 
@bwoebi The user in this case would be someone using a web application built by for example me.
 
but it will still load as long as you don't a) close the connection or b) all the threads are finished…
 
Exactly, thought so much.
 
11:56 AM
stopthecyborgs.org -- I am mildly appalled by this.
 
Alright, thanks.
 
Hello, has anyone here tried out generatecms.com ?
 
@bwoebi done
 
@JoeWatkins thank you
./src/thread.h:154:14: warning: equality comparison with extraneous parentheses [-Wparentheses-equality]
                if ((first == second))
                     ~~~~~~^~~~~~~~~
./src/thread.h:154:14: note: remove extraneous parentheses around the comparison to silence this warning
                if ((first == second))
                    ~      ^        ~
./src/thread.h:154:14: note: use '=' to turn this equality comparison into an assignment
                if ((first == second))
                           ^~
Btw. if you want, remove that warning @JoeWatkins (not worth a PR)
 
@DanLugg Dafuq, I don't even
 
12:02 PM
@TOOTSKI Fucking earthy hipsters.
 
is that the only warning ?
 
@JoeWatkins no… there are three more:
/var/root/pthreads/src/prepare.c:566:59: warning: passing 'int *' to parameter of type 'uint *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign]
                         if (zend_hash_get_current_key_ex(tables[0], &symname, &symlen, &symidx, 0, &position) == HASH_KEY_IS_STRING) {
                                                                               ^~~~~~~
/usr/include/php/Zend/zend_hash.h:179:88: note: passing argument to parameter 'str_length' here
 
@TOOTSKI If I owned a business, I'd put up a sign: "No anti-glasser's, or other technophobic faggotry allowed"
 
Hmm
Imagick's getimageresolution() returns an array with an X and a Y. So theoretically, the following should work:
list($x, $y) = $image->getimageresolution();
Undefined offset: 1 ... and ... Undefined offset: 0. Am I making a noob mistake?
 
@DanLugg I just don't like any "banning". Once they've asked me to leave from a restaurant garden (outside) because I took the doge with me (it's a small terrier). I wanted to stab the guy in the face. OK, you don't have to like dogs, but he's more silent than annoying kids (parents fault) and cleaner than some people, so, if he's not causing any trouble, wtf. (there wasn't any sign by the way)
@Jimbo Can you var_dump function return?
 
12:09 PM
@TOOTSKI Nah, I found this at the bottom of the manual:
list() only works on numerical arrays and assumes the numerical indices start at 0.
 
Yeah, exactly.
 
var_dump(array_values($image->getimageresolution()));
 
list($x, $y) = array_values($image->getimageresolution());
 
Yep, just done that :D
Ty
E_RTFM
 
Or test it when in doubt :)
Or if manual is wrong, fix it :)
 
12:13 PM
is there a more quck way to do this
$ordering = isset($_GET['sort_order']) && in_array($_GET['sort_order'], array('asc', 'desc')) ? $_GET['sort_order'] : null;
 
What do you guys think we ban print_r from manual examples? @salathe @bwoebi @NikiC @DaveRandom @JoeWatkins @Gordon @PeeHee
@Bilal There's certainly less dumber way.
 
what's wong with print_r ?
 
@TOOTSKI He's called @PeeHaa
 
Yeh @PeeHee, what do you think?
 
@TOOTSKI you want var_dumb?
 
12:15 PM
:)
 
yeah @PeeHee, I too would like to know your opinion ?
 
It's OUR joke.
He called me @webfarto and I had to change my name.
 
Well, then call him @PaaHaa
 
He won't get ping @bwoobi
 
@TOOTSKI this also didn't ping me.
 
12:16 PM
Yeah, has to be more than 2 or 3 letters, not sure.
 
In any case @webfarto I don't really get what you are suggesting we ban?
(or why?)
 
concentrate ... so what's wrong with print_r ?
 
I'm not sure @JokeWatkins
 
Actually I never use print_r when debugging, only var_dump…
 
What's wrong with var_dump? :) It doesn't show types.
 
12:17 PM
+1
 
php programmers aren't meant to have to care about those ...
 
@TOOTSKI Yeh but most of the time in manual examples where print_r would be used the types aren't relevant
 
...
OK, I just thought it would be more useful.
 
If you are going to use print_r in an example it's because you are showing the structure of a vector, usually, in which case the types of the members aren't generally relevant, usually it's just where they are and/or which ones are present.
 
this idea is baffling ... stop calling var_dump debugging ... if you were sitting in class going through your code adding var_dump($all_the_things) every few lines and one of tutors looked over your shoulder, you couldn't say "I'm debugging", that's not debugging ...
 
12:19 PM
@JoeWatkins so, we should blindly cast between strings and floats?
 
Yeah, it's not important, because: github.com/salathe/phpdoc-en/commit/…
Would work.
:P
 
@bwoebi php programmers aren't meant to cast ... I'm just saying that print_r makes sense if you consider that type doesn't mean anything except to ten people in this room
 
I certainly didn't knew that.
 
@JoeWatkins I'm talking about implicit float to string casts when concatenating strings and numbers
 
That's why we're 1337 and they're not :P
 
12:21 PM
@TOOTSKI i was wondering if there is a built-in php function that does the same thing, like $value = array_get($_GET, 'sort_order', array( 'asc', 'desc' )) ); // null if false
 
@bwoebi we do cast between types for those things, that's sort of what php is for ... you sort of use php if you don't have to care about types ...
 
@TOOTSKI How is that relevant, sorry?
 
@Bilal Probably not, but you can always write your own function.
 
Does anyone ever commit their .idea/ folder (if you're using phpstorm) so others have the same settings etc? @DaveRandom?
 
@Jimbo I never do.
 
12:23 PM
@DaveRandom Relevant to, "shouldn't care about types", just because it works doesn't mean it's proper thing to do.
WHATEVER DUDE.
 
@Bilal Which does what sorry? Get the value only if it's in your list of allowed values?
 
I used to commit eclipse settings for that reason, to setup validators and what not ...
 
@JoeWatkins we care much about types when we need strict comparisons just because things might return 0 and false…
 
@Jimbo ignore it...
 
@TOOTSKI Well, yeh, but that's just a typo
 
12:25 PM
function array_get_if(&$array, $key, array $values = array())
{
if (isset($array[$key]) && in_array($array[$key], $values)) {
return $array[$key];
}

return null;
}
 
@DaveRandom That didn't get noticed so far because it worked, yeah... I'm not making a point here, just asking about opinion.
 
@bwoebi yes, we care, because we know about strict comparisons, assume when I say "php programmer" I mean the kind of person that has never even visited stack-overflow, and thinks the web is something installed on their web host - the vast majority of programmers ...
 
well, looking to array_diff() implementation makes me sad :D if duplicate all that code it will be messy
 
@Bilal There's nothing built-in to do that, no. If your input data was XML you could inherit defaults from the schema but that's a lot of boilerplate as well...
 
@JoeWatkins well, even they already fell in that pitfall I think…
 
12:27 PM
@JoeWatkins When we all know that the web is really that thing in the top corner of the room with a spider sitting in it.
 
prolly ... I'm only defending the idea of using print_r in some manual examples because it seems appropriate that we shouldn't have to care about types ....
 
is it really bad to include arrays file to zend operators file?
 
@DaveRandom obviously ... those in the know, know that ...
@AlmaDo cant make sense of that ?
 
@TOOTSKI Oh right. Well I would say it's case-by-case - sometimes (generally when demonstrating that you may get a different result because of strict/loose comparisons) var_dump would be more appropriate. But if you are just demonstrating that an array has some members in it or whatever, then print_r is probably better precisely because it has less information in it, and therefore has less irrelevant information in it
 
@JoeWatkins I want to do: $array1 - $array2 result in array_diff($array1, $array2). But to make it work I should either copy (somehow) full implementation of array_diff to zend_operators (i.e. sub_function() in this case) - or use include for arrays ..
 
12:30 PM
@AlmaDo use include ...!?
 
@bwoebi Aren't arrays PHP (rather than Zend) though?
 
@bwoebi yes, I can. But is it ok to include arrays stuff to operators? (i.e. make them dependent)
 
@DaveRandom Sure, sure, thanks. I meant to say also, if it doesn't "hurt". But obviously it's sometimes better to use print_r, better to fix on the fly if there's a case where var_dump would be more apt.
 
@AlmaDo make it the other way round: add some array diff func in Zend and make it ZEND_API to use then in array.c
 
looking to what is array_diff() internally.. well. It's hard even to understand in full what's going on there :D
 
12:32 PM
@TOOTSKI Oh yeh totally, I'm not against using var_dump if there's a place where it's more relevant
 
All righty, Dave ol' sport.
 
Jolly good show old bean
rather
 
@bwoebi is that better?
 
Hi guys can we save a sql query in database for future use? is it good practice or bad practice
 
this is one really long monday
i hate mondays
 
12:34 PM
@AlmaDo I think so.
@tereško It's Tuesday.
 
@SivagopalManpragada Generally I would say bad. There may be valid use cases but they will be so few and far between that I doubt you have one.
 
@bwoebi that's why it's really long monday for him
 
@bwoebi You don't get it :D
 
ah, lol … got it...
 
yeah :D
 
12:37 PM
@DaveRandom thanks Dave
 
@bwoebi so I can potentially break array_diff with such move? :p
 
@SivagopalManpragada You might want to look at store procedures, although personally I would recommend avoiding them if at all possible as well
 
@AlmaDo you shouldn't…
 
^ I laugh at this by some reason.. :D
 
@DaveRandom is there any reason why its not good my senior programmer is doing that and i think that not the best way
 
12:40 PM
You should probably not use the term "Lightweight MVC engine". It's a meaningless term to begin with. MVC is a very specific architectural pattern - the term "MVC engine" has no meaning, that's like "Front Controller Engine" - it's meaningless to put "pattern name - engine". On top of it, your project does not even use MVC architecture to begin with... — Benjamin Gruenbaum 24 secs ago
lol @ side ads
 
12:50 PM
php is both awesome and the most convoluted language that I have ever been across...
Anyone shares the same opinion as me?
Woah! Ain't anybody here or what?
 
@SivagopalManpragada Well apart from anything else it's very inefficient, as you implicitly have at least two round trips to the database to (effectively) only execute one query
plus you are hiding your query logic in the database, so it's more difficult for programmers to read the code
@puZZlr E_INFLAMMATORY
 
You can gain security benefits from only using stored procedures though. Here is some info about the efficiency: stackoverflow.com/questions/59880/…
 
@SteveTauber Store procedures are a different issue though. Personally I tend to avoid them for the same "logic hiding" reasons, but what he's talking about is storing query strings in tables in the database, which is just insane
 
@DaveRandom , lol I literally searched for that function :P
 
@DaveRandom Oh yeah... that's a terrible idea
 
12:57 PM
@puZZlr naa, php is just kind of bad :D
 
Don't listen to him ^ he has no idea what he's talking about, he only hangs around in here to cause fights. Benjamin "Troublemaker" Gruenbaum is what we call him
8
 
I believe it
 
Never trust a man with an empty "about me" section, regardless of how much he seems to know.
:-P
 
@BenjaminGruenbaum says the javascript/node freak.
 
@bwoebi I'm not a JS/node freak :P
Although there is no doubt there are use cases where Node is probably the best choice and there are none such use cases for php.. except for maybe wordpress blogs :D
 
1:02 PM
@BenjaminGruenbaum Just tell me you love PHP. And I'll call you a liar.
 
@bwoebi the problem is that lxr doesn't know what's ZEND_API at least :p Neither do I
bah. I remember C a bit. But so much macro :\
 
@bwoebi I love php, so well thought out :P
 
@AlmaDo well, it does… look there oO
 
@AlmaDo well, actually - C and PHP are very similar.
 
@BenjaminGruenbaum when you'll try to extend something in PHP you'll realize how wrong is the statement that PHP is similar to C
:p
 
1:04 PM
@AlmaDo what do you mean?
 
hihihi
 
@BenjaminGruenbaum did you try to create some functionality for PHP?
 
@AlmaDo for php? As in extend the language itself?
 
yes
or change existing things
 
I've quoted quite a bit in php back in the day :P I admire the new features too.. I never tried to extend the language itself.
Although I did peek around the engine and didn't like what I saw :P
 
1:05 PM
if not - then I can't explain. You should just try
 
Really, why?
 
@bwoebi I looked. And that's irrelevant. I can't say with what definition what does ZEND_API int function mean :p
@BenjaminGruenbaum if you know PHP, answer, what does this mean:
lists = (Bucket ***)safe_emalloc(arr_argc, sizeof(Bucket **), 0);
because I failed
 
bucket list?
 
@AlmaDo it's really just about marking functions as exportable so that they're seen by the shared libraries
 
what's *** ?
 
1:08 PM
@AlmaDo so compiled much macro wow
 
@AlmaDo triple indirection? pointer to a pointer to a pointer to bucket…
 
@AlmaDo pointer to pointer to pointer to bucket.
 
yeah. Why? (:
 
It allocates a pointer to pointer to Bucket and returns a reference to the newly allocated piece of memory.
 
To triple check.
 
1:09 PM
why triple indirection? um.. it's not quite good that I've said "I failed". I mean - I can understand symbols. But not the meaning of whole picture
 
I call it bad code (tm)
You should never have triple indirection :D
 
@AlmaDo in this case it just should be a two dimensional array of Bucket pointers
 
don't worry guys... It's SAFE
 
@TOOTSKI yeah, let's replace it with array_walk($array, function($val, $key) { echo "$key => $val", PHP_EOL;})
 
@Gordon Deal.
 
1:10 PM
@AlmaDo One thing that stuff like that could be useful for is a multidimensional "array", but it's pretty horrid
 
1 min ago, by bwoebi
@AlmaDo in this case it just should be a two dimensional array of Bucket pointers
 
Oh. Right. Well yes, that.
 
@DaveRandom well, I remember that "dimension" is done with a pointer (so array of pointers to another arrays, that's why "two dimensions"). But yes. Difficult to understand (:
 
Lol, C is so horrible :P
 
anyway, I still willing to continue ^_^
I'll look to array_diff() by a different angle now, when use it in my code :p
 
1:13 PM
Odd, somehow there are no triple indirections in v8 :D
 
I prefer C++ over C simply for templates.
 
I also found this:
out:
 
@BenjaminGruenbaum are you telling me they're using void * instead of correctly putting type ***?
 
I hope that's not a goto label
 
@AlmaDo nice goto label.
@AlmaDo yes, it is :-D
 
1:14 PM
Jesus ..
 
templates, destructors (and RAII in general), references, strong containers, but that's not really the argument here again @LeviMorrison :P
 
@AlmaDo PHP is written in C89. Of course it uses goto.
 
@bwoebi not a single void pointer :P
Oh wait, I found one.
 
@BenjaminGruenbaum so, how do you do HashTables/Lists etc. in C then?
 
Then again v8 generates assembly.
@bwoebi you don't, you write the engine in a slightly less horrible language :D
 
1:16 PM
@bwoebi I got nice punch (:
 
Although v8 uses raw pointers, I wouldn't if I were them.
 
@LeviMorrison It would too with C11…
lxr.php.net/xref/PHP_TRUNK/ext/standard/array.c#3480 … I thought we'd have some macro for that… :-/
@AlmaDo you really want to refactor it??? Well… come back in a few days.
 
I think he's talking about a particular function
Not the function implementation in general
 
@NikiC he's talking about array_diff.
which looks relatively complicated to rewrite…
 
1:24 PM
about as complicated as everything else :D
At least that one has comments and stuff
Normally the only comments you find are of the type int i; /* Counter */ ^^
 
:D
 
I'd prefer helphul comments :-D
 
this is getting ridiculous
 
Good morning
 
user895378
1:39 PM
morning
 
morning
 
user895378
lol:
 
user895378
40 mins ago, by DaveRandom
Don't listen to him ^ he has no idea what he's talking about, he only hangs around in here to cause fights. Benjamin "Troublemaker" Gruenbaum is what we call him
 
morning
 
@tereško what is?
@rdlowrey I starred it :D
 
user895378
1:40 PM
:)
 
@bwoebi yes. It least get rid of goto :D
 
monring
 
I thought such weird things can't be in PHP code :\
 
@AlmaDo Don't do that. Goto is nice if carefully used in C code...
 
but why don't do break ?
 
1:52 PM
@AlmaDo because we want to completely leave the loop?
in C, there's no break 2;
 
@bwoebi Goto is nice if carefully used in C, because C lacks the tools to do true polymorphic code, so you need hacks like goto and longjmp to compensate
4
 
@ircmaxell that's the long version, yeah.
 
@ircmaxell nice, mainly when just hitting keys randomly^^
 
And it sounds good!
 
1:58 PM
Now fixing a segfault @Joe has introduced into phpdbg recently… A great occasion to read his code more careful…
 

« first day (1277 days earlier)      last day (3674 days later) »