HNHacker News
TopNewBestAskShowJobs

seivan

3,286 karma · joined June 21, 2010

submissionscomments
seivan··on Break Up the Insulin Racket
Thanks for clearing that up.
seivan··on Break Up the Insulin Racket
Just throwing this out there, I am not sure of this myself. But aren't there studies where you could do without insulin shots if you avoided carbohydrates while feeding on protein and fat?
seivan··on Swifton: Ruby on Rails-inspired web framework for Swift
We're both right. Rails look the way it looks because of Ruby. What I am advocating is a compromise between the two of them. Rails-esque packaging, and API design on the entire stack e.g Active Record to Active Support. But using Swift strengths with protocol conformance, extensions, associated-types and etc.

I would never want to work on a larger Ruby code base again. It's just too hard to iterate on as things break too much compared to a larger Swift code base. That's just my take.

I actually like Ruby, but for scripts and smaller code. Not large applications. Same applies for ES6, where I think TypeScript would do a better job.

seivan··on CoeLux: Artificial Sunlight That’s Real Enough to Trick Your Camera and Brain
It would have to produce vitamin-D (or whatever the sunlight produces when it hits your skin) in order to combat that.

Source: Me in wintertime Sweden.

seivan··on Swifton: Ruby on Rails-inspired web framework for Swift
Thanks for explaining and clearing things up. I'll read up.
seivan··on Swifton: Ruby on Rails-inspired web framework for Swift
GCD is the best I've seen in terms of language design for concurrency. It's also a bit higher level than managing threads on your own. Though I might be wrong.
seivan··on Swifton: Ruby on Rails-inspired web framework for Swift
I actually like GCD, so I hope concurrency doesn't make it to the language, or if it does tries to stay as close as it can to GCD api design.
seivan··on Swifton: Ruby on Rails-inspired web framework for Swift
Sure, here https://gist.github.com/seivan/6b6bb19c899dd46f599e

I might fork and do my own version where I try to adhere to Swifts strengths while still staying close to Rails API where I can, e.g same naming scheme and pipeline design as Rails.

Rails biggest weakness is Ruby. Leveraging Swifts strengths with protocol extension, where clauses and generics could actually improve on Rails current API.

Edit[0]:

Added an idea for filter API. Not happy with it, but it's a start. Before/After filters could just be a list of "stuff" (selectors, closures, etc) to be called before any action. It could also use group_dispatch to ensure that filters are called in sequence and only call the method once all filters are done.

group_dispatch (think semaphores, but not as "dangerous") :)

seivan··on Swifton: Ruby on Rails-inspired web framework for Swift
You could have made it better by using protocols for the actions. So the methods for adding routes would ensure that the methods for new and update exists using a where clause checking protocol conformance.

There is potential here, I like a "full" package like "Omakase", granted its built using Swifts strength and a pipeline model like Express.js and/or Rails and its rack middlewares.

seivan··on Why the Future of Work Is at Home
https://en.wikipedia.org/wiki/Analysis_paralysis

Do you also find "comfort" in only using Apple products?

seivan··on Why the Future of Work Is at Home
I've come close to trying to nail down the zone issue. Still not certain, but it's related to decisions. The days I don't have to make an actual decision, but to just solve the problems, things move faster.

But sometimes, when I'm uncertain of the design or whatever decision that needs to be made, I fall out of the zone and into procrastination mode to avoid making a decision that I feel might be wrong.

seivan··on Why the Future of Work Is at Home
This is a bit of a myth(?) that got out of hand quickly.

For some government employees or agencies/body-shops temporarily trying to get squeeze some free PR out of it for government contracts. Not for private employees, most certainly not S/W engineers.

On fun stuff, I get more done on 12 hours than I do on 6 hours, so not sure what the variables are for the studies in question.

seivan··on Descartes – An experimental library for writing CSS in JavaScript
Managing state in CSS is not that good. I would have to add/remove class names from a DOM element. Styling in JS allows you to manage that in one place keeping the component intact with a few dependencies like external colors, fonts and images.
seivan··on The year 2040 is looking very scary for the world’s richest countries
These days you can get welfare for being "allergic" to electricity and subsidized holistic "medicine". At some point the system will implode long before 2040.
seivan··on Buzzfeed Twitter “like to hear from you if you are not white and not male.”
It alienates all sorts of reasonable human beings.

Quite frankly, I can't see how you're a justifying such behaviour without looking within and see what kind of polarisation it causes.

seivan··on Basic income may be needed to combat robot-induced unemployment
I am all for basic income, that being said...

Unemployment is bad overall. Too much free-time and not enough money (basic income won't cover "fun") will have consequences regarding crime.

Look at Sweden. Even with free healthcare, education and living costs covered the suburbs are filled with crime and radicalisation.

seivan··on Buzzfeed Twitter “like to hear from you if you are not white and not male.”
She threw manure and got manure thrown back. Like a tantrum for a child.

What is it you feel is so compelling with siding with one idiot and not the other idiots?

seivan··on Buzzfeed Twitter “like to hear from you if you are not white and not male.”
Not sure why you're getting down voted. This is the right way to handle these matters without alienating a lot of groups and cause polarisation with other issues.
seivan··on Buzzfeed Twitter “like to hear from you if you are not white and not male.”
Her texts about "pale devils", that's also part of the process of hiring WoC?

There are decent ways to go around this to empower non-white hiring. This isn't helping anyone, and ends up alienating a lot of people.

seivan··on Buzzfeed Twitter “like to hear from you if you are not white and not male.”
The irony is today we got to hear former Khmer Rogue communist on trial masquerading their mass murder as "social justice" [0]

I wonder how far people are willing to go for "diversity". Branding a group as "pale devils" is a good way to start diminish people into justifiable targets.

This isn't going to go away unless someone steps up and stops it. Unfortunately those who want to stop it are being branded as bigots, and others can only gain (votes, power, etc) from situation like this.

0: http://jurist.org/paperchase/2016/02/top-khmer-rogue-says-he...

seivan··on Noma's taste of tomorrow: creating the future of food
Anthony Bordaine visits Noma in one of his shows on Netflix if you want to see more, it was alright.
seivan··on How Meditation Changes the Brain and Body
Do you ever feel anxious that you should be doing something instead?
seivan··on How Meditation Changes the Brain and Body
How do you keep your mind still? I've tried counting my breaths up to 10, one for in and one for out, but honestly, it's a lot harder than it sounds. I end up having to start from 1 again a lot of times.
seivan··on Debunking the myths about parsing JSON in Swift
Yes! Someone finally said it. The worst are the operators. You don't need these libraries and their lack of tests.

Noticed this might be an ad about a book... Parsing JSON in Swift. The bubble is real. What developer would buy this? What's next, a book about NSURLSession?

seivan··on The Rise of Renting in the U.S
How does it work with having a companion. It might be easier to find someone with the same outlook. But if you're already in a relationship it's going to be an uphill battle.
seivan··on Under-35s in the UK face becoming permanent renters, warns thinktank
Yeah that's the same in Stockholm. Does Denmark have Bostadsrätt (Co-op) that have requirements on renting it out? E.g max a year, and etc?
seivan··on Under-35s in the UK face becoming permanent renters, warns thinktank
Malmö is cheaper because you get to "live" in Malmö, which I could never recommend to anyone, especially jewish or gay.

Yeah but at least the UK got a rental market, think about it. Stockholms market is scattered and hard to come by without connections or help. But not only that, most people who rent out their apartments in Sweden will either go through the Co-op board and only get a year, or do it under the table, both situations adds a lot of insecurity to the tenant.

In Singapore, there is a broad market from super cheap and shitty, to super expensive and amazing. Having a broad, free market helps consumers a lot more than having it closed down for a queue-system.

Sure, I can get a closet space with no air condition and no kitchen for a 1/5, or I can pay 3/5 and get a condo, at least there is a choice.

I can't speak for rest of Scandinavia, but I know in Stockholm that choice doesn't exist. You're forced to buy.

seivan··on Victory.js – Future of Front End
Been thinking of using a grid framework (external CSS file) for layout together with inline styling for general design. What's the best approach here, using class names to set grid-columns on components while using style={} syntax for visual design?
seivan··on Under-35s in the UK face becoming permanent renters, warns thinktank
How is Scandinavia better? Queue for years or get scammed on Blocket?

I prefer a free market. At least people can rent out in UK and not get in trouble with the Co-op that only allows one year at a time.

seivan··on We Are Hopelessly Hooked
No performance issues? How about UX issues? Not having fingerprint auth on the laptop for sudo is annoying enough.
← PreviousPage 5 of 34Next →