# |
Sep 23rd 2019, 11:09 |
javier.villanueva |
the tipical example with db queries in a foreach xD |
# |
Sep 23rd 2019, 11:08 |
neon1024 |
We give out a technical test to candidates about a week before they interview, and we can discuss their code during the interview |
# |
Sep 23rd 2019, 11:08 |
birdy247 |
Maybe just show them some code and ask to explain? |
# |
Sep 23rd 2019, 11:08 |
javier.villanueva |
talk me about TDD |
# |
Sep 23rd 2019, 11:08 |
birdy247 |
Perhpas not writing |
# |
Sep 23rd 2019, 11:08 |
neon1024 |
How terrifying |
# |
Sep 23rd 2019, 11:08 |
neon1024 |
Eish, I can’t imagine trying to write code in an interview |
# |
Sep 23rd 2019, 11:08 |
javier.villanueva |
talk me about SOLID |
# |
Sep 23rd 2019, 11:07 |
birdy247 |
Technical test first |
# |
Sep 23rd 2019, 11:07 |
birdy247 |
They are coming in at 3pm |
# |
Sep 23rd 2019, 11:07 |
neon1024 |
Didn’t give them a technical test before the interview? |
# |
Sep 23rd 2019, 11:07 |
birdy247 |
Has anyone got any nifty test we can try them on? |
# |
Sep 23rd 2019, 11:06 |
birdy247 |
We want to test their PHP skills |
# |
Sep 23rd 2019, 11:06 |
birdy247 |
They will be working mainly with cakePHP |
# |
Sep 23rd 2019, 11:06 |
birdy247 |
We are interviewing today |
# |
Sep 23rd 2019, 11:06 |
birdy247 |
Hi |
# |
Sep 23rd 2019, 11:05 |
javier.villanueva |
ok thanks all |
# |
Sep 23rd 2019, 11:04 |
neon1024 |
..and wrap it in your own value object perhaps |
# |
Sep 23rd 2019, 11:04 |
javier.villanueva |
yes, is an option |
# |
Sep 23rd 2019, 11:04 |
neon1024 |
Which only returns the time part |
# |
Sep 23rd 2019, 11:04 |
javier.villanueva |
ok thanks |
# |
Sep 23rd 2019, 11:04 |
neon1024 |
You could always make a custom data type for just time |
# |
Sep 23rd 2019, 11:04 |
alexdd55976 |
@javier.villanueva varchar or datetime... time is a waste of time |
# |
Sep 23rd 2019, 11:04 |
javier.villanueva |
I think that is better for me to use an varchar field for save it |
# |
Sep 23rd 2019, 11:03 |
neon1024 |
Blame PHP :) https://www.php.net/datetime |
# |
Sep 23rd 2019, 11:02 |
javier.villanueva |
:( |
# |
Sep 23rd 2019, 11:01 |
neon1024 |
As there isn’t a Time class |
# |
Sep 23rd 2019, 11:01 |
neon1024 |
I believe so |
# |
Sep 23rd 2019, 11:00 |
javier.villanueva |
when I have a TIME field (mysql) ... and I get this value in cakephp... Its normal that returns an FrozenTime and set today in Date by default? |
# |
Sep 23rd 2019, 10:55 |
neon1024 |
Ahh `\Cake\Http\ForbiddenException` :) |
# |
Sep 23rd 2019, 10:54 |
neon1024 |
@jotpe The entity you’re setting to your form might be missing some fields :slightly_smiling_face: |
# |
Sep 23rd 2019, 10:54 |
neon1024 |
What’s the 401 exception? When a user fails Authorization |
# |
Sep 23rd 2019, 10:34 |
jotpe |
`[protected] _validator => [ '' => object(Cake\Validation\Validator) {` contains only the validation rules of Talks, not Submitters |
# |
Sep 23rd 2019, 10:33 |
jotpe |
This is weird. I debugged the context, `[protected] _tables => [` contains the TalksTable and SubmittersTable |
# |
Sep 23rd 2019, 10:21 |
neon1024 |
Which is why I asked about the validation :slightly_smiling_face: |
# |
Sep 23rd 2019, 10:20 |
neon1024 |
https://github.com/cakephp/cakephp/blob/master/src/View/Form/EntityContext.php#L485 |
# |
Sep 23rd 2019, 10:20 |
neon1024 |
Which leads back to here |
# |
Sep 23rd 2019, 10:20 |
neon1024 |
https://github.com/cakephp/cakephp/blob/master/src/View/Form/EntityContext.php#L475 |
# |
Sep 23rd 2019, 10:20 |
jotpe |
Oh no - magic hits again - `protected function _magicOptions` |
# |
Sep 23rd 2019, 10:19 |
neon1024 |
If you’re using EntityContext |
# |
Sep 23rd 2019, 10:19 |
neon1024 |
Which in most cases will be an entity |