maybe a little; seems like no other languages besides perl and sed come close to the awesomeness of regex operations
Tordek
is there some sort of "django_lint" that will tell me "this syntax is deprecated, use that one"?
linuxuser9000
like I just looked up python::re and there's no s/// operation, you have to do re.method(params)
mkoistinen
linuxuser9000: Perhaps.... but Perl and Sed suck at being web-frameworks =)
linuxuser9000
hahaha... fair enough
kenbolton joined the channel
mkoistinen
You'd be surprised at what Python CAN do though, even with regex.
hillaj has quit
kenbolton has quit
jsaq007_ joined the channel
linuxuser9000
Well I always hear people blathering on about how awesome it is. The only reason I want to learn it is to put it on my resume. That and Django. I already know other languages so I don't see what Python's good for. But this is borderline trolling, ahem.
I mean really constructors being called __init__() that's just gross
FunkyBob
"And you think I know, I'll use regex! Now you have two problems."
sharktopus
linuxuser9000: lol get good
linuxuser9000
FunkyBob: Yeah if you don't actually know regex
sharktopus: help, I am so rekt
FunkyBob
that's a quote from a Perlian, actually
django920 has quit
Hairy joined the channel
sharktopus
get __struck__
get it? its a python pun
jsaq007 has quit
jsaq007_ is now known as jsaq007
linuxuser9000
sharktopus: kek
sharktopus
the toppest
linuxuser9000
sharktopus: why do you use django>
sharktopus
i mean what level of answer are you looking for
linuxuser9000
sharktopus: an answer that explains why you use a web framework rather than writing straight html/javascript
Goopyo has quit
sharktopus: please
kelseygi joined the channel
sharktopus
it works well, is active and well maintained by a reasonable team, has a history of secure and sane defaults, is in a language that allows me to make good tradeoffs between speed quality and maintainability
hmmm
FunkyBob
linuxuser9000: because we don't want to write the same code over and over and over for doing all those things every dynamic web site needs to do
we still write HTML.. we still write CSS and JavaScript...
sharktopus
well im not about to use javascript as my language of choice for server side work
FunkyBob
but we have the framework to make the "do actual work" bit easier to develop
sharktopus
i need to do processing of various kinds, and having actual numerical types is very useful
linuxuser9000
nodejs!
Goopyo joined the channel
sharktopus
show me how i can do some serious number crunching in js and i'll chuckle at how difficult it is
FunkyBob
JS shouldn't be anyone's language of choice... yes, it has some neat features, and they've gone a long way with theor one good feature [closures].. but, honestly
sharktopus
compared to the python infrastructure that's available
FunkyBob
linuxuser9000: nodejs is another web framework... so...
bDreadz has quit
linuxuser9000
javascript supports all the arithmetic operations and has Math.whatever built in, what else do you need for "serious number crunching"?
FunkyBob
except integer
sharktopus
linuxuser9000: 0.2 + 0.1
linuxuser9000
FunyBob: I wrote a chatroom in node.js following their tutorial, it was easy and worked
kenbolton joined the channel
FunkyBob
linuxuser9000: I wrote a chat room in Python on my own.. it was easy and still works
Oh boy am I surrounded by computer scientists? Because I'm not one and I'm beginning to feel it
sharktopus
linuxuser9000: so how do i work with panel data in js? in python i can use pandas
linuxuser9000
sharktopus: I don't even know what panel data is
sharktopus
how do i work with large integers in js
there are libraries to do all of these for sure
FunkyBob
how do you work with accurate real numbers in JS?
sharktopus
but js just aint the language to use if you have an option
linuxuser9000
Ok, I just followed the little "tiny webapp" example from http://www.jeffknupp.com/blog/2014/03/03/what-i... and it actually worked, it's just like node.js one file, make a server and it listens on a port. I'm super impressed
sharktopus
yes now improve and maintain it for 3 years
build a business
xpk joined the channel
deal with changing requirements
changing teams
maryokhin has quit
these are more python vs js issues and less django vs node issues
dheerajchand has quit
if "can write a hello world chat app" is your gold standard test for frameworks, you probably need some more experience with a variety of use cases to really weigh in meaningfully here
:)
viiralvx has quit
bwreilly has quit
bwreilly joined the channel
what do you do when you need to optimize some critical path in your node.js server and the algorithms and data structures are all solid?
xpk has quit
rewrite? ship to something faster and more specialized with protobufs or json?
python lets you take gradual steps to improve speed without necessitating a full rewrite or shipping to another process
im not a node guy so maybe there is a good answer, i really dont know
zsero
is the user object always added to the render context dict?
FunkyBob
zsero: no, only when you use a RequestContext and have the auth Context Manager enabled [as it is by default]
zsero
is RequestContext the one used by “from django.shortcuts import render”?
FunkyBob
yes
zsero: it's also used by pretty much all the CBV
[IIRC there's one template mixin that doesn't]
zsero
ok, I see. how can I see what other keys are proveded by default?
Hi I've got a question. I've got some analysis code written in Mathematica that reads from a database, does some analysis and writes output to a DB and a django frontend for the whole thing. However, I'm trying to figure out how to integrate the two things - How to fire off the Mathematica analysis as new data comes in.
Any ideas on this?
keimlink has quit
FunkyBob
sshack: that depends on how you can control mathematica
sshack
Frunkybob: Well, I can control it via regular process control, Do http calls, and a few other things.
Hollinski has quit
Unfortunately mma doesn't have good message queue support or other typical methods for this sort of thing.
bkuberek joined the channel
FunkyBob
so are you after some sort of task queue?
yuciyuar has quit
brockhaywood has quit
brockhaywood joined the channel
CMSBottu has quit
CMSBottu joined the channel
sshack
Funkybob: Well, it seems that way, except it'll have to be something fairly simple. I'll have to implement the MMA side from scratch.
transition has quit
FunkyBob
RQ is simple
sshack
A DB based task queue might work. MMA can grab the tasks, execute them and retire them. Could just do that in an endless loop.
RQ?
elyezer joined the channel
FunkyBob
it's a simple job queue system
jsaq007_ joined the channel
sshack
Taking a quick look Is the wire protocl documented somewhere?