# |
Mar 8th 2018, 15:46 |
neon1024 |
I didn’t read that one yet. `Facade::read(false)` |
# |
Mar 8th 2018, 15:45 |
neon1024 |
I don’t know if some of the Registry stuff counts as a Facade |
# |
Mar 8th 2018, 15:45 |
neon1024 |
Service locator pattern is in there as well as the Repository pattern. Those are the ones I know of |
# |
Mar 8th 2018, 15:45 |
savant |
like we support DI (just dont have a container and everyone gets really upset if you dont have a super-global to contain your stuff) |
# |
Mar 8th 2018, 15:44 |
neon1024 |
My focus this year is trying to work slower and invest more in code quality, I think patterns can help with that to some degree |
# |
Mar 8th 2018, 15:44 |
savant |
We use a ton of fun patterns in cake3 |
# |
Mar 8th 2018, 15:44 |
neon1024 |
Let alone trying to remember them! |
# |
Mar 8th 2018, 15:43 |
neon1024 |
I agree, but it’s also hard to know when you need a pattern I find |
# |
Mar 8th 2018, 15:43 |
neon1024 |
@savant I think the CakePHP ORM uses the Decorator pattern |
# |
Mar 8th 2018, 15:43 |
savant |
I think thats a trap many devs fall into |
# |
Mar 8th 2018, 15:43 |
savant |
@neon1024 maybe, but I havent ever purposefully been like “I have this problem, I wonder what pattern I should use :thinking_face: ” |
# |
Mar 8th 2018, 15:42 |
ricksaccous |
sure |
# |
Mar 8th 2018, 15:42 |
ricksaccous |
on the upload plugin repo? |
# |
Mar 8th 2018, 15:42 |
savant |
@ricksaccous can you file an issue? |
# |
Mar 8th 2018, 15:42 |
neon1024 |
@savant I still think patterns are important to know. As they’ll solve common problems in sensible ways. |
# |
Mar 8th 2018, 15:42 |
savant |
maybe some misconfiguration on readthedocs end |
# |
Mar 8th 2018, 15:42 |
savant |
since the online ones are generated from the repo |
# |
Mar 8th 2018, 15:42 |
savant |
that shouldnt be possible |
# |
Mar 8th 2018, 15:42 |
ricksaccous |
basically the online instructions are outdated |
# |
Mar 8th 2018, 15:42 |
ricksaccous |
btw i think i remember that your Cakephp upload plugin docs online are not the same as the ones in the repo |
# |
Mar 8th 2018, 15:41 |
ricksaccous |
lol ok |
# |
Mar 8th 2018, 15:41 |
savant |
its very easy |
# |
Mar 8th 2018, 15:41 |
savant |
read the docs |
# |
Mar 8th 2018, 15:41 |
savant |
haha |
# |
Mar 8th 2018, 15:40 |
ricksaccous |
noooooooooo |
# |
Mar 8th 2018, 15:40 |
ricksaccous |
Requirements Patience |
# |
Mar 8th 2018, 15:40 |
savant |
:slightly_smiling_face: |
# |
Mar 8th 2018, 15:40 |
ricksaccous |
yes, my bad, ladies, gents, and all herbivore dinosaurs |
# |
Mar 8th 2018, 15:40 |
savant |
@ricksaccous https://github.com/josegonzalez/cakephp-queuesadilla/ |
# |
Mar 8th 2018, 15:39 |
savant |
and everyone else |
# |
Mar 8th 2018, 15:39 |
savant |
ladies too |
# |
Mar 8th 2018, 15:39 |
ricksaccous |
right now i want email sending in this app to be background jobbed |
# |
Mar 8th 2018, 15:39 |
ricksaccous |
gents, what's the best way to move things to background jobs |
# |
Mar 8th 2018, 15:39 |
savant |
if i’m using a pattern, its really only on accident, and not because I was like “how do I make my code SOLID” |
# |
Mar 8th 2018, 15:39 |
savant |
writing tests basically shakes out bad code for me |
# |
Mar 8th 2018, 15:39 |
savant |
I have actual work to do |
# |
Mar 8th 2018, 15:38 |
savant |
Idk I’m pretty over these sorts of things |
# |
Mar 8th 2018, 15:38 |
neon1024 |
Tried reading the Command pattern chapter too, but it’s a bit confusing |
# |
Mar 8th 2018, 15:37 |
savant |
want more patterns? use more finals |
# |
Mar 8th 2018, 15:37 |
savant |
like I said |
# |
Mar 8th 2018, 15:37 |
neon1024 |
I ended up there after reading about the Decorator pattern |