# |
Jul 10th 2017, 12:15 |
Martz |
wow, It's been a while... |
# |
Jul 10th 2017, 12:01 |
makallio85 |
okay.. ill try to figure something out |
# |
Jul 10th 2017, 12:00 |
dereuromark |
write it and apply with it, we can then discuss it once there is something concrete to talk about. but sure, why not if it is useful to the community |
# |
Jul 10th 2017, 12:00 |
makallio85 |
Do you think there would be need to have this kind of template project in awesomelist? |
# |
Jul 10th 2017, 12:00 |
dereuromark |
thats what we all do with our stuff |
# |
Jul 10th 2017, 12:00 |
dereuromark |
automate whatever you need |
# |
Jul 10th 2017, 11:59 |
dereuromark |
you can write a bake generator also for that |
# |
Jul 10th 2017, 11:59 |
makallio85 |
not that big deal to do it every time, but it would save some time |
# |
Jul 10th 2017, 11:59 |
makallio85 |
I mean some project, where is "test app" emulation already built in |
# |
Jul 10th 2017, 11:58 |
dereuromark |
:slightly_smiling_face: generate it |
# |
Jul 10th 2017, 11:58 |
makallio85 |
i remember there is, but cannot find it |
# |
Jul 10th 2017, 11:58 |
inoas |
bin/cake bake plugin |
# |
Jul 10th 2017, 11:58 |
makallio85 |
Is there any skeleton template for cake3 plugins? |
# |
Jul 10th 2017, 11:57 |
inoas |
:/ |
# |
Jul 10th 2017, 11:57 |
inoas |
feels sad inside :E |
# |
Jul 10th 2017, 11:57 |
inoas |
thats should be very clean and concise and I really fear setter-hell for options |
# |
Jul 10th 2017, 11:57 |
inoas |
much like function overloading even |
# |
Jul 10th 2017, 11:57 |
inoas |
either to stop the function from executing or - if one pattern is found - to continue - if multiple patterns are found to continue via proxying to protected methods |
# |
Jul 10th 2017, 11:56 |
inoas |
so I would love to see that we support a simple php-ish way to create schemas that then can be used to pattern match for $options |
# |
Jul 10th 2017, 11:56 |
inoas |
if yes, I fully agree but the support is not there |
# |
Jul 10th 2017, 11:56 |
inoas |
like symbols? atoms? |
# |
Jul 10th 2017, 11:23 |
lorenzo |
It would be better if php adopted the idea of enums, that Hacklang has |
# |
Jul 10th 2017, 11:22 |
lorenzo |
I totally see you argument. I wouldn't like to have objects for all options, maybe only for configs |
# |
Jul 10th 2017, 11:21 |
inoas |
lorenzo can you see my argument/fear? |
# |
Jul 10th 2017, 10:57 |
birdy247 |
and have updated my index.php accordingly |
# |
Jul 10th 2017, 10:56 |
birdy247 |
And I have a Application.php like this |
# |
Jul 10th 2017, 10:56 |
birdy247 |
So my bootstrap looks like this: |
# |
Jul 10th 2017, 10:55 |
birdy247 |
If I leave a DispatchFilter of ControllerFactory and have turned on Middleware, will this cause problems? |
# |
Jul 10th 2017, 10:54 |
inoas |
... and the gist above is just an alternate suggestion |
# |
Jul 10th 2017, 10:50 |
inoas |
hmic and as for business logic, there is parts that are stateless, those can be pre-validated, and parts that are not (say like a specified $id not existing in the database) which still need to be caught by custom business logic |
# |
Jul 10th 2017, 10:49 |
inoas |
my comment here https://github.com/cakephp/cakephp/issues/10866#issuecomment-313391901 explains it pretty much |
# |
Jul 10th 2017, 10:49 |
inoas |
https://github.com/cakephp/cakephp/issues/10866 |
# |
Jul 10th 2017, 10:48 |
lorenzo |
what options? |
# |
Jul 10th 2017, 10:48 |
inoas |
lorenzo I just wanted to voice my concern about setter interfaces for options (instead of something similar to pattern matching/pattern validation) |
# |
Jul 10th 2017, 10:48 |
lorenzo |
did you have a question? |
# |
Jul 10th 2017, 10:48 |
lorenzo |
around now, but I haven’t read back |
# |
Jul 10th 2017, 10:48 |
hmic |
i've seen the first, and my initial answer was about that. |
# |
Jul 10th 2017, 10:47 |
inoas |
https://gist.github.com/ionas/94e961bf414c78362442041081dad3ca#file-option-arrays-php-L4 |
# |
Jul 10th 2017, 10:47 |
inoas |
vs this very concise interface |
# |
Jul 10th 2017, 10:47 |
inoas |
did you see the setter example here https://github.com/cakephp/cakephp/issues/10866#issuecomment-313391901 |
# |
Jul 10th 2017, 10:46 |
inoas |
that class can exist I am okay with that |