HNHacker News
TopNewBestAskShowJobs

jalfresi

944 karma · joined February 1, 2012

submissionscomments
jalfresi··on Firefox 56 supports headless mode on Windows
How is it controlled when in headless mode? Still via Webdriver or does Firefox support Chrome Debugger Protocol?
jalfresi··on Macaron: a high productive and modular web framework in Go
Sorry if that was a snarky reply. I have a deep hatred of ORMs.

In the past I've had great success with XO, which will generate Go code from an existing DB Schema:

https://github.com/knq/xo

It's really very good!

jalfresi··on Macaron: a high productive and modular web framework in Go
There is no ORM like feature anywhere that makes complex persistence easy.
jalfresi··on Ask HN: What are the most popular libraries with the crappiest documentation?
Agreed, the AWS docs are terrible; they waffle on about inconsequential stuff, and insist on detailing every step and side tangent. Just tell me how to get postfix/php to use SES email without is failing silently!
jalfresi··on How to Version an API
You can define your own HTTP verbs if you want
jalfresi··on How to Version an API
The mime-type has changed. How you interpret the mime-type has changed.
jalfresi··on How to Version an API
Look at the mime-type declaration again - its not application/json. It is a representation of a resource in JSON format. The resource is the part thats changed, and interactions with that resource are defined as part of the mime-type.
jalfresi··on The Most Hated Online Advertising Techniques
Good point about retargeted ads showing the kids what they've got for christmas!
jalfresi··on Kubernetes by Example
Another great explanation - so its kinda-like a package manager for complete systems (like my above WordPress example).

Neat! Think I'm getting the appeal now

jalfresi··on Kubernetes by Example
Thats a pretty good explanation! Thanks!
jalfresi··on Kubernetes by Example
Agreed! The documentation is sparse, mostly blog posts and frequently out of date. I am finding some success with terraform style kubernetes cluster setups - there was a good one I came across for DigitalOcean that helped me trying to provision to Scaleway
jalfresi··on Kubernetes by Example
Absolutely! I can definitely see the payoff there. It just seems that everyone is packaging projects as Docker now and its a bit confusing that orchestration seems to be a bit of an afterthought in the docker world, when I'm sure most applications will require a database.

Still, I'll keep on plugging away at kubernetes; I actually quite like the design of the system, very tidy!

jalfresi··on Kubernetes by Example
Right, so in the WordPress example you would have:

- a WebApp pod for the WordPress, which can be scheduled/load balanced across several nodes

- a MySQL Mast pod, and possibly MySQL Slave pods which would be scheduled/load balanced

I REALLY want to get into all this but this seems like SO MUCH MORE WORK than just running them traditionally...

jalfresi··on Kubernetes by Example
So, trying to get a clear handle on just what Kubernetes is - its basically supervisord but for containers, across a pool of servers? With the addition of:

- A complete application e.g. wordpress + mysql containers, can be represented as pods

- Pods can be "scheduled" e.g. auto-scaled, across "nodes" e.g. servers, with load balancing etc

Is that right?

jalfresi··on Visual Studio Code: Shipping One of the Largest Microsoft JavaScript Apps
Love VSCode but still getting 100% cpu usage for php process on OSX. Great for Go dev though!
jalfresi··on Scrolling on the web: A primer
There is some UI chrome that is the responsibility of the browser, not the content within it. Back button, refresh button, scroll bars, address bar, etc. These should be off limits to the content within the web view.

The only person who cares what the scroll bars look like is the designer of the content within the web view. They have mistakenly thought that this is their responsibility.

If it is such an issue for the designer, maybe they should implement designs that are complimentary to the scroll bar?

jalfresi··on Attitudes That Lead to Maintainable Code
I've seen this expressed as "make the change easy; then make the easy change"
jalfresi··on Writing an Interpreter in Go: The Paperback Edition
"... the language is drop dead boring"

I LOVE boring

jalfresi··on API Design Guide
This is because the idea is that you would create a new media-type to represent your resource. It is this media-type definition that would determine what rel-types there are and how a client should interpret them.

for example, the spec for the HTML media-type that when a client sees a link with the rel-type "stylesheet" is should fetch the resource using HTTP GET.

As REST requires that media-types be registered the idea would be that we would eventually get a set of media-types that cover things like audio playlists, and how to interact with them.

So any "intelligence" required by a client would be baked into the implementation of the media-type processor. Instead of "client libs" for specific web services, you would have a general media-type parser/processor which could be re-used by clients of different web services to process common media-types.

But apparently individual client libs for each web service that overloads JSON is better.

jalfresi··on We Tried Slack and We Deeply Regretted It (2015)
It's not abuse if they were well within the terms laid out for the free service
jalfresi··on Open-sourcing Chrome on iOS
I'm suggesting that the web is fine - its stupid nonsense like javascript access to the microphone that gives the illusion that the web is moving forward, and that some people are freaking out proclaiming the end of days because some ridiculous feature hasn't been implemented.
jalfresi··on Open-sourcing Chrome on iOS
Web pages that can access the microphone sounds like an absolutely insane idea to me, but then like I said, web dev is absolutely mental at the moment...

get off my lawn etc.

jalfresi··on Open-sourcing Chrome on iOS
It's not holding back the web, settle down! It can still render websites perfectly fine and will continue to do so.

Seriously, what horse are you backing where iOS Safari is compared to IE6?!? What oh-so important feature you simply must-have, that would even begin to signify that iOS Safari is "holding back the web"?

The web dev world is absolutely mental at the moment...

jalfresi··on My personal fight against the modern laptop [video]
I don't want to waste my time dicking around with drivers and other such noise - I want to get on with my tasks. An operating system linked to s fixed set of hardware provides me exactly this.

My time is worth far more to me than the cost of a Macbook.

jalfresi··on Standard Notes – A notes app with a focus on longevity, portability, and privacy
Love Quiver but I really need an iOS client!
jalfresi··on Monetize Your APIs in AWS Marketplace Using API Gateway
Oh god this. And the inconsistent ability to ctrl-click a link in a new tab (works in EC2, not in RDS for example)
jalfresi··on Show HN: Crafting Interpreters – A handbook for making programming languages
I bought this when it appeared on HN around xmas, can recommend, its a pretty great introduction to the subject
jalfresi··on Backwards compatibility in Go (2015)
Maybe such a tool would still have some utility; I would appreciate a tool that could generate a change log between versions automatically...
jalfresi··on AdNauseam: Fight Back Against Advertising Networks and Privacy Abuse
I'd love for this to be inside some kind of proxy server - stripping ads for my browsing whilst simultaneously clicking every one of them under a fake profile of some kind...
jalfresi··on AdNauseam: Fight Back Against Advertising Networks and Privacy Abuse
It's my bandwidth, my browser. I'll automate clicking any goddamn thing I like. Don't like it? Don't serve it.
← PreviousPage 3 of 11Next →