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

IRC log for #mojo, 2016-08-23

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

All times shown according to UTC.

Time Nick Message
00:48 Pierre joined #mojo
01:55 prajith joined #mojo
02:03 Pierre joined #mojo
02:08 noganex joined #mojo
02:48 zivester joined #mojo
03:22 Pierre joined #mojo
03:43 jberger I need an opinion, all are welcome
03:43 jberger I have three types of message I can send: message, status, and error
03:43 jberger I have three methods that do so: send, send_status, and error
03:43 jberger these are completely inconsisnent
03:44 jberger should I go for send (or maybe send_message), send_status, and send_error
03:44 jberger or perhaps send (or message), status, and error
03:45 genio without the verb, they sound as if they're attributes to set or get. I'd go with send_*
03:46 jberger fair point
03:46 jberger do you like send or send_message better?
03:46 jberger where messages are much more likely to be sent than the others
03:47 genio now you're just killing my want to be consistent with my want to be concise.  evil man!
03:47 jberger exactly
03:48 jberger I'm leaning send, send_status and send_error right now
03:48 genio sounds like a winner
03:53 ribasushi I would go for send_message even though it is repetition
03:54 jberger poor huffman coding
03:54 ribasushi you will read the code orders of magnitude more often than writing it, every extra bit helps
03:54 ribasushi huffman coding does not apply to meatware which cnachors from start and end of terms, and often skips the middle
03:54 ribasushi *anchors (wha the...)
03:55 ribasushi jberger: case in point: https://www.reddit.com/r/explainlikeimfive/comments/1ruera/why_after_reading_this_does_the_the_brain_not/
03:55 ribasushi </ my 2c >
03:56 Grinnz ribasushi, wow that comment. amazing
03:56 Pierre joined #mojo
03:57 ribasushi Grinnz: the best part is - it works repeatedly: I just read it after not seeing it for ~3 months, knowing full well the effect, and my brane *still* fell for it ;)
04:00 jberger are there four, really?
04:01 jberger I only see three doubles
04:01 Grinnz i think that parts just reddit humor :P
04:01 jberger ok, good
04:01 jberger I hoped that was the case
04:01 jberger (now I can stop reading that comment)
04:03 Grinnz lol
04:04 jberger ok well I've committed send becoming send_error
04:04 jberger I'll sleep on the other one
04:06 jberger send_message would let me reuse mojo's own verbiage and add send_text and send_json too
04:06 jberger where send_text would encode utf8
04:06 jberger and send_json is obvious
04:07 jberger hmmm, am I remembering text vs message correctly?
04:08 ribasushi jberger: mmmm if you plan to have send_text: I would probably go an extra step and clearly disambiguate send_text / send_bytes
04:08 ribasushi unicode in perl is hard enough as it is
04:08 ribasushi send_message is kinda "whatever"
04:08 jberger oh right, text frame type, so message is the utf8 handling one
04:09 jberger oh I guess send_bytes/send_text/send_json is good
04:13 jberger hmmm, it makes the event names more confusing then though
04:13 jberger I'll have to think about it some more
04:19 mpapec joined #mojo
04:32 mauke joined #mojo
04:36 mauke joined #mojo
04:50 prajith joined #mojo
04:52 mauke joined #mojo
05:01 mauke joined #mojo
05:28 inokenty joined #mojo
05:33 inokenty-w joined #mojo
05:35 mauke joined #mojo
05:37 lluad joined #mojo
06:29 laidback_01 joined #mojo
06:50 dod joined #mojo
06:55 dod joined #mojo
06:55 mbudde joined #mojo
06:58 AndrewIsh joined #mojo
07:01 janl joined #mojo
07:14 Vandal16455 joined #mojo
07:32 stephan48 joined #mojo
08:01 osfabibisi joined #mojo
08:03 janl joined #mojo
08:18 jontaylor joined #mojo
09:02 kes joined #mojo
09:03 kes left #mojo
09:18 cuechan joined #mojo
09:31 Pierre joined #mojo
09:59 * sri yawns
10:14 y1mmm joined #mojo
10:30 mvorg joined #mojo
10:37 Kripton joined #mojo
10:45 sri guess it's worth mentioning https://github.com/kraih/mojo/issues/988#issuecomment-241694114
10:48 prajith joined #mojo
10:57 janl_ joined #mojo
10:58 Pierre joined #mojo
10:59 janl_ sri: that's a fun misfeature.
11:00 janl_ and a lot of hand-wringing.
11:04 sri it's not
11:04 tchaves joined #mojo
11:04 sri the topic has even been brought up independently like a few times
11:04 janl_ *nod*
11:04 janl_ translating file:/// to http://localhost/ violates the principle of least surprise.
11:04 janl_ it will keep cropping up
11:05 sri i've heard from multiple folks that they would like a protocol check so they could pass arbitrary scraped urls to Mojo::UserAgent without validating them themselves
11:05 sri so i think my consistency concern is very valid
11:06 janl_ what handle do you have on github?
11:06 janl_ kraih?
11:06 purl kraih is the key who founded Catalyst and eventually left because he wanted to break compat any time he felt like it and the core team disagreed
11:06 * sri kick purl
11:06 * purl thwaps sri with a BIG STICK!
11:07 janl_ batman?
11:07 purl batman is good.
11:07 janl_ jhthorsen?
11:07 Jonis hah
11:07 purl jhthorsen is probably batman. sensible can be resolved.
11:07 Jonis jberger?
11:07 purl hmmm... jberger is http://i.imgur.com/UPfFmXF.jpg or Foreman
11:07 Jonis bwaha
11:07 sri lol
11:07 janl_ shadowcat-mst?
11:07 janl_ shadowcat?
11:07 purl somebody said shadowcat was http://www.shadowcat.co.uk/ or a perl and *n?x consultancy who do Catalyst and DBIx::Class commercial support or where mst works or hosts the infrastructure for cat/dbic/moose and friends
11:08 sri yes, my handle is kraih whenever i couldn't get sri on the platform
11:08 sri and don't ask purl about sri... that entry has a long and weird history ;p
11:09 janl_ Equating validation of the Authorization: header with validating if you support the access method seems apple and bananas.
11:09 janl_ sri?
11:09 purl sri is A PONIE!!1! and a  or no more a javascript noob or evil or a spelling guerilla or the temporary channelclown or a snob now or the perl guerilla or a small mouse with a big head aiming for world domination or the evil sith or has no clue about fuzzy logic or no longer a real hacker :/ or a copycat or pimp to many children or a holy man or looks a lot like pitr or puny or making Mojolicious delicious
11:09 janl_ I see
11:11 janl_ well, I have no rep in the mojo circles so I'll just keep quiet on github
11:11 sri everybody is welcome to join the discussion
11:11 janl_ sure
11:12 tchaves joined #mojo
11:13 janl_ sure. "weell, a url might be a BASE-64 pixmap with handwriting in so whatever rules all known implementations follow are not really not something we want to think about"
11:13 sri while rep certainly matters, an eloquent explanation for a good argument tends to matter much more
11:15 janl_ getting into a discussion like on that page seems a unlikely way to gain rep. I'll just send patches if I ever find something to patch.
11:19 janl_ the python people have it easier: "I'd like an argument please!"
11:22 janl_ actually, die'ing on a unsupported access scheme seems reasonable, and addresses the security concerns aired in the discussion.
11:22 janl_ and is quite failure-obvious
11:26 y1mmm joined #mojo
11:29 cuechan joined #mojo
11:30 sri honestly, i'm kinda indifferent on the topic, all i want is consensus from the community so the decision is not on me :)
11:30 sri so i just point out my concerns and let the community deal with them
11:32 sri there have been a lot of easy security decisions in the past, like always escaping slash characters in Mojo::JSON, but this is not one of them
11:34 prajith left #mojo
11:35 prajith joined #mojo
11:48 nic jberger: Is there an option to have send, send(status => ), and send(error => ) ?
11:48 nic maybe have that first one be send(message => )
11:49 nic "Why do I have to think about and use three separate methods when from my PoV they're essentially the same?"
11:50 jberger nic: they aren't necessarily the same though
11:50 jberger Though i guess they are pretty close
11:58 blonewolfs joined #mojo
12:01 Gedge_ joined #mojo
12:44 kes joined #mojo
12:47 neilhwatson joined #mojo
12:48 neilhwatson joined #mojo
12:48 kes joined #mojo
12:51 kes joined #mojo
12:52 zivester joined #mojo
12:52 kes joined #mojo
12:57 Pierre joined #mojo
12:57 kes joined #mojo
13:00 cafe joined #mojo
13:02 ptolemarch joined #mojo
13:07 gizmomathboy joined #mojo
13:08 kes joined #mojo
13:17 cuechan joined #mojo
13:32 mcsnolte joined #mojo
13:54 zivester joined #mojo
13:55 asarch joined #mojo
13:56 jontaylor joined #mojo
13:59 jontaylor joined #mojo
14:42 sri bummer, wanted to play some overwatch and it's being ddos'd
14:42 sri what am i going to do now? be productive? *shudder*
14:56 tools joined #mojo
14:59 zivester joined #mojo
15:01 disputin joined #mojo
15:07 PryMar56 joined #mojo
15:31 bc547 joined #mojo
15:43 genio Productive work?!  The horror!!!
16:10 dod joined #mojo
16:26 cpan_mojo Mojolicious-Plugin-Multiplex-0.02 by JBERGER https://metacpan.org/release/JBERGER/Mojolicious-Plugin-Multiplex-0.02
16:45 disputin joined #mojo
16:56 marty I've got to admit, Overwatch is a total blast to play.  The satisfaction of being voted "epic" is.. err.. epic.
17:24 dod1 joined #mojo
17:58 jehdin joined #mojo
18:16 ashimema_ joined #mojo
18:21 y1mmm joined #mojo
18:27 Craftsmanship joined #mojo
18:30 Craftsmanship Is there an exporter thingy in mojo, or is that considered brutish?
18:39 dod joined #mojo
18:40 Grinnz just use Exporter
18:40 Grinnz or whatever you like
18:40 purl it has been said that whatever you like is what I'm doing!
18:42 Craftsmanship That'd do it.
18:51 tools joined #mojo
19:00 mpapec_ joined #mojo
20:45 laidback_01 joined #mojo
21:13 mvorg joined #mojo
21:14 mvorg joined #mojo
22:34 cuechan_ joined #mojo
22:34 mrErikss1n joined #mojo
22:46 jantore joined #mojo
22:51 zivester joined #mojo
23:29 mrEriksson joined #mojo

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