Better HN
topnewbestaskshowjobs
Log inSign up

dev360

440 karma · joined Sep 18, 2010 (16y ago) · 251 submissions

AI tinkerer, Python / Typescript dev. Same handle on twitter.

https://x1agent.com - AI Dark Factories on K8s | https://hotwired.sh - Desktop agent orchestration | https://treble.build - Figma to Code

Submissions

comment 14y ago · link · parent

Techcrunch is by far the most overrated event in the life of a startup. For the life of me, I don't understand why founders don't spend more time getting quality publicity from more mainstream media sources instead.

comment 14y ago · link · parent

Thanks - I'll take another look on the next project and see how it compares

comment 14y ago · link · parent

+1 - couldnt agree more.

comment 14y ago · link · parent

Uhm.. sounds like your doing a bunch of N+1 querying, this is generally fixed by overriding get_query_set to use select_related in your manager classes and then you set .objects. to point to the overridden manager class inside of your models.

comment 14y ago · link · parent

I would argue the contrary.. Maybe you can give some examples? - Are you overriding in the correct places? In the beginning with TastyPie, I would override get_detail and such, often when I should have been overriding obj_get instead..

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

+1. We started with django rest framework and it was a disaster.

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

Miami, FL

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

This code is a complete abomination, why would you stick your neck out and defend it? What igorgue is saying is, even if somebody gave me this code, I wouldn't take it, and I concur.

comment 15y ago · link · parent

If you chimed in on this thread just so you can say what age you started programming, then chances are, this behavior is just exactly what the author is talking about.

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

You're not trying to say that academia is an imaginary world, are you?

comment 16y ago · link · parent

Just out of curiousity, I wanted to know what you think.. I realize that the problem is that the PKCS padding exception is timeable. Please correct me if this is naive, but what if I devised some code that did either of the following:

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"?

1
56789