News for hackers. Stuff that matters.

lazyfunctor

Re:Why Most Unit Testing is Waste (2014) [pdf] on Monday May 30, 2016 @02:03AM (#11799821)
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.

Re:Do you think coding is a “basic skill” on Wednesday April 27, 2016 @12:39AM (#11577855)
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.
Re:The Cost and Complexity of Cgo on Thursday December 10, 2015 @07:39AM (#10710321)
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

Re:Show HN: PHP serialization/deserialization library in Go on Thursday December 10, 2015 @07:26AM (#10710277)
I have been learning Golang in my free time, this a toy project that I tried my hands on.
Re:Ask HN: Freelancer? Seeking freelancer? (December 2015) on Tuesday December 01, 2015 @11:56AM (#10656875)
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: [email protected]

Re:Ask HN: What would you like to see in the Golang course? on Saturday August 29, 2015 @08:14AM (#10139756)
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)
Re:How many hours of sleep do developers get? on Friday May 29, 2015 @04:29AM (#9623400)
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.
Re:Tea with strangers on Sunday April 19, 2015 @01:22AM (#9402123)
I don't think so, though I haven’t really looked around. Want to meet over tea?
Re:Tea with strangers on Saturday April 18, 2015 @05:01PM (#9401019)
any plan for bangalore? tea fanatic here :)

Ask HN: What's your stand about react.js patent clause?

I have started using react.js + flux and I really like them. But I wanted to check what is your stand about the patents clause. Are you using it for your startup or are you steering clear? Also if you are a consultant/freelancer, are you using it for your client's project?I fall in the second category and I am not sure what should be the things that I need to consider before I start using it...

( Read More... | 5 comments | 8 points | on HN )
Re:A Comprehensive Guide to Building a Scalable Web App on AWS on Thursday January 22, 2015 @03:20PM (#8931483)
Nice post! Thanks for writing it. Do you know of any similar resource for google compute platform?
Re:Django-hijack 1.0.2 on Saturday November 29, 2014 @02:57AM (#8673356)
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.

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.

Re:Ask HN: How do you develop incredible coding skills? on Wednesday November 12, 2014 @05:55AM (#8594836)
This. It holds for other skills as well.
Thanks, will check this out.
Thanks. Looks like this is what I am looking for.

Ask HN: How do I get a better understanding of NoSQL databases

I have a reasonable understanding of relational databases. I am not so sure about NoSQL databases. Though I have used mongodb in the past. Can someone point me to resources to get a deeper understanding? How do I go about learning the trade-offs of choosing say a document store over a key value store. Also CAP theorem and related trade-offs. When is NoSQL better suited than relational etc.

( Read More... | 8 comments | 6 points | on HN )
Re:Ask HN: How can I quit smoking? on Friday June 20, 2014 @01:37AM (#7919633)
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.

Re:Unpythonic Python on Wednesday April 09, 2014 @04:17PM (#7562054)
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

Re:Ask HN: Freelancer? Seeking freelancer? (April 2014) on Saturday April 05, 2014 @06:18AM (#7536617)
I think that is a great idea. I'd be happy to see something like that.
Re:Ask HN: What is the newest hobby you have picked up? on Thursday March 20, 2014 @10:08AM (#7435571)
Makes sense. Thanks.
Re:Ask HN: What is the newest hobby you have picked up? on Wednesday March 19, 2014 @11:30AM (#7429311)
Curious, is it your first instrument?
Re:Ask HN: What is the newest hobby you have picked up? on Wednesday March 19, 2014 @11:28AM (#7429289)
Photography and trying my hands at post processing. Bought Nikon D 3200 sometime back
Re:Ask HN: What is the newest hobby you have picked up? on Wednesday March 19, 2014 @11:26AM (#7429273)
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?

Re:Ask HN: Best Databases book? on Tuesday March 04, 2014 @01:44PM (#7342165)
I'd also suggest the course along with sections of http://www.amazon.com/Database-Systems-Complete-Book-Edition...
Re:What are you building over the holidays? on Thursday December 26, 2013 @11:30AM (#6966734)
Wow, I really wanted something like this. Thanks. Gave it a try, looks like it crashes whenever I try to upload a file.
freshbooks
Re:Guido van Rossum Deconstructing Twisted's Deferreds on Tuesday August 20, 2013 @02:23AM (#6242113)
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?
Re:Sell HN: Do you have a side project you want to sell? on Saturday June 01, 2013 @07:03AM (#5803520)
How is http://nsfw.in different from any other URL shortener?

Older »