The web in a box - a next generation web framework for the Perl programming language

IRC log for #mojo, 2017-08-12

| Channels | #mojo index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
00:16 Alex342 left #mojo
00:39 Gedge joined #mojo
01:19 Janos joined #mojo
01:42 marty joined #mojo
01:51 ilbot2 joined #mojo
01:51 Topic for #mojo is now � nom nom | http://mojolicious.org | http://irclog.mojolicious.org | http://code-of-conduct.mojolicious.org
01:59 tchaves joined #mojo
02:08 noganex joined #mojo
02:31 marty joined #mojo
02:34 karjala_ joined #mojo
06:11 crab joined #mojo
06:16 crab joined #mojo
06:20 aborazmeh joined #mojo
06:21 crab joined #mojo
06:39 crab joined #mojo
07:29 renormalist joined #mojo
07:29 Vandal joined #mojo
08:02 petru joined #mojo
09:42 petru joined #mojo
10:44 sri this line is lomger than 80 characters, but i'm not sure how to format it differently https://github.com/kraih/mojo/blame/master/lib/Mojolicious/Guides/Testing.pod#L213
10:44 sri s/m/n/
10:45 pink_mist how many characters is it?
10:46 sri 96
10:47 pink_mist guess just add a linebreak at the 80 char mark?
10:47 pink_mist it's how a narrower console would do it I'd presume
10:48 sri that's true
10:49 good_news_everyon joined #mojo
10:49 good_news_everyon [mojo] kraih pushed 1 new commit to master: https://git.io/v79NM
10:49 good_news_everyon mojo/master 349fe31 Sebastian Riedel: line was longer than 80 characters
10:49 good_news_everyon left #mojo
10:50 sri hmm http://mojolicious.org/perldoc/Mojolicious/Guides/Testing#An-example
10:50 sri actually strange how the whitespace around the parentheses is inconsistent
10:51 pink_mist I'd assume that's a printf artifact
10:52 pink_mist printf "... (% .2f usr ..." or so
10:52 pink_mist err, that's wrong, but I hope you get my drift
10:53 sri yea
11:18 marty joined #mojo
11:23 vroomanj_ joined #mojo
11:44 good_news_everyon joined #mojo
11:44 good_news_everyon [mojo] kraih pushed 1 new commit to master: https://git.io/v79pJ
11:44 good_news_everyon mojo/master f7ad11e Sebastian Riedel: no need to break the word
11:44 good_news_everyon left #mojo
11:51 good_news_everyon joined #mojo
11:51 good_news_everyon [mojo] kraih pushed 1 new commit to master: https://git.io/v79pE
11:51 good_news_everyon mojo/master 220ca39 Sebastian Riedel: fix typos (closes #1121)
11:51 good_news_everyon left #mojo
12:15 Janos joined #mojo
12:18 good_news_everyon joined #mojo
12:18 good_news_everyon [mojo] kraih pushed 1 new commit to master: https://git.io/v79h1
12:18 good_news_everyon mojo/master 998f77b Sebastian Riedel: link to Role::Tiny
12:18 good_news_everyon left #mojo
12:44 petru joined #mojo
12:50 trone joined #mojo
13:31 gretchen joined #mojo
14:04 marty joined #mojo
15:43 Janos_ joined #mojo
15:47 PryMar56 joined #mojo
16:20 kavuria joined #mojo
17:07 preaction anyone know if there's a simple module that does a round-robin data set cache? like, i need to keep 1000 records in memory. every time a new record is added, the last record must be removed. i could use CHI, but that's a lot of reading/writing.
17:35 marty joined #mojo
18:20 genio https://metacpan.org/pod/release/CAPOEIRAB/UV-1.000000_01/lib/UV.pm#HELP-NEEDED
18:40 leffe joined #mojo
18:40 leffe Hi
18:41 leffe I have a question regarding error handling.
18:41 leffe My model will be in separate modules.
18:42 leffe How do I report errors to the controller part?
18:42 leffe using warn, die, carp ...
18:43 leffe using exceptions? I do not know If exceptions are considered a good practice in perl, but it saved my day when programming in java.
18:48 Grinnz exceptions are considered good practice, yes
18:48 Grinnz see Throwable and Syntax::Keyword::Try
18:50 leffe Thanks.
18:54 leffe Should I consider using Mojo::Exception ? or is it intended for Mojo exceptions themselves?
18:58 preaction i don't think there's any problem with using Mojo::Exception
18:59 Grinnz it isn't really intended for users iirc
19:07 leffe by Throwable you meant Class::Throwable, right?
19:08 Grinnz no
19:21 Lee joined #mojo
19:22 Grinnz if you want an all in one class for it use Exception::Class
19:22 * genio just updated Exceptions to show Syntax::Keyword::Try as well
19:26 leffe Thanks, grinnz
19:30 trone joined #mojo
19:41 haarg there's also Throwable::SugarFactory
19:46 leffe mmm, sorry to abuse, what about using eval { ... }; something if $@; seems to be the spartan version of try catch.
19:47 Grinnz yes, see Try::Tiny for all the ways that can go wrong
19:48 genio https://metacpan.org/pod/Exceptions#A-HANDLED-EXCEPTION  https://metacpan.org/pod/Try::Tiny#BACKGROUND
19:48 leffe thanks. Where can I get solid knowldge of error handling in perl. Any book?
19:48 leffe thanks genio.
20:20 sri i wish there was at least one common pattern for exception handling in perl... but it's all just a huge mess with millions of different modules
20:25 genio Try::Tiny or Syntax::Keyword::Try are pretty much settled upon for the try/catch/finally part
20:51 stryx` joined #mojo
21:03 mishanti1 Anyone know of any good modules for date/calendar stuff that tags days as commemorative etc? Looking into calculating working days for a month.
21:03 genio Business::Hours can get you mostly there from what I remember
21:04 mishanti1 Going to check that out. Thanks! :)
21:09 mishanti1 Seems like Date::Holidays::NO might be what I want.
21:09 mishanti1 Oh, by marcus apparently. :)
21:25 fxbrain joined #mojo
21:54 kavuria joined #mojo
23:10 sivoais joined #mojo
23:34 bryan joined #mojo

| Channels | #mojo index | Today | | Search | Google Search | Plain-Text | summary