News for hackers. Stuff that matters.

jawnb

Re:Django 1.7 RC1 on Friday June 27, 2014 @08:22AM (#7953642)
The ORM is bad because it is a poor abstraction of SQL. This manifests itself in several ways, the largest being little control over the SQL queries generated.

Here's a gist I made the other day demonstrating this. https://gist.github.com/jawnb/cd7a899cac5300c01709

The poor abstraction really causes problems when you need to do anything beyond the simplest of use cases. To achieve even modest performance gains, you're better off hand writing your SQL. Additionally, doing even the most trivial of trivial aggregate queries will also mean that you're hand writing SQL.

SQLAlchemy is light years beyond the django ORM in this regard.

Don't take just my word for it though, here's a talk Alex Gaynor gave saying the same things. https://www.youtube.com/watch?v=GxL9MnWlCwo

Re:My first project in Rails – Pastebin for Mathematicians on Wednesday September 04, 2013 @01:15PM (#6328953)
On the CDN urls, you can just change them to use protocol relative urls. It Looks like the jquerytools cdn doesn't support HTTPS, but you should be okay to use this one from cloudflare

//cdnjs.cloudflare.com/ajax/libs/jquery-tools/1.2.7/jquery.tools.min.js

Here's a texpaste showing what you should change your script src's to. https://texpaste.herokuapp.com/n/lyoitffa

[citation needed]
Re:"Put down the crack pipes" doesn't go so well on Friday April 12, 2013 @05:54PM (#5541307)
As a dude, I experience the latter two scenarios frequently.

To bring the topic to a more constructive angle, does anyone have any techniques that might help in these cases?

My default is either extreme ambivalence, or raging hard ass. It's hard to find the middle ground.

Re:Ask HN: How do you manage server side credentials? on Sunday November 25, 2012 @09:13PM (#4830074)
One thing to be aware of when storing sensitive information in environment variables, is that it is possible to view the environment variables a process is using.
Re:AWS Elastic Beanstalk now supports Python on Monday August 20, 2012 @12:28AM (#4406267)
Yes RDS is like any MySQL db. The key word there being MySQL. If you want to use another data store like say, postgres or even some NoSQL solution. You're outta luck.

As for platform lock-in, my comments were less towards the web services level and more about system level concerns. It's not entirely clear how you would run persistent background tasks (read: celery). This doesn't even get into the headaches of learning yet another DSL to define OS packaging requirements.

That being said, IMO this would be great for simple apps, with no strenuous requirements. In addition, anything that allows more people to easily deploy their django apps is a good thing.

Re:AWS Elastic Beanstalk now supports Python on Monday August 20, 2012 @12:05AM (#4406230)
A couple friends and I just spent the past 48 hours building an app that recreates a lot of this functionality. Some key things to note with this is that you're stuck with RDS, and locked in to amazons platform choice.

If anyone is interested in the work we did this weekend, https://github.com/jawnb/badatcomputers