Tuesday, 11 July 2017

momijizukamori: Grey tabby cat with paws on keyboard and mouse. The text reads 'code cat is on the job', lolcats-style (CODE CAT)
I've been playing around with Python more lately, in part because it's one of the two main languages in my company's codebase (the other being Java, which just, kill me now, basically), and in part because it's like the one language with a good selection of OSS web frameworks that isn't PHP or Javascript. PHP is sort of a hot mess of a language, and most of the frameworks have security holes of varying degrees (I'm pretty sure my Drupal install is how my last host was compromised), and Javascript as a primary web framework offends me on general principle. I have a bit of a reputation as a Perl stan - I can recognize it's shortcomings, but I really enjoy using it. Unfortunately Perl web frameworks fall into two categories - so minimalist you're doing 99% of the work yourself (Catalyst) or a full app that you can't really change much on without a ton of work (Movable Type). In contrast, there's a number of popular, actively supported Python frameworks ranging the whole spectrum from lightweight to mostly-complete CMS.

And I'll admit some of my hesitation to get deep into Python is some hype backlash because Python people tend to be really evangelical about Python. But after doing more work in it.... I can kind of see why. There's a lot of the features I love about Perl - dynamic typing, good string support, agnostic to functional vs OO paradigms - without Perl's frustrations around variable passing and passing references/values. I do miss Perl's variable interpolation working in Python 2.7, but apparently they've added something similar in 3.5? I also appreciate that the Python community seems to be really good about docs - that's made a huge difference in getting up to speed on stuff. I ended up working with Flask, and got like 80% of a new cosplay site going over the course of about four days. The site is now up to 90% or so - I'll probably share a link here once I've got more content and whatnot up.

But yeah, you can probably consider me a convert here.

Profile

momijizukamori: Green icon with white text - 'I do believe in phosphorylation! I do!' with a string of DNA basepairs on the bottom (Default)
Cocoa

July 2017

M T W T F S S
     12
3 456789
10 1112131415 16
1718192021 2223
24252627282930
31      

the greatest secret of all times:

Custom text with html!Custom text with [personal profile] momijizukamori - a user name.italics! underline! strikethrough
I am a blockquote

Expand Cut Tags

No cut tags

Style Credit