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

IRC log for #mojo, 2016-11-11

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

All times shown according to UTC.

Time Nick Message
00:14 disputin joined #mojo
00:38 polettix joined #mojo
00:46 stryx` joined #mojo
01:05 aborazmeh joined #mojo
01:37 itaipu joined #mojo
01:48 genio writing CVs and cover letters is no fun
02:25 stryx` joined #mojo
03:01 stryx` joined #mojo
03:35 ivi joined #mojo
03:46 noganex joined #mojo
04:33 asarch joined #mojo
05:14 polettix joined #mojo
05:31 VVelox joined #mojo
06:27 inokenty-w joined #mojo
06:53 mbudde joined #mojo
07:20 polettix joined #mojo
08:14 rshadow joined #mojo
08:17 asarch joined #mojo
08:19 rshadow joined #mojo
08:24 rshadow1 joined #mojo
08:29 Lee joined #mojo
08:36 dod joined #mojo
08:37 trone joined #mojo
08:41 dod joined #mojo
08:58 batman joined #mojo
09:34 sri neither is filing expense reports :S
09:37 osfabibisi joined #mojo
09:40 Zen joined #mojo
09:54 itaipu joined #mojo
10:02 Vandal15263 joined #mojo
10:16 howitdo joined #mojo
10:22 itaipu joined #mojo
10:44 henq joined #mojo
10:52 Zen Hi ppl, we are using Morbo and its awesome, I cannot figure out how to make rest calls to it though
10:52 Zen anybody got a pointer maybe? thanks!
10:53 sri hahaha, so this happened https://github.com/cutelyst/cutelyst
10:54 coolo sri: it's been alive for a while
10:56 nic I was in love with Qt
10:56 nic 20 yrs ago
10:56 coolo sri: I'm still waiting for https://www.techempower.com/benchmarks/#section=data-r12&hw=ph&test=fortune to update to next round, because the next round will have it too
10:57 coolo the perl and ruby frameworks are all so bad
10:58 sri mojolicious should be quite a bit better next round
10:58 sri not because the framework got faster, but because jberger optimized the benchmark app ;p
10:58 coolo https://www.techempower.com/benchmarks/#section=data-r12&hw=ph&test=json&l=27vym7 - at least it's best of perl :)
10:59 nic in other non-news... Test::Mojo::json_is is just so amazingly useful
11:01 coolo sri: the guy doing cutelyst is the one who stopped maintaining the kde updater we're using because of it. So I have some loath for this yet another web framework ;(
11:03 osfabibisi huh, I thought Qt was a GUI thing
11:05 coolo osfabibisi: in the end, web frameworks and UI toolkits are all event loops :)
11:06 osfabibisi I suppose that's all anything is </philosophy>
11:07 coolo osfabibisi: but really, writing a GUI application and writing a web app isn't that much different. It's all MVC and it's all event driven - so why not use the same framework
11:08 coolo I got used to not having to compile anymore, but if it makes your app alot faster - why not?
11:09 osfabibisi I'm not sure why you'd write in C++ if you didn't have to
11:09 osfabibisi I suppose that applies to GUI apps as well as web ones
11:09 osfabibisi but yeah, fair enough, if it's a good environment.  And presumably this is helpful for environments/teams which already use Qt like, er, what is that now, just WinPhone?
11:09 coolo osfabibisi: there is no point in discussing tastes (in general and for programming languages specifally)
11:10 dod joined #mojo
11:11 coolo osfabibisi: Qt brings its own webcore clone, so many qt apps internally produce HTML to be rendered on the UI. So while I didn't follow it lately, I bet there is a lot of DOM manipulation built into Qt as well
11:11 coolo sorry, webkit not core
11:11 osfabibisi ah yes, that makes sense
11:12 osfabibisi even if HTML/css isn't "the best" layout engine ever seen in a gui toolkit, it's a Really Well Known one, which is worth something
11:12 coolo exactly
11:12 coolo it's easier to find a designer knowing css tricks than one that knows $TOOLKIT tricks
11:13 coolo if $TOOLKIT isn't Apple's of course ;)
11:14 osfabibisi ah, and you can compile Qt into both iOs and Android binaries?
11:16 * coolo only used it for portability reasons when that word still meant linux/windows ;)
11:17 tchaves joined #mojo
11:18 coolo osfabibisi: and C++ is a fun language! http://tgceec.tumblr.com/post/74534916370/results-of-the-grand-c-error-explosion
11:25 osfabibisi I'm enjoying the Haskell way of things where there's no such thing as a null pointer, and far fewer ways to shoot yourself in the foot
11:26 osfabibisi (obviously Perl gives you many, many ways to shoot yourself in the foot too ;-)
11:27 tchaves joined #mojo
11:27 coolo osfabibisi: but they are all so subtle. C++ gives you canons
11:30 osfabibisi yeah.  which does mean I'm not really interested in C++, except for when it's *really* necessary, like playing on Arduino or other memory-constrained environments
11:30 osfabibisi even there, meh, there are plenty of boards that let you write in a proper language
11:36 itaipu joined #mojo
11:38 * nic is hoping swiftperl gets some traction
12:31 rshadow joined #mojo
13:00 itaipu joined #mojo
13:13 a6502 c++ for memory constrained environments? the bloated horror.. asm or plain c is the way to go ;)
13:20 howitdo joined #mojo
13:55 zivester joined #mojo
14:12 marty joined #mojo
14:36 jacoby joined #mojo
14:36 jacoby_ joined #mojo
14:45 stryx` joined #mojo
14:57 mdom joined #mojo
15:07 gizmomathboy joined #mojo
15:45 gryphon joined #mojo
16:02 zivester joined #mojo
16:07 henq joined #mojo
16:18 PryMar56 joined #mojo
16:28 stryx` joined #mojo
16:31 Janos joined #mojo
16:36 lluad joined #mojo
16:42 dod joined #mojo
17:09 arcanez joined #mojo
17:12 gbhat joined #mojo
17:21 rshadow joined #mojo
17:25 sh14 joined #mojo
17:26 coolo sri: (once you're reading again, left-win + " and then u gives you ü)
17:33 avkhozov joined #mojo
18:06 chorny joined #mojo
18:09 disputin joined #mojo
18:21 kerdes joined #mojo
18:22 kerdes hi all
18:22 kerdes I have a Mojo question
18:22 kerdes So I am using a Mojo (heavy) app,
18:23 kerdes and one on my controller, I use a (mojo independent) package
18:23 kerdes this module has a method,
18:23 kerdes but if I try to pass value from the controller action to the method,
18:24 kerdes I cannot use the value inside the pakage's method
18:27 jberger kerdes: Mojolicious classes are just perl modules, there's no reason you couldn't call other code
18:31 kerdes thats why I am wondering
18:32 kerdes inside my controller:
18:32 kerdes sub myaction { my $self = shift;
18:32 jberger (please use a paste site for code)
18:32 kerdes ok
18:37 rshadow joined #mojo
18:38 kerdes http://pastebin.com/5EqgNnv8
18:39 gbhat Ln 24 - should be $value = $_[0]
18:39 kerdes trying to write the value to file, but the $value is empty
18:39 Grinnz or more commonly: my ($value) = @_;
18:39 Grinnz or (this one modifies @_): my $value = shift;
18:40 Grinnz and remove the (), it's not correct and it's ignored because you're calling it as a method
18:40 Grinnz also, don't call it as a method, because you're not treating it as one
18:40 Grinnz App::Sys::Example::myfunction(...)
18:41 kerdes I tried the $value = shift; as well, but in this case I got :App::Sys::Example as the value
18:41 Grinnz yes, because you're calling it as a method
18:42 kerdes gbhat: same with $value = $_[0]
18:42 Grinnz so fix that too
18:43 kerdes one sec
18:44 gbhat kerdes: Grinnz is right. $value = $_[0] wont work because I missed how you were calling it.
18:44 kerdes okey baby
18:44 kerdes it is works now!
18:44 kerdes thanks guys,
18:44 purl i think thanks guys, is all i wanted to know :-)
18:45 kerdes but to avoid future mistakes, I need some explanations here
18:45 Grinnz kerdes: https://metacpan.org/pod/distribution/perl/pod/perlsub.pod
18:45 kerdes 2 things I had to fix: 1, the calling mode as Grinnz wrote,
18:45 kerdes 2nd is the function removing the ()
18:46 Grinnz kerdes: () is a prototype specifying that the function should take no arguments, which obviously is not what you wanted here
18:46 Grinnz I am not sure where you got the idea to add it
18:46 Grinnz but generally, you don't want prototypes anyway
18:46 kerdes so when It not worked, I trid some thing...
18:47 kerdes and thats how I put it there
18:47 kerdes I tried the ($) as well
18:47 Grinnz as for the method call. when you call a function with ->, it passes the left side ("invocant") as the first argument, whether that is an object or a string (class name)
18:47 Grinnz Foo::Bar::baz is the standard way to call a function and doesn't do any of that
18:49 kerdes so when I tried w the ->,
18:49 kerdes in myfunction I start my $selfe = shift;
18:49 kerdes and my $value = $_;
18:49 Grinnz no. $_ is still unrelated
18:49 Grinnz arguments are passed in @_ not $_
18:50 Grinnz my $self = shift; my $arg = shift; would have worked, however there's no reason to overcomplicate this by making it a method
18:50 Pyritic joined #mojo
18:50 Grinnz or: my ($self, $arg) = @_;
18:50 kerdes oh FUCK!
18:51 kerdes you are right
18:51 kerdes I think its clear now !
18:51 kerdes really thank you!
18:51 Grinnz np
18:52 kerdes so there were 3 things what I missed :D
18:52 kerdes lol
18:52 pink_mist (and none of them had to do with Mojo :P (perhaps you should have asked in #perl-help instead? =))
18:53 Grinnz )
18:53 suede (m)aybe
18:53 pink_mist yes, thanks :)
18:54 kerdes ex post facto I know I missed a perl related thing ;)
18:57 suede kerdes: it's okay, the best way to get better at anything is to ask dumb questions if you can't answer them yourself. your questions will get less dumb very fast :P
18:57 suede (especially if you ask the very talented people in here or in your case- #perl-help)
18:59 cromedome joined #mojo
19:00 kerdes sorry for the DUMB question
19:00 kerdes left #mojo
19:10 suede i didn't
19:10 suede really mean it like that
19:35 tchaves joined #mojo
19:40 Pyritic joined #mojo
19:51 polettix joined #mojo
19:56 mishanti1 You know what goes very well with trying to figure out how the various Microsoft Azure products fit together?
19:57 mishanti1 4dl of espresso.
19:57 tempire I wanted to like azure
19:57 tempire alas
19:58 tempire I do not
19:58 mishanti1 Hey! Tempire! I have missed talking to you. Doing well?
19:58 tempire I am doing quite well
19:59 tempire One day I will return to norway
19:59 mishanti1 Oh, and yes, I wanted to like it as well, but seeing more and more how incredibly costly it is to utilize. And it is quite a study in vendor lock-in.
19:59 mishanti1 tempire: Let me know and I'll make sure you have places to stay.
19:59 tempire \o/
20:00 tempire The fact that you can't run the client on macos is mind-boggling
20:01 mishanti1 There is a client? O_o I'm sitting here with the Azure web portal. It is slower than my grandmother.
20:05 Pyritic joined #mojo
20:18 disputin1 joined #mojo
20:43 henq joined #mojo
20:44 coolo joined #mojo
21:08 polettix joined #mojo
21:09 jberger sounds like there isn't a client
21:09 jberger cromedome: we missed ya last night
21:10 jberger (chicago.pm)
21:10 cromedome sorry... flight club meeting the same night. Should be able to make the next meeting. I got to keep going to the flight club meetings to keep up my discount
21:11 cromedome finally passed my flight exam, lots of study and practice leading up to it
21:11 cromedome finally about caught up with everything I had to put on hold to get it done
21:11 firnsy ummmm, hello?? first rule of "flight club"?!
21:12 cromedome firnsy++
21:12 stryx` joined #mojo
21:15 sonicepk joined #mojo
21:52 Adura joined #mojo
22:26 Adura joined #mojo
22:44 henq joined #mojo
22:44 perlpilot joined #mojo
22:59 polettix_ joined #mojo
23:04 stryx` joined #mojo
23:07 polettix joined #mojo
23:14 perlpilot joined #mojo
23:17 perlpilot joined #mojo
23:18 gbhat joined #mojo
23:25 ribasushi joined #mojo
23:32 perlpilot joined #mojo
23:38 rshadow joined #mojo

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