IRC Logs for #circuits Monday, 2014-07-14

prologicpdurbin: fixed by removing that feature :)00:25
prologicpdurbin: not really sure how that behavior can even work all that well without more metadata about what are valid views and what aren’t, etc00:25
prologicso now it’l just redirect to / if forced to login00:25
prologicI’m actually finding this little toy not too bad00:26
prologicbut I am a bit frustrated by one aspect so far00:26
prologicI’m not 100% sure about what should go into the python (circuits.web) side and what should go into the templates (Jinja2 + Bootstrap) side00:27
prologicRight now for example I have templated menu/nagivation links with defaults00:27
prologicbut can also be overridden by the python side by overriding the “menu” item in the context dictionary used to render templates00:27
prologicbut OTOH I’m of the opinoin that perhaps all view-type stuff (anything that’s displayed) should just be done in templates and the server/python side purely remain server-side behavior and “data” (none yet)00:28
*** robert_ has joined #circuits01:16
*** robert_ has quit IRC01:16
*** robert_ has joined #circuits01:16
kdbYo robert_01:16
*** koobs has quit IRC01:38
*** koobs has joined #circuits01:38
pdurbin:)02:37
prologicpdurbin: hmm?02:39
prologicno thoughts? :)02:39
pdurbingood bug fix :)02:40
pdurbinless is more02:40
prologicindeed02:40
prologicI try to follow that mantra in everything I do02:40
prologicyou know… this isn’t the first web app I’ve ever tried to write myself complete with webui02:40
prologicbut every time you sit down and design and write a new thing02:41
prologicthe hardest parts are the interactions and ui (I think)02:41
prologicI read a blog article about web application development and how it’s become a bit of an eliete thing with very few people actually being any good at it02:41
prologicand one developer piping up and challengine the rest of us to make it easier/easy for non-devleopers to be able to write web apps with ease02:42
pdurbinare you saying there's lots of crappy web apps out there? :)02:42
prologicthat’s precisely what I’m saying :)02:42
pdurbin:)02:42
prologicwith what Iv’e done so far02:42
prologicI’m kind of leaning into the direction of componentizing many aspects of web apps that are both common and best practice02:43
prologicso an average user with very little programming knowlegd can write up a few components, write some basic “app logic” and ey presto02:43
prologicthing is though - such things do exist02:44
prologice.g: Django (Python), Symphonfy (PHP)02:44
prologicand many others02:44
prologicbut are they necessarily “easy” for an average non-developer?02:44
pdurbinmy four year old and I made an android app today in about 5 minutes with MIT's App Inventor :)02:44
prologicnow see that’s wonderful :)02:44
prologicwe need to build something like that for the web apps02:44
pdurbinof course, it was a copy and paste from a previous app I had made with her big sister02:44
prologicahh02:45
pdurbin"pet the kitty to make it meow" became "pet the shark'02:45
pdurbin(she's into sharks)02:45
prologiclol02:45
prologicnice02:45
pdurbinhttp://appinventor.mit.edu/explore/content/hellopurr.html02:46
prologicvery nice02:48
prologicpdurbin: any thoughts on managing views and navigation?02:59
*** eriknw has quit IRC03:07
*** eriknw has joined #circuits03:21
*** Romster has joined #circuits07:31
kdbHey romster07:31
*** spaceone has joined #circuits07:54
kdbHi spaceone07:54
prologichey spaceone08:35
*** FSX has joined #circuits09:34
kdbHeya fsx09:34
pdurbinI guess the navigation should be part of the view10:31
prologicI think so too12:05
prologicso you can control various aspects about it12:05
prologicand if we're building a webui that degrades gracefully - then ui behavior and logic should also go into the views/templates12:05
pdurbinyeah12:26
prologichttp://arrow.shortcircuit.net.au:8000/#115:21
prologicWould anyone like to help me with these slides? :)15:21
*** Romster has quit IRC15:21
prologichttps://bitbucket.org/circuits/pycon15:21
YamaoO15:22
*** Romster has joined #circuits15:22
Yamaima making easy websites with flask and bootstrap XD15:26
prologicwebsites - sure15:28
prologicwebapps - no such thing as easy15:28
prologicat least not yet15:28
prologicyou've not tried circuits.web yet?15:29
Yamahm, what do you mean exactly with "webapps"? so every dynimac website would be a webapp?15:29
prologicby web app I mean15:29
prologicbehavior15:29
prologiclogic15:29
prologicdata15:29
prologicit's fairly straight forward to create a simple website15:30
prologicdynamic or not15:30
prologicas long as you're fairly decent with HTML/CSS15:30
prologicor just use Bootstrap :)15:30
Yamayeap15:30
Yamathats really easy15:30
prologicI myself find UI(s) of any kind painful and frustrating15:30
prologichttps://bitbucket.org/prologic/dataconv15:31
prologic^^^ I'm trying to build a minature framework for web apps15:31
prologicfor my own uses atm15:31
prologicbut just something I can reuse for consistency and reliability15:31
Yamanice^^ My website just gets some data from mysql, checks permissions and creates links and thunmbnails on his own^^15:32
prologicDemo of dataconv up on: http://arrow.shortcircuit.net.au:8000/15:34
prologicerr https://arrow.shortcircuit.net.au:8000/15:34
Yamastill, i dont really know what it does XD15:35
prologicnothing :)15:36
prologicat least not for any user15:36
prologicbut it handles sessions, logins, logouts15:36
prologicas well as navigation and views15:36
Yamahm, so with circuits, gunicorn or something like that wouldnt be neccessary, or?15:38
prologiccorrect15:38
prologiccircuits.web is async15:38
prologicscales quite well actually15:38
Yamawhy cant flask himself this?15:38
prologicporting flask to circuits.web15:39
prologicwould be as easy as15:39
prologicsubclass Controller15:39
prologicwrite methods in place of regex-style routes15:39
prologicand run Server with your Root15:39
prologicSee: https://bitbucket.org/circuits/circuits/src/tip/examples/web for many circuits.web examples and common use-cases15:39
Yamaya, epicmuffin showed me some of em15:40
prologicflask and bottle afaik are designed to be drop-in single python scripts15:42
prologicbut ihmo that's their only claim to fame :)15:42
prologiccircuits.web is a bit more feature-rich15:42
prologicbut with minimal boilerplate15:42
prologicit's built on circuits itself :)15:42
prologiccomponents ftw15:42
Yama^^15:43
Yamaplanning to use/learn circuits^^15:43
prologicgreat :)15:43
prologiclet me know how I can help with that!15:43
Yamai will, thanks :)15:43
Yamaso uhm... dataconv would be for easy html templating?!15:43
prologicas you've no doubt gathered I'm presneting circuits at PyCon AU (Australia/Brisbane) this year15:43
prologicwell yeah you can think of dataconv as that15:44
prologicI may move this to https://bitbucket.org/circuits at some point and rename it15:44
prologicthe useful bits so far are the15:44
prologicJinjaRenderer15:44
prologicand Loginmanager15:44
prologiccomponents15:44
Yamamk15:48
*** Osso has joined #circuits19:14
kdbHi osso19:14
*** Osso has quit IRC21:37
*** Osso has joined #circuits21:38
*** Osso has quit IRC21:48
*** Osso has joined #circuits21:53
*** Osso has quit IRC22:51
prologicmorn’n all23:57

Generated by irclog2html.py 2.11.0 by Marius Gedminas - find it at mg.pov.lt!