# |
Jan 2nd 2019, 16:47 |
dereuromark |
I am just saying if oyu need to spend 500% of time to get there, then its nonsense and should be avoided :slightly_smiling_face: also means x00% of refactor time every change then and the benefit then is not there, compared to the time invested (if time is in collelation to money, which it usually is for us) |
# |
Jan 2nd 2019, 16:46 |
dereuromark |
if you get it for free (no additional time) thats great. |
# |
Jan 2nd 2019, 16:44 |
challgren |
Main goal was to make it easy to find deprecations and not rely on errorLevel E_ALL and ~E_DEPRECATION when testing so any deprecation will cause a failure that will force me to fix it |
# |
Jan 2nd 2019, 16:43 |
rrd564 |
and perhaps no error messages at all |
# |
Jan 2nd 2019, 16:42 |
challgren |
2013 lines of code and only 390 tests and 890 assertions. |
# |
Jan 2nd 2019, 16:42 |
rrd564 |
@dereuromark the browser? I tested with google chrome and firefox with same results |
# |
Jan 2nd 2019, 16:41 |
challgren |
Lol yep, I do not do enough assertions |
# |
Jan 2nd 2019, 16:40 |
dereuromark |
same reason 100% coverage is crap in most cases^^ |
# |
Jan 2nd 2019, 16:40 |
dereuromark |
the trick is to find a balance, as always, in life. |
# |
Jan 2nd 2019, 16:39 |
dereuromark |
well, its true. both extremes are crappy ideas. |
# |
Jan 2nd 2019, 16:39 |
ricksaccous |
*thinking about stupid jokes, keeps them in his own head* |
# |
Jan 2nd 2019, 16:39 |
ricksaccous |
strange that they decidedly used the acronym CRAP |
# |
Jan 2nd 2019, 16:38 |
dereuromark |
its free (only kills a few trees somewhere each time): https://opnsrce.github.io/how-to-read-and-improve-the-c-r-a-p-index-of-your-code |
# |
Jan 2nd 2019, 16:38 |
slackebot |
<challgren> |
# |
Jan 2nd 2019, 16:38 |
dereuromark |
see google :slightly_smiling_face: |
# |
Jan 2nd 2019, 16:37 |
ricksaccous |
what is a CRAP index? |
# |
Jan 2nd 2019, 16:37 |
dereuromark |
is it possible that the browser triggers a change here? you should debug it using xdebug and stepping through, if there are any unexpected code paths it takes. |
# |
Jan 2nd 2019, 16:36 |
challgren |
Whats the ideal CRAP index for a CakePHP app? |
# |
Jan 2nd 2019, 16:35 |
rrd564 |
the po file is readable for all |
# |
Jan 2nd 2019, 16:35 |
rrd564 |
in any of the view I18n::getLocale() gives me the one what I set up in app.php |
# |
Jan 2nd 2019, 16:34 |
rrd564 |
On the same machine I have a few CakePHP 3.6 projects where the translations are working fine |
# |
Jan 2nd 2019, 16:33 |
rrd564 |
I have tried a fresh cake3.7 project, by just changing the default home, and I tried with a full project, none of them gives me any translations |
# |
Jan 2nd 2019, 16:32 |
rrd564 |
intl is installed, tmp is writable, and I see the persistent files are created, however they do not contain any messages |
# |
Jan 2nd 2019, 16:32 |
rrd564 |
I extract the pot file via cake console, than make the translation, save it to Locale/hu/default.po, change defaultLocale, and I do not get my translations, I get the default texts |
# |
Jan 2nd 2019, 16:30 |
dereuromark |
can you be more specific? :slightly_smiling_face: |
# |
Jan 2nd 2019, 16:27 |
rrd564 |
did anything changed about localization in 3.7? I can not get it work... Something what I did quite a few times for other projects |
# |
Jan 2nd 2019, 15:53 |
k4t |
thx |
# |
Jan 2nd 2019, 15:48 |
jeremyharris |
Perhaps the request handler is taking over, if you have that enabled |
# |
Jan 2nd 2019, 15:46 |
itmpls |
yes |
# |
Jan 2nd 2019, 15:46 |
jeremyharris |
@itmpls are you returning the response? if so it should short circuit the view render process |
# |
Jan 2nd 2019, 15:45 |
jeremyharris |
you can check the awesome list for rest API plugins, they may have examples too: https://github.com/FriendsOfCake/awesome-cakephp#rest-and-api |
# |
Jan 2nd 2019, 15:44 |
jeremyharris |
@k4t there is one here, that I know of: https://github.com/gothinkster/cakephp-realworld-example-app |
# |
Jan 2nd 2019, 15:34 |
itmpls |
3.6.14 |
# |
Jan 2nd 2019, 15:34 |
itmpls |
anyone know why return $this->response->withType('json')->withBodyString(json_encode($data)); would trigger a render from a template 'json/blah.ctp' instead of directly returning that response? |
# |
Jan 2nd 2019, 15:08 |
k4t |
I would like to see example of such app based on REST API wirtten in Cake |
# |
Jan 2nd 2019, 15:08 |
k4t |
can you recommend any application written in CAKEPHP with REST API? |
# |
Jan 2nd 2019, 15:07 |
k4t |
hello |
# |
Jan 2nd 2019, 14:10 |
challgren |
Welp now I know! Thanks! |
# |
Jan 2nd 2019, 14:10 |
challgren |
Ohhh I missed the last part ;) |
# |
Jan 2nd 2019, 13:57 |
nayakvradhit |
Default Authcomponent.php file of cakephp 2.9 can be overidden?? With current working project of cakephp 2.2.1 Authcomponent.php Help me as I am new to cakephp |
# |
Jan 2nd 2019, 13:36 |
dereuromark |
I wrote you what I executed: `bin/cake upgrade fixture_casing /path/to/plugin/` |