440 karma · joined Sep 18, 2010 (16y ago) · 251 submissions
https://x1agent.com - AI Dark Factories on K8s | https://hotwired.sh - Desktop agent orchestration | https://treble.build - Figma to Code
comment 14y ago · link · parent
We are using TastyPie in production on a pretty large site and I've been super happy with it. We have custom fields, custom auth, custom base classes for resources where the underlying data store are non django models, security is very granular (with minimal code overhead) and overall its been a blessing to extend and override. One thing I like in particular is how you can reuse nested Resource definitions, e.g. define a UserResource once and reuse it everywhere a model/resource has a FK to user and you get correct response output. Saves lots of time and gets you a correct, secure implementation.
comment 14y ago · link · parent
The class-based approach gave very little practical reuse, and it was not granular enough to allow us to easily add validation rules or customize the fields to return from a model. Lots of ugly code where you had to concern yourself with response codes.. I mean whats the point with a framework if you have to concern yourself with response codes? Isn't it the frameworks role to abstract away these details?
Most of my beef with the framework has to do with the design. It has abstraction in all the wrong places ... Inversion of Control (IoC) just seem like a complete afterthought in the entire design.
Now with Tastypie, I will admit it has a steep learning curve, and a conceptual overhead, but it does a much better job of abstracting away the internals and you end up with a much more correct and consistent REST implementation. In addition, it is better architected which makes it easier to extract base classes and override behavior, which is valuable if you need it to work really well with non DB models.
I will say that deep down I'm not really happy with either alternatives though. Tastypie requires too much code to get up and running and it takes too much time to get confident with it. Will def. take a look at the other frameworks mentioned in this discussion.
comment 14y ago · link · parent
Senzari.com - we are looking for REMOTE or ideally local candidates that want to disrupt the music industry and build the next big thing in music. We are working on a very exciting graph-based music platform and would love to hear from competent Java or Python developers.
We have two openings on our team at the moment - the first is for somebody that knows big data inside and out, preferably with a solid CS background and lots of experience with Hadoop/Cassandra and Java. The primary responsibility for this position will be to improve our recommendation engine and to help improve the overall quality of our platform. Experience with graph-based systems is a big plus.
The second opening is for Python/Javascript, and we are ideally looking for somebody that is really good with both. We are using coffeescript and backbone for our front-end, with Django for the REST api. Most of the data in postgres and some in Mongo. Experience building scalable sites is a must, and experience with polyglot persistence and distributed systems architecture is a big plus.
You will join a closely knit team that has been flying under the radar with this product for 1 year already and it is starting to pick up a lot of steam. We are very well funded and have great strategic partners (VH1, MTV). As far as culture, we are very pragmatic when it comes to technology and we are obviously very passionate about music.
Our compensation is competitive, excellent benefits, and of course we offer stock options. As if that wasn't enough we also get you setup with great hardware to build cool stuff on, with lots of free lunches and an absolutely gorgeous view from our office in Brickell Key, Miami.
Send an email to ctoivola @ our domain - would love to hear from anybody who is interested.
comment 15y ago · link · parent
What annoys me the most is when these forms of expression are injected as a way to gain legitimacy, because quite frankly, its just narcissistic and shows insecurity.
Its the same league as saying 'oh, look I believe my penis actually is bigger than yours'. -- 'Oh hmm okay, cool, good for you, you are so special.'
SHOW ME THE FUCKING CODE!
comment 16y ago · link · parent
1. decrypt the string; if a padding exception occurs, then run a decrypt of a string the same size with correct padding. do not throw an error.
2. decrypt the string; if a padding exception does not occur, then run some instructions on a string with the same size and incorrect padding, forcing a padding error.
In both 1 & 2, we do not throw any visible errors to the user. Wouldn't this at least shrink the measurable difference significantly by ensuring that the instruction set is always going to be the same, and hopefully average out closer to a constant time, regardless of whether an error "occurs"?