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

IRC log for #mojo, 2017-07-09

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

All times shown according to UTC.

Time Nick Message
00:09 jberger on a different topic, but along the same lines of making use of new stuff
00:10 jberger I was taking another look at using Test2 for Test::Mojo
00:10 jberger and one mechanism was looking like it was going to add 2 or 3 lines to each public api method
00:10 jberger and since I didn't think that would fly, I did something crazy
00:11 pink_mist 0_o
00:11 jberger I made a Test2 method attribute which wraps a method with the Test2 context and release
00:12 jberger and while I don't think that improved Test::Mojo and I have another idea of how to do it better, I might actually propose it to Exodist for other purposes
00:16 jberger http://paste.debian.net/975513/
00:16 jberger again, not going to actually propose that
00:16 jberger but it was kinda fun to play with
00:17 jberger I was trying to make up the lines by removing return keywords to get back some line-broken lines, since the return value no longer mattered
00:18 jberger ended up only at +4 lines
00:18 jberger probably could eek out a few more if I tried, but I don't think that is the right way to go anyway
01:08 arcanez jberger: did you change things to implicit return too?
01:08 arcanez oh, they're getting wrapped
02:12 noganex joined #mojo
02:12 jberger Correct. Any return value from the original method body is ignored
02:13 jberger I can do that because of the uniform nature of all of these methods
02:34 arcanez $last_job wrote their own wacky harness, so you couldn't use the normal Test::More methods, is/ok/etc :(
02:34 arcanez but it taught me to write tests, if mostly in ruby and not perl
02:41 arcanez finally writing tests helped me find https://github.com/arcanez/www-riotgames-leagueoflegends/commit/517c6ed4326cdf5a5ae4a7ba50686d4b79267c05 (ignore my bad code)
02:42 arcanez pretty q&d
03:14 VVelox joined #mojo
04:13 karjala_ joined #mojo
05:17 jberger testing is super useful. The sooner you learn to love it the better
05:18 jberger No softer way to say that one
05:57 arcanez :)
07:19 Vandal joined #mojo
07:36 sh14 joined #mojo
08:09 dod joined #mojo
08:34 go|dfish
08:46 Lee[home] joined #mojo
08:48 trone joined #mojo
08:54 karjala_ joined #mojo
11:36 Lee[home] joined #mojo
12:28 jabberwok what about Test2
12:57 sri i don't see the value of Test2
12:57 sri all it seems to do is make things MUCH more verbose
12:59 sri every time i see someone talk about Test2 it's about "here's how you add a million lines of code to be Test2 compatible"... not "Here's all the cool things you can do with Test2"
12:59 dod joined #mojo
13:05 dod joined #mojo
13:21 Craftsmanship Wasn't the point to be able to usefully parse your test output without having to fight with syncing STDOUT and STDERR?
13:30 aborazmeh joined #mojo
13:41 jberger the nicest thing about Test2 is that it is testable itself
13:42 jberger also, it has built in mechanisms for testing via IPC
13:42 jberger for forking etc
13:42 jberger also subtests are first-class citizens finally
13:43 jberger oh and the testing being events rather that just print statements allows for other harness backends and better test reporting (say cpanm-reporter)
13:51 jabberwok Granum's yapc^H^H^H^H tpc presentation https://www.youtube.com/watch?v=USsaZ6m_Zy8   was pretty feature-filled
13:56 sri guess we can wait with supporting that for a few years :p
13:57 sri Test2 is still new in 5.26 as far as i can see
13:58 sri mojolicious can currently be installed on 5.22+ without deps
13:58 sri Test2 doesn't seem worth changing that
13:59 sri maybe once the big push for signatures happens we'll do it all in one go
14:00 sri hahahahahaha https://twitter.com/realDonaldTrump/status/884016887692234753
15:26 karjala_ joined #mojo
15:29 FROGGS joined #mojo
15:38 dod joined #mojo
15:38 marcus sri: Winning response - Too bad Bin Laden is dead. trump could partner with him to fight terrorism.
15:42 Lee[home] joined #mojo
15:52 PryMar56 joined #mojo
16:42 Skrig joined #mojo
16:48 Skrig Hi folks. cpanm Mojolicious failed. Please look at the installation log, anyone. http://paste.ubuntu.com/25054716/
16:51 sri Skrig: is passes on travis https://travis-ci.org/kraih/mojo
16:51 sri s/is/it/
16:53 sri oh, i see what's wrong
16:53 sri Skrig: why do you have JOURNAL_STREAM in your environment?
16:56 Skrig I dont know. I need to think about it.
16:57 sri i mean, are there good reasons to have that?
16:57 sri or is your environment just messy?
16:57 Skrig Just fresh ubuntu-gnome 17.04
16:58 sri hmm
16:58 sri oh, i see it in the gnome terminal too on my opensuse
16:59 sri seems to be a gnome thing
17:00 sri that is actually pretty bad for us
17:02 Skrig unset JOURNAL_STREAM fix install issue. Big thanx Sebastian!
17:06 good_news_everyon joined #mojo
17:06 good_news_everyon [mojo] kraih pushed 1 new commit to master: https://git.io/vQiRI
17:06 good_news_everyon mojo/master 8716d77 Sebastian Riedel: use the INVOCATION_ID environment variable too
17:06 good_news_everyon left #mojo
17:06 sri hope that will fix the problem, otherwise we have to scrap the feature
17:12 ptolemarch joined #mojo
17:21 marty joined #mojo
17:24 Skrig I applay patch and problem go away. Thank you.
18:45 karjala_ joined #mojo
18:52 karjala_ joined #mojo
19:01 sri funny how this keeps popping up on HN https://brandur.org/postgres-queues
19:01 sri <3 SKIP LOCKED
19:01 sri good article too btw.
19:24 dod joined #mojo
19:30 karjala_ joined #mojo
20:33 brunoramos joined #mojo
21:27 brunoramos Hello, I'm knew to mojo and I'm current looking through the examples, tutorials and documentation. I think I found a good sample application "Alambic" but it is to big for me to understand right off the bat. Do you know any simple applications that are well designed that I could use has a reference to learn mojo?
22:56 sri brunoramos: the spin-off example apps http://mojolicious.org/perldoc#SPIN-OFFS

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