HNHacker News
TopNewBestAskShowJobs

jspiral

141 karma · joined January 24, 2012

submissionscomments
jspiral··on Let’s help Airbnb rebuild the bridge it just burned
I think i was an involuntary early adopter of this process, my experience was that the ID upload kept failing and then broke the connection to my linkedin and facebook accounts. Support wasn't able to help, beyond suggesting I make a video.

https://news.ycombinator.com/item?id=5710284

jspiral··on Anyone else run into this AirBnB problem?
I tried to make it clear in my original post that I took many pictures of my drivers license, but the submission process kept failing with non-informative error messages. I suspect part of it is that Colorado drivers licenses have some visual features that are intended to make them not photograph well, to prevent duplication.

I think my account now showing up as having no facebook or linkedin is a red flag and wish that could be addressed, but airbnb support was not willing to help with that.

I don't see how me making a video is a substitute for fixing a technical problem that has broken the connection between my airbnb account and my linkedin and facebook accounts.

jspiral··on Anyone else run into this AirBnB problem?
People are happy to let me into their home so far based on my current profile. I've complied with every form of verification requested. I'm happy with all of that.

I don't understand how "make a video" is the solution to some technical problem with AirBnB that causes the message "Your facebook account is already being used to verify another account", when in fact it is my primary login credential to the airBnB service.

jspiral··on Anyone else run into this AirBnB problem?
thanks for sharing, the 11 hour countdown with no hope of fixing it seems to be a standard move. Perhaps getting us to make videos is the real purpose of this fiendish system?
jspiral··on Django REST framework 2.3 released: ViewSets and Routers
wow, thanks for posting this! Very impressive resource. I was trying to speak more to the general challenge of learning this sort of OO system (I pretty much learned class based views by reading the code already), but I'm happy that you shared this, I will pass it on to others.
jspiral··on Ask HN: Online version of XMind?
I used mindomo for a while and found it pleasant enough. for some reason I never stick with mind mapping though.
jspiral··on Anyone else run into this AirBnB problem?
Interesting, I'm guessing the Manhattan market functions differently than PDX. My limited experience is that using the "% responded" and "time to responded" metrics they give for hosts, you can get a feeling for which listings are dead vs. active.
jspiral··on Django REST framework 2.3 released: ViewSets and Routers
I am fairly fluent with django class based views and tastypie, but i can't help but feel this sort of OO design has a painful learning curve. you basically need to dig through the stack of classes, mixins, etc pretty comprehensively to get a sense of how everything fits together. once you understand the flow, it's fine. But I find myself wishing there was a map (and one embodied in the code, not external documentation). Does anyone recognize this feeling and if so do you have any thoughts?
jspiral··on Eighteen months of Django
nice summary, sent to a colleague who is starting with django.
jspiral··on Light Table 0.4 released
Would you then recommend focusing development around some unit tests and eval-ing them as you do work? (that's what I am trying so far, seems ok)
jspiral··on Light Table 0.4 released
I'm interested in writing a simple rest API using compojure as a learning exercise. Can anyone experienced give an outline of what a reasonable workflow would be to do this using light table? I see that light table can "connect" to my project.clj...
jspiral··on When empathy becomes insulting
I respond to this with: "No, i'm not frustrated because I know you're going to make things right!" in a cheerful voice. Makes me feel better anyway...
jspiral··on Ask HN: State of Django vs. Rails?
To both the django-rest-framework advocates:

thanks for the recommendation, will check it out. I got deep in the guts of tastypie and wasn't happy with the way it handles patching and nested objects in particular.

For my kiosk project, as an example, I need to send a nested object graph over the wire. The wifi card in the kiosks isn't very reliable, so doing it in one call is very helpful (only one thing to retry a couple times, vs 10-ish objects, max depth of 4).

From what I can tell, django-rest-framework is read-only beyond one level of depth (you can return a nested hierarchy, but not post it in one shot)

Also, some of my objects are transient (e.g. credit card data), so I don't have a django model for each object that is an input to the api. (I have a plain old python class with some special magic for parsing track data, validation fields, etc for credit card and drivers license in particular, can't ever save that data to the db).

would you use django-rest-framework for that?

(also, is there a django equivalent of ActiveAttr, which lets you make ruby classes that act like active record objects without the persistence? or would you just make models and never save them? probably wouldn't look so good in an audit though)

jspiral··on Ask HN: State of Django vs. Rails?
I've been doing a ton of work in both recently. In particular, i've been the lead dev on a new product for web and mobile in django, an API layer supporting an iphone app over an existing SQL server database in rails, and a rewrite of the backend for some kiosks in rails, on top of various contributions to other people's projects.

I want to make some comments on writing APIs in particular, since I've been doing a lot of it lately, as my projects almost always have several interfaces these days, e.g. native mobile apps, angular.js web frontends, and as I mentioned above, fat clients running on kiosk hardware.

Building json apis in rails is a pleasure. My mini stack inside of rails is controller -> request handler -> model layer + external services -> rabl. Very clean, few lines of code, easy to maintain, does exactly what you want.

Doing the same with default django is a little less obvious. Tastypie is cool but when you get much beyond providing CRUD over the web to your models, it gets messy. Forget nesting stuff more than one layer deep. In the end, I build a controller layer that matches the way rails works and it's just about as nice, but I have to know and follow the conventions myself.

In particular, i'm copying rails style validators for models, I've built something similar to my rails request handlers using django forms to handle input, and i've built a simplified controller layer that handles routing, paging, filtering, sorting, etc. Instead of rabl, I just write a to_dict function to package data into a response. not quite as slick, but roughly equivalent.

I had to do more on the django side to get there, but at this point both are equivalent for me in terms of building APIs.

I understand that these days there are compelling arguments for building APIs in neither of these languages. However, for speed of development, ease of also putting up a vanilla web interface, and richness of the ecosystem as a whole, I still like django and rails for building mvps.

jspiral··on From Python to Ruby: Mind Blown by Rails, the Framework
I have built real applications in rails and django, and find them to be fairly similar in philosophy and power.

What would be an example of something you encountered with django that required getting creative quickly, that rails handles more routinely?

For me, the trickiest thing in either ecosystem to get a handle on was probably rspec. I tried to learn it by osmosis and that was probably the wrong way to go. In the end, it's worth having a DSL for writing tests and leads to nice clean readable code.

When people are trying to learn rails, I point them to Rails 3 in Action and Michael Hartl's online tutorial, but still need a better reference for learning rspec. suggestions are appreciated.

jspiral··on Marijuana advocates hope to rise from 'prohibition'
You might be right, but what's your alternative? The current state of affairs wastes a lot of money and ruins lives.
jspiral··on An open letter to prospective team members
prospective* (just trying to help since it's a submission title)
jspiral··on Ask HN: What tools are you using for your site's documentation
I like sphinx (e.g. readthedocs.org), if you need to generate documentation for your code
jspiral··on Multicore Programming in PyPy and CPython
Did you read the article? There are some interesting ideas being explored, really just theory for now. I don't see it as asking you to learn anything unless you want to participate in theorycrafting.

To me it seems like a waste of time to build crud websites in CL, but if people want to write articles about ways to make that experience better, i'm not going to write 'haha wtf' in response. (Yes, all analogies suck)

jspiral··on Ask HN: What programming language do you recommend starting with?
I tell the majority of people who want to dabble with programming to start with javascript, because the environment setup to make something run is so trivial, and they get positive reinforcement from making something that relates to other sites they actually use, not command line output.

If you're really looking for a latin equivalent, I agree with the previous posters (a lisp, python, and c all have merit and are worth getting to eventually).

My own early learning path was basic -> dos shell -> c -> c++

I'm glad I learned c, wouldn't really mind having missed C++.

jspiral··on Django swappable auth.User models landed in trunk
Yup, then some south hack to make usernames longer than 30 characters...
jspiral··on The Big Switch: How We Rebuilt Wanelo from Scratch and Lived to Tell About It
The facts of this case seem to tilt things in favor of a rewrite more than other other examples I've seen. - reasonable confidence that large portions of the current codebase are truly dead - lack of tests in the existing codebase - a fair amount of real world experience showing higher productivity in rails over java web stacks - a problem domain that the decision makers can actually wrap their heads around (vs a legacy system that manages commercial mortgage repackaging or something where there is no one person who actually understands everything important that the system does) - a new development team who's going to have learning curve anyway

this seems like about the perfect situation for starting over. congrats!

jspiral··on Underscore.py / a python port of underscore.js
Hints have appeared suggesting that interpolation will be deprecated at some point in python 3, e.g. from this article:

http://docs.python.org/dev/py3k/whatsnew/3.0.html#changes-al...

PEP 3101: Advanced String Formatting. [...] The plan is to eventually make this the only API for string formatting, and to start deprecating the % operator in Python 3.1.

As far as I know, interpolation is not actually deprecated yet though.

jspiral··on Starting a Django Project the Right Way
I read it as a statement that he doesn't like the Active Record pattern
jspiral··on The Software Developer’s Guide to Fitness & Morning Productivity
It's not as simple as saying that damage to the tissues of the spine are the cause of back pain. for one research example of many, see: http://www.ncbi.nlm.nih.gov/pubmed/8747239

Studies like this have shown that herniated discs and other types of damage once thought to be the cause of back pain are present in pain-free people with a high rate of incidence.

Further, it's not known what the tradeoffs are in terms of risking damage vs the benefits of increased strength.

I do think extra research is needed.

FWIW your definition of heavy and mine seem to be about the same: A weight the subject can lift with perfect form for a small number of reps, e.g. <= 5. With training, likely to be in the range of bodyweight x 2 and up.

jspiral··on The Software Developer’s Guide to Fitness & Morning Productivity
Heavy deadlifts fixed my back pain and several people I know. Sure, anecdotal evidence, but back pain isn't well understood and there's no real evidence for your position either.

all people should stay away from heavy deadlifts until they have mastered good form of course.

As an aside, GPs tend to give bad advice on all matters of sports medicine.

jspiral··on My Recent Experience With Square
I'm interested to hear whether people have found a good way to do this.

I've had a couple of jobs where support reported to me. In those cases, our end client had a help desk of some form that was escalating to us, so it wasn't unusual to get small laundry lists of whatever their admins couldn't deal with.

I greatly prefer to have those lists split out into individual tickets.

Granted, our systems provided the ability to pull up a view of all tickets associated with a specific POC or client, maybe that's all you are asking for. I just wanted to point out that i haven't seen any shops where it was obvious that what you're asking for was easy or correct.

If you have an example i'd love to hear about it!

jspiral··on Opa replaces Javascript, HTML, CSS, PHP, and SQL with one unified language.
Most projects eventually encounter thorny issues. If your only recourse is to let someone smart go into a deep dive while everyone waits, a lot of bad things can happen. You might not even have anyone with the wits and drive to fix it, or you might get a terrible hack that becomes a maintenance black hole. Meanwhile, your schedule becomes a question mark, naysayers against the technology form cliques, etc.

Small teams of motivated people can make just about anything work. For everyone else, support makes project schedules more predictable and can avert certain painful scenarios.

jspiral··on Google BBS Terminal – What Google would have looked like in the 80s
Completely irrelevant of course, but iirc COM is a raw binary, smaller than 64k that can be loaded into memory and started by pointing execution at offset 100h.

EXE files were larger and had to be rebased by the OS on load.

Someone tell me if i got this wrong, it's been a while!

← PreviousPage 3 of 3