« first day (1885 days earlier)      last day (3049 days later) » 

4:02 PM
Is it a thing to add comments to columns and tables in MySQL?
For documentation, etc.
 
@Sean - I've never really known anybody that bothered looking at table/column comments
 
Yeah, I've only used comments for columns which aren't obvious what they're used for in the system at all, but I'm talking maybe once or twice every 25 tables or so
 
@MadaraUchiha ah, I understand why it doesn't look JSON to you, because I use JSONView extension on my browser. so, 1 or 2 ? :-)
 
@LeviMorrison nope, use to. Until room 11 made me think twice about it =oP
 
morning
 
4:10 PM
@Abe nope, not planning anything
 
Abe
@NikiC doing good so far :B do you have any hint about the strictness of the functions? like... idk... abs(INTMIN) should return an exception or behave like \abs() ? i mean while we are at it we could change something
*throw
 
@Abe It should throw
As strictly as possible, imho
 
Abe
good :D
 
(Also I'm not a fan of methods on integers... $i->abs() looks weird :D)
 
Abe
nuuuu it's beautiful :D
 
4:16 PM
mornings11 !!! you are the bests!
 
cool guys use php
 
In totally unrelated news I need to get a T-shirt that says "STOP COPYING FILES AROUND AT RANDOM, FUCKTARDS"
4
 
Abe
would buy one
 
@Dean no, cool guys don't look at explosions.
 
$i->abs() looks too java
 
Abe
4:23 PM
@NikiC would be useful to have methods like $int->pow() that check explictly that exponent is non negative
 
@Abe What's wrong with a negative exponent?
 
@MarkBaker java.lang.Math.abs is static so it would be Math::abs(42) in php
 
Abe
to have it return only ints @NikiC
 
2 pow 2.5 is positive, but would still return a float
 
@Abe But why would a power of an int return an int in PHP?
 
4:27 PM
And perfectly normal to give a float return for a pow function
If you onle want to return ints from pow(), you need a lot of validation, making it a rather useless function for a general purpose language
 
Abe
@MarkBaker it would just be $int->toFloat()->pow(-1)
@NikiC idk, i'm asking how you see it
 
int i = 42; System.out.println(i.abs()); doesnt work in java. integer cannot be dereferenced ideone.com/uWj2An
 
Never write one simple line of code when a more complex fluent chain will be more convoluted
 
is php a serious programming language or just something that works?
 
@whatever - 82% of websites globally think its pretty serious
 
4:36 PM
@Gordon or Math.abs(n)
 
Is javascript a toy language? or something more serious?
 
@RonniSkansing Math.abs(n) would work, hence chat.stackoverflow.com/transcript/message/27527702#27527702
 
I am not sure but the same goes for the javascript too @MarkBaker ...
 
@Gordon ah sorry, completely missed the point
 
np
 
4:39 PM
Javascript is not object oriented either.. its just object based @MarkBaker as far as I know
 
Define serious? Do you mean that it must require a PhD-level intelligence to write programs? Does the language need to be Turing compliant? Do you mean it must be closed-source and you need to pay for the privilege of using it? Do you mean that it should require a compiler?
@whatever - so your starting point is that only object-based languages are serious?
 
while coding in C# and C++ I think they were more versatile than php .. but I am yet discovering the object oriented aspect of php but its not matching C# I think
@MarkBaker
 
Seriously?
 
:D I think .. not sure..
 
What makes them more versatile?
 
4:43 PM
well, the more detailed the code is I think..
 
Detailed code? You mean if it takes 20 lines of C++ to do something that can be done in 1 line in PHP then it makes C++ more versatile?
 
C# is in some ways less retarded, I wouldn't say more versatile though
 
lambda expressions variable declaration... etc..
 
@DaveRandom it has var!
@whatever would you say Lisp is more or less versatile?
 
I am not introduced to lisp yet..
 
4:45 PM
You can declare variables in PHP as well you know (do you mean declare datatypes?), and PHP also has lambda functions
 
@FlorianMargaine I like var actually, one of the hundred bajillion things I hate about Java is likes like Foo myFoo = new Foo(); - it's a Foo, we get it.
 
yes datatypes
 
hmm... am I being dumb or is there no library to convert array => xml?
as in... no tested library?
 
So strict typing makes C++ more versatile, some would argue the reverse
 
4:48 PM
PHP is designed in a way that lets you be as strict as you want, but will not try to forcibly impose it on you.
 
@Sean Not always as strict as I want too, at least not without some ridiculous hoop-jumping and performance hits
 
oh darn, I wish we finished doctrine/oxm
 
@Sean this is exactly what I was noticing..
Now I think my question is resolved
 
oh... and so it begins.... hats all over again
 
Hello!!! @FélixGagnon-Grenier
 
4:52 PM
hello
 
@MarkBaker I am not arguing.. I was asking.. I am not that good I think
 
@Ocramius did not try it, but there seems to be tests and that seems to be a library github.com/Jeckerson/array2xml
 
@Ocramius why would you need a lib for that? It's about ten lines of code
 
@Gordon I don't want to invent my own DSL
@FélixGagnon-Grenier thanks, seems like it does what I need (so far)
 
@Ocramius why would you need a dsl for that? Oo
 
4:56 PM
But yeah, basically need to separate @content, @attribute, etc
@Gordon I just need to find an array syntax that supports everything without us going bananas :P
s/syntax/structure
anyway, this one seems to cut it
otherwise there's iwyg's
Hmm... I'll need to also code the opposite direction -.-
 
hi
 
i need answer for that
hi ronni
 
@maddog that looks like a js question. This is the php room.
Have you tried in the js room?
 
no
i will ask them
 
5:02 PM
oh, wait, @ThW surely has something in his magic toolbox
hmmmmnope
 
posted on December 14, 2015 by nlecointre

/* by Arnaud */

 
@Danack Yeah, with that PSR specifically I agree.
It wasn't so bad for other PSRs.
Honestly I think Internals needs to really crank up its voting pass mark.
Like, 75% or 80%.
PHP is at a stage in its lifetime that we should only add or change things we can really agree on.
I'm still shocked that the 50% + 1 tier even exists.
 
@ScottArciszewski If you want a specific patch reviewed, send a mail to the docs list (you can attach .txt files if you want to attach the patch to the mail).
 
@crypticツ I'm getting into it a bit to do some theme work for my wife and I really wanted to understand Wordpress rather than just do what she wanted. It's uh… worse than I thought :D
And for the record I had low, low expectations.
 
P.S. (to everyone) I'm travelling on business this week... don't expect pinging me here to work :)
 
5:14 PM
Happy traveling.
 
moin
 
ThW
@Ocramius yes
but xml encoded as json (with all information) is always ugly, hell of a lot easier to work with the DOM
I implemented some formats in FD: github.com/FluentDOM/FluentDOM/wiki/Serializers
 
5:33 PM
Can anyone look at this and tell me if you can figure it out stackoverflow.com/questions/34271469/…
 
@NewbieCoder I'm pretty sure multiple people here could figure it out, but no-one will want to spend the time doing so. this is one of those cases where you need to debug your own code, to either solve the problem yourself or be able to produce a short simple self-contained example, not just "here's my code, figure it out".
 
I'm going to play around with PHP-Parser and try pretty-printing it back to PHP source.
I understand there are several inherent downsides to this.
I don't intend for it to be a final product; just curious to see what it might be like.
 
Abe
ArithmeticError on division of PHP_INT_MIN by -1 is a bit dumb if you ask me
it's not an arithmetic error at all
 
Okay well in the code I have narrowed down the problem! In the public function login. The first if(!$username && !$password && $this->exists()) is passing false. I ran each statement separate and $this->exists is returning false.
 
Abe
@LeviMorrison you will love the amount of globals and references used
 
5:48 PM
@Abe The globals part really irks me, yes :D
 
Abe
and the naming. for every function you have both one that prints, and one that returns
because you know, writing echo is so hard
<?php the_what_the_fuck(); ?> // echo
<?php echo what_the_fuck(); ?> // return + echo
same thing, two functions
and the loops, you will love the loops!
i have seen code from the early phpnuke era that was better than wordpress
 
@Abe Yep.
 
Abe
total madness
 
I've written two little functions:
function query( $args, callable $if, callable $else ) {
        $query = new WP_Query( $args );

        $return = ( $query->have_posts() ) ? $if($query) : $else($query);

        wp_reset_postdata();

        return $return;
}
function loop( WP_Query $query, callable $each ) {
        while ( $query->have_posts() ) {
                $query->the_post();
                $each( $query );
        }
}
 
Abe
haha
 
5:54 PM
How should I add math to a string? $num = '001' + 1? /// $num = '002'
 
@Abe Maybe you know: is there a way to add a PHP version constraint to a theme or plugin?
It's erm, pretty important to me :D
 
Abe
no idea, my knowledge of wordpress is limited to customizing themes
 
I'm thinking I read the string, strip out leading zeros, do the adding, then add the missing zeros, but I don't know if that's the best way of doing it.
 
Abe
but i don't touch php, i just change the html
 
But yeah, WP has some really odd semantics.
Call wp_reset_postdata() after you are done with new WP_Query and before you do another WP_Query.
 
Abe
5:56 PM
has no semantics at all, i would say
why are you using wordpress btw? have you checked the new blogger? it's hella good
 
@Abe My wife uses WordPress.
 
Abe
your future ex wife you mean :D
 
No, not at all.
 
Abe
how that did even happen xD
i was joking :P
 
Sure, I understand you were joking. No harm done.
 
Abe
5:59 PM
we all criticize wordpress but i haven't seen a decent alternative yet
 
I read something saying WP wants to drop PHP and make the move to Javascript via Node.js
 
@Waxi That's the wordpress.com stuff.
Not "WordPress"
 
I would like to thanks everyone today. I am not much of a chatter but I learnt so much since I joined this community. Your experience and knowledge helped me achieve things I wouldn't be possible before. All of you, who ask and answers question, who chat and everything; you helped me, and will certainly continue to do so. I don't thanks people enough
 
@LeviMorrison Thanks for the clarification.
@happy Yeah I would echo that statement as well. This place is very helpful, especially the chatrooms. The JS one has been a godsend for me.
 
But yeah, @Abe, I need to write some helper functions to keep my sanity.
Which is why I need the version constraints :D
 
6:02 PM
@Waxi This resource is awesome and you people are awesome too, Sincerely
 
Abe
what do you want to do specifically? i can ask a couple of guys i know..
 
so ... today I am cooking venison
any tips?
 
how are you cooking it? steaks? ground?
 
@tereško how do you like your meat?
 
@happy mostly: tasty
 
6:04 PM
keep it medium rare
 
@tereško which coupe will it be?
 
@Machavity I am going with steak, chopped in medion sized pieces
@jbrahy it has to be cooked for two hours
I think the real options are stew and chili, and I am going for stew today
 
@tereško a bourgignon; throw cheap wine in the pot, let the meat in it for 4 hours and cook it slowly.
 
I have a string like 001. I have to increment it. Is the best way to read the string, strip out leading zeros, add my number, then add the zeros back? This seems hacky.
 
@tereško My dad really likes some sort of potato stew.
 
6:06 PM
this will be heaven... in your mouth
 
why do you say it has to be cooked for two hours? I've never done that. always enjoy a nice steak on the BBQ
 
ZVAL_STRING(&fn_name, "shell_exec");
name_ast = zend_ast_create_zval(&fn_name);
args_ast = zend_ast_create_list(1, ZEND_AST_ARG_LIST, expr_ast);
call_ast = zend_ast_create(ZEND_AST_CALL, name_ast, args_ast);
omg
 
Personally I like to casserole venison, a few nice seasonal root veg, and a rich red wine sauce
 
`foo` is literally translated into shell_exec('foo')
 
@jbrahy if you cook it slowly the meat stay good
 
6:07 PM
@happy I dont have cheap wine, kinda expensive wine and more expensive whiskey
 
So yeah, onions, carrots, the venison.
 
We got some ground venison once. My wife made it into an asian dish over rice and it was good. My kids didn't notice the difference
 
@Waxi - work with numbers (easier to increment) and add any formatting leading zeroes only at point of display
 
@tereško wine and meat have something special put together
red wine per say
 
@LeviMorrison also shrooms
 
6:08 PM
@Andrea What did you expect?
 
mushroom for sure,
 
Levi - parsnip, turnip, swede
 
@NikiC I guess I expected it to directly emit a function call
 
Probably a clove or two of garlic as well
 
for the rest I would be more fluent in french
 
6:09 PM
@Andrea Function calls are finicky business, better not deal with it. Though based on that case sample, I suspect that we're incorrectly emitting a shell_exec() rather than \shell_exec()
 
@MarkBaker It's stored in the database as a string. Maybe convert to a number, but I don't want to lose my leading zeros.
 
@Danack thanks for the phped idea but it downloads just too much black box stuff for my liking. My minimal requirement is to have a relatively simple vagrantfile for ubuntu x64 trusty that allows me to run a php project driving selenium. Anyone got any starts?
 
@Waxi as a string your zeros will be fine
 
@NikiC we might need to set a fully-qualified flag, is that how it works?
 
@NikiC o.O That would be a fun bug.
 
6:10 PM
@Andrea yes
 
@LeviMorrison omg I'm gonna 3v4l this
 
I don't know if I could write a query in SQL that could take 1 column field and increment, which is why I'm trying to pull this value out by itself, increment outside the db, the send a query with the new value.
 
That way my fellow devs will like it more, as it will have less moving parts.
 
Alas, it doesn't work :'( @NikiC @LeviMorrison
 
@Waxi I am curious, I might have miss something but what is your sql query at the time and the result you want?
 
6:12 PM
@Andrea Ah yeah, FQ is our default to correctly handle const eval
 
I don't think what I'm trying to do is very sophisticated and this may be an XY problem. I'm doing this before I do my real query which will have the number incremented, based on the latest record.
 
@Waxi LIMIT 1 wouldn't do the trick?
 
I have a record in the table with 001 in col A. Before I enter a new record for the same user, it needs to be 002 in Col A, and increasing everytime I insert a record.
I was going to read the latest record, descending, limit by 1, which would give me the last number used, increment, then use that in my insert query.
 
@Waxi why are 00 important? is it part of the logic?
 
That's just how it's stored in the database...couldn't tell ya.
 
6:18 PM
@Waxi let's say record 6 is removed, will the next record be 7, or 6?
 
Records get removed all at once, so there wouldn't be any skipping.
 
@Waxi Ok but the numbering, is it just like where we are or is it a id with auto_increment ?
 
That's the problem, the column is acting as an auto_increment, but it's actually not an auto_increment...it's a manual thing, which is stupid; however, I'm going to double check to make sure this is true...thanks for the reminder.
 
In other word is it the position in a array of result or a unique id?
 
Ok yeah, it's not a true auto_increment, so I'm manually doing i t.
It's the unique ID.
 
6:21 PM
@Waxi then result 1 would be $array[0] which mean by modifying your query just a little bit you could exactly what you want
by creating an array of array instead of doing a if statement
 
Hmm, I don't think I understand what you're suggesting.
 
@Waxi your snippet of code suggest you are going trough the whole result set to find out if a particular value is the first of the array. Am I correct?
 
The result set will only be 1 record because I limited by 'top 1'. If there is no record, then it returns nothing and I know my count is 001, otherwise whatever it returns, I need to add 1 to it for the record that's about to be entered.
I'll rephrase my problem. I need to insert a record into the database, but I need a unique ID, depending on what the latest ID that was used. This unique ID is actually a string such as 001. My first thought was to pull the latest record out, and do some string magic to increment this number to be used in my insert query, but maybe the query itself can be written in a way to increment automatically?
 
btw, should I use beer or whiskey for de-glazing the pot?
 
Depending on how peaty is the whisky, definitely the whisky
 
6:27 PM
@Waxi I think the answer is yes you can BUT it depend if the numbering is just numbering or if it act as database uniqueid
 
In the database, it's a char datatype which is acting as a unique id. It doesn't make any sense, but that's just how it works.
So my quick fix is knowing how to add 1 to something like 001, when 001 is a string? End result would be 002.
 
Any1 knows how this VK Api works? I have this code here and it's not searching for a country. pastebin.com/VVmzeheg
 
then it is my opinion that increment a value on your side is not possible
 
@Waxi wouldn't that just be something like

$new_id = sprintf("%03d",intval($old_id) + 1);
 
if it is not a unique id
 
6:33 PM
@jbrahy Thank you, this works perfectly and I can make this work.
@happy They will be unique, cause I'm inserting by user, who's records need to be unique, but @jbrahy gave me the string magic I was looking for.
 
@FélixGagnon-Grenier 15 year old single-malt
 
Sorry for spamming this chatbox, but thank you everyone for your help...I knew it was something trivial.
 
Unless you had really smokey dark beer, I'd still go for the whisky @tereško
 
php.net/manual/en/class.iteratoraggregate.php on this page in example #1 there is ArrayIterator() constructor can you please let me know where is that coming from?
 
@whatever ArrayIterator is built in to PHP.
 
6:41 PM
okay
my bad
 
@Nikos I don't have any great resources. You could look at the simple setup I have for dev which uses relatively simple bash scripts for deploying everything because Chef+Puppet are overkill for my needs. It's Centos based, so a lot of stuff would need changing, but it's relatively sane.
 
6:58 PM
Can anyone help me with why my data is not being pulled through in this

<?php
require_once 'core/init.php';

if(!$username = Input::get('user')) {
Redirect::to('index.php');
} else {
$user = new User($username);
if($user->exists()) {
Redirect::to(404);
} else {
$data = $user->data();
echo $data;
}
?>

<h3><?php echo escape($data->username); ?></h3>
<p> Full name: <?php echo escape($data->name); ?></p>
<?php
}
I am being redirected to a custom 404 message i made
or i get this actually Trying to get property of non-object in
 
7:15 PM
too many static functions
have you tried using OOP instead?
 
How can I remove those keys ? [0] , [1] 3v4l.org/AeFFr
 
why do you think that need to remove them?
 
you can use unset()
 
Because people recommended me to remove them
 
no, they didnt
var_dump() is not the same as echo json_encode()
 
7:22 PM
oh very good, @tereško you are here ..! please take a look at this. I'm really confused ..
@tereško I used print_r(), not var_dump();
 
Abe
/usr -> unix system resources, not "user". apparently i'm not the only that sucks with naming
 
can you make am 3v4l.org sample which illustrates the unexpected behavior?
@Abe also known as "userland"
OS consists of kernel, low-level tools, userland applications
 
Abe
not joking? isn't that like (excuse the dumb comparison) the equivalent of c:\windows\system ?
oh
so it's like programs
 
@tereško actually I don't get your point, But I'm trying to generate a good data-structure for my API ...! well, which one is your suggest?
 
3 mins ago, by tereško
can you make am http://3v4l.org/ sample which illustrates the unexpected behavior?
 
7:28 PM
what is "unexpected behavior" ?
2
 
Abe
lol this will take ages. how do i move to another line of a long command that i just pasted in the shell? (every line ends with \)
 
7:47 PM
$ sapi/cli/php -r '$arr = [1, 2, 3]; function foobar($bar) { $bar = 2; } foobar(&$arr); var_dump($arr);'
& argument!

Fatal error: Parameter 1 of foobar() is not by-reference in Command line code on line 1
:D
 
can anybody explain me the late static binding.. the php website explaination is not getting my head..
 
@whatever self is the class it is defined in. static is the actual class the method is being called in
 
? @Andrea
 
@whatever static doesn't ignore inheritance. if B extends A and a method in A uses static, if you call that method on B, static there will be B
 
Abe
why people go straight learning static stuff, the last thing you need in any programming language
 
7:50 PM
@whatever You should avoid it whenever possible. Good enough.
 
@Andrea don't you have to have the pass by reference in the function declaration?
 
@jbrahy yes
Since PHP 7.0 anyway
 
ok, so you were triggering an error and showing something that probably went right over my head
 
I'm adding a feature
 
I need to know what it is .. i can not understand what is explained in here..php.net/manual/en/language.oop5.late-static-bindings.php
@Levi @Andrea
 
Abe
7:53 PM
> You should not run buildconf in a release package.
what's your problem php!
 
@Abe it's already built
it's pointless to run ./buildconf in a release package
 
Abe
i am pointless
oh turns out i didn't have make
 
moin
 
@Andrea should be Deprecated: By-reference parameter 1 of foobar() is not explicitly passed by reference
 
@whatever Can you explain what you don't understand a bit more specifically?
 
7:56 PM
@bwoebi deprecated is the wrong error level I think
 
Abe
hey joe !
 
@Andrea it's the right one… we deprecate it first, Fatal in += 3 years or so
 
nothing at all @LeviMorrison I have no clue what they are talking about??
 
@bwoebi I'm adding back syntax that was removed
it should just be an error in this case
 
yeah, but we can't immediately error from the version on the syntax is added
whether it existed in far past is irrelevant
look forward, not backward
 
7:59 PM
you might be misunderstanding the error message
This is the error message you get if you say an argument is by-reference yet the parameter is not
 
oh
I see now
sorry
 
don't worry ^^
 
But I'm still sorry for having confused you, even if I don't worry ;-)
 
Hi all
could you help me
 
Abe
@Andrea what about .7configure?
 
8:04 PM
I am looking for starting an open source project
 
Abe
yeah, that :B
 
@Abe ./buildconf builds ./configure
 
Abe
bash: ./configure: No such file or directory
 
but what are ideas for this ?
 
@Abe o.O
 
8:05 PM
I need it to be website
any one can help ?
 
Abe
i suck with linux @Andrea i did git clone php then git checkout php-7.0.0
then moved to php-src. what should i do next? :B
 
./buildconf ?
 
The error, "No such file or directory" means that the file ./configure isn't in your current directory. did you try changing to php-src with the command "cd php-src"
 
Abe
You should not run buildconf in release package.
@jbrahy current directory is php-src, yes
 
./buildconf --force?
 
Abe
8:07 PM
but shouldn't it be configured already?
 
the configure script configures it specifically to your environment allowing the rest of the code to be portable between other systems
 
No. We don't store built versions of configure in git
 
Abe
ok, so i did nothing wrong
(apart getting born i mean)
 
I suppose, but I don't know why you'd get php-7.0.0 from git
 
Abe
autoconf not found :B
 
8:09 PM
you could download the tarball instead
 
Abe
ok trying that then
 
@Abe are you sure someone hasn't built one for your flavor of Linux?
 
Abe
i want to learn compiling it myself
which involves learning linux too...
easy peasy.
 
@whatever Do you need to understand it? It's not a concept that is important for many PHP developers.
 
I think I want to...
 
8:15 PM
hola
 
not important as a developer but if I can understand it will be good
 
blah
 
http://stackoverflow.com/questions/1912902/what-exactly-are-late-static-bindings-in-php
the zombat answer is good enough but still not quite sure
@LeviMorrison
 
Hello
anyone can help me
to find an awesome idea to start open source project
it should be website development
 
8:26 PM
Hi there.
Quick question. I have two integer variables. I want to find out which contains the highest value and know the name of said variable.
e.g.
$a = max($b, $c);
will return me the value of the highest variable but how do I figure which variable contained that value?
 
@Purify Use if/else
 
in that case it might be better to just compare them with < or >
$ sapi/cli/php -r '$arr = [1, 2, 3]; function foobar($bar) { $bar = 2; } foobar(&$arr); var_dump($arr);'
& argument!
int(2)
oops, I reintroduced call-time pass-by-ref
 
Abe
i'm sick of your shit linux Bareword "php" not allowed while "strict subs" in use at (user-supplied code).
 
@NikiC simple enough. :p
 
:p things will settle themselves abe
 
Abe
8:30 PM
@Purify <3
 
@Abe what's that?
 
@Abe hey babe. <3
 
Abe
@NikiC i have no idea, it appeared when i did rename "php-7.0.0" php
 
@Abe It's a perl error.
So, uh, yeah, have fun with that.
 
Abe
i just want to rename a folder :(
ah, it's "mv"
 
8:41 PM
@Abe Because without the correct tools to do dependency injection easily, they get better results from writing bad code that is easy to use but hard to test, rather than writing good code which is a pain to use but easier to test. aka what I was saying the other day.
 
@Purify $name = ($max = max($b, $c)) === $a ? 'a' : 'b'; <- if/else as ternary, it's not that readable and harder to wirte. Also if ($a === $b) the answer is two names.
 
Abe
but i find hard to believe that a novice has so many classes to justify the need for a dic
 
@hakre I ended up with something similar hakre, thanks man. :D
 
@PeeHaa into what? into ?
please re-tag mysql_* questions with ;)
 
it's not really the number of classes that requires it @Abe. rather a better architectural design
 
8:48 PM
@FélixGagnon-Grenier ^ a better design does not require it. Perhaps you meant that.
 
hmmm... well, doesn't a better architectual design implies it then?
 
I'd say (and it's not me who said it originally), you should normally not need to care about when to create objects. It should just work. Normally works well. Just don't care. Defer it.
 
I agree with that. So yeah, the design would require that classes asks for things. The DIC would be one way of building them for you.
 
You normally already write those part who build things. The DIC most often just stands in the way to that (sooner or later).
DIC have the use (and therefore the tendency) to couple concrete instances to static names. Most often you break layers with that. Which then renders layering in an application useless. However proper layering is a powerful concept, so I'd prefer well separated layers over a DIC. That could be such a design decision.
 
tfw first few google results about layering applications is about applicating layers to your skin with vogue
 

« first day (1885 days earlier)      last day (3049 days later) »