HNHacker News
TopNewBestAskShowJobs

lazyfunctor

32 karma · joined July 4, 2010

Full stack web developer (leaning towards backend) based in Bangalore. email: abhinav.kaushik@gmail.com github: https://github.com/lazyfunctor
submissionscomments
lazyfunctor··on Why Most Unit Testing is Waste (2014) [pdf]
I've read this advice couple of times "convert your unit tests to assertions". What does it actually mean? Say in the context of web dev, you add assertions to the code and when they fail you log an exception and move on?

Any links related to it will be helpful.

lazyfunctor··on Do you think coding is a “basic skill”
I tend to feel that not everyone needs to know how to code, but in some professions it can be a "force multiplier" if they do.
lazyfunctor··on The Cost and Complexity of Cgo
Interesting! I wonder if someone can help me with a problem I'm facing with cgo. I'm trying to include go runtime as apython module (.so) and the code appears to work fine as a standalone program. But when I try to run it from a pre-forked process manager (say Celery for python) the code gets stuck at runtime.futex (from strace). I guess some interplay of python and go runtime w.r.t goroutines. I feel Go is not meant to be embedded in Python runtime.

Code here: https://github.com/lazyfunctor/pymosaic

Edit: Added last line

lazyfunctor··on Show HN: PHP serialization/deserialization library in Go
I have been learning Golang in my free time, this a toy project that I tried my hands on.
lazyfunctor··on Ask HN: Freelancer? Seeking freelancer? (December 2015)
SEEKING WORK - Bangalore - Remote

Experienced software developer (full stack with backend leanings)

  * python (Django/DRF/Flask)
  * Javascript (react)
  * Go
My expertise is solving hairy/messy problems involving integration with legacy codebase, though that is not the only thing I am good at. Some of my last few projects include integration of a django component that I wrote with a legacy codebase in PHP and a WYSIWYG(almost) editor for PDF generation.

GitHub profile: https://github.com/lazyfunctor

email: abhinav.kaushik@gmail.com

lazyfunctor··on Ask HN: What would you like to see in the Golang course?
1. Better understanding of goroutines & channels (what patio11 already mentioned). 2. Some more insight into error handling (maybe something on the lines of http://www.golangpatterns.info/error-handling)
lazyfunctor··on How many hours of sleep do developers get?
I average between 7-8 hours. I drink maybe 2-3 cups of tea in a day. I swim around 3 times a week, squash maybe once or twice a week and kayaking(white water) on some of the weekends.
lazyfunctor··on Tea with strangers
I don't think so, though I haven’t really looked around. Want to meet over tea?
lazyfunctor··on Tea with strangers
any plan for bangalore? tea fanatic here :)
lazyfunctor··on A Comprehensive Guide to Building a Scalable Web App on AWS
Nice post! Thanks for writing it. Do you know of any similar resource for google compute platform?
lazyfunctor··on Django-hijack 1.0.2
Sounds interesting. This could be really useful.

In my previous project for a client I implemented a similar feature (though I named it masquerade).

Thanks for sharing it.

lazyfunctor··on Ask HN: New city, freelancer job, how do you make friends and fight loneliness?
Try to find a co-working space in your area. If not maybe work from a cafe for some time during the day.

I was gonna suggest meetup.com but looks like you do not have interesting meetups in your area.

Maybe pickup some sport in your free time. Leisure, fitness and socializing all rolled into one.

lazyfunctor··on Ask HN: How do you develop incredible coding skills?
This. It holds for other skills as well.
lazyfunctor··on Ask HN: How do I get a better understanding of NoSQL databases
Thanks, will check this out.
lazyfunctor··on Ask HN: How do I get a better understanding of NoSQL databases
Thanks. Looks like this is what I am looking for.
lazyfunctor··on Ask HN: How can I quit smoking?
Three years back I quit after 10 years of smoking (cold turkey). My notion of smoking was associated with break from work. So I replaced it with green tea and red tea(rooibos). You can probably give that a try.

Another thing that helped was sports, I started playing squash. I tried to be in better cardiovascular health to play squash, another motivation. Maybe you can pickup something (gym, any sport or anything physical)if you are not already doing that.

lazyfunctor··on Unpythonic Python
Mine with some itertools abuse :)

from itertools import cycle , izip

[(f + b or x) for f, b, x in izip(cycle([''] * 2 + ['Fizz']), cycle([''] * 4 + ['Buzz']), range(1, 100))]

Edit: not sure how to post code in comments. e.g. * is lost

lazyfunctor··on Ask HN: Freelancer? Seeking freelancer? (April 2014)
I think that is a great idea. I'd be happy to see something like that.
lazyfunctor··on Ask HN: What is the newest hobby you have picked up?
Makes sense. Thanks.
lazyfunctor··on Ask HN: What is the newest hobby you have picked up?
Curious, is it your first instrument?
lazyfunctor··on Ask HN: What is the newest hobby you have picked up?
Photography and trying my hands at post processing. Bought Nikon D 3200 sometime back
lazyfunctor··on Ask HN: What is the newest hobby you have picked up?
I plan to take up whitewater kayaking sometime soon. Looks like shoulder injury is common amongst paddlers. Any tips to avoid it?

Also any idea if ACA courses are any good?

lazyfunctor··on Ask HN: Best Databases book?
I'd also suggest the course along with sections of http://www.amazon.com/Database-Systems-Complete-Book-Edition...
lazyfunctor··on What are you building over the holidays?
Wow, I really wanted something like this. Thanks. Gave it a try, looks like it crashes whenever I try to upload a file.
lazyfunctor··on Ask HN: Freelancers - what do you use to generate quotes and invoices?
freshbooks
lazyfunctor··on Guido van Rossum Deconstructing Twisted's Deferreds
I am new to this. Can you give me any pointers to differences between promises and deferreds. I have some idea about promises in JS. http://promises-aplus.github.io/promises-spec/ How is twisted's deferred different?
lazyfunctor··on Sell HN: Do you have a side project you want to sell?
How is http://nsfw.in different from any other URL shortener?
lazyfunctor··on Ask HN: What is the FizzBuzz test for hiring an engineering manager?
I think OP knows about fizzbuzz but wants to know about similar test for hiring an engg manager
lazyfunctor··on Ask HN: What set up do you use to scrape web pages
http://nrabinowitz.github.io/pjscrape/ http://phantomjs.org/

if python is not a strict requirement

lazyfunctor··on Rollup for multiple fields in MySQL
I am not sure if I get your question. I think this query should work

"select country, state, city, SUM(sales), SUM(profit) from foo group by country, state, city with rollup;"

for a table with country, state, city, sales, profit as columns

Page 1 of 2Next →