Better HN
topnewbestaskshowjobs
Log inSign up

iamdanfox

158 karma · joined Jan 4, 2014 (12y ago) · 63 submissions

iamdanfox@gmail.com
Submissions

comment 8y ago · link · parent

This is a huge achievement - props to the Gradle maintainers for delivering so much with such careful adherence to backcompat! I’ve had two enableFeaturePreview lines in my repos for a few weeks now and it made upgrading to Gradle 5.0 a zero manual action upgrade!

comment 8y ago · link · parent

We require all teams to use semver and usually define the Conjure API in the same repo as the server that implements it (so they are versioned together). Most of the time teams want to preserve wire-format back compat (i.e. only add optional fields to requests and don’t remove things from responses). Devs are pretty good at this, but we actually run a conjure-backcompat checker as part of CI to catch any unintended breaks they might have missed.

When it comes to intentional breaks, teams save up a bunch of carefully documented changes and then tag the next semver major version (i.e. 2.0.0). This is safe to do because all microservices and frontends we build actually contain embedded minimum and maximum version constraints on the backend services they require. Our deployment infrastructure knows about all these constraints and can then ensure that new major releases will only be rolled out in production when all their callers have explicitly declared support.

3.

Introducing Conjure, Palantir’s Toolchain for HTTP/JSON APIs(medium.com ↗)

61 points · by iamdanfox · 8y ago · 10 comments

comment 10y ago · link · parent

It's definitely not as elegant as Scala or Haskell, but I think their justification is very reasonable. The current implementation is maximally compatible with existing usages of tagged unions (e.g. Redux actions), because it allows you to choose whatever discriminant you like ('type', 'kind', whatever). Keeping very close to JS seems to be a core tenet of TypeScript and is quite valuable in my opinion. It means they can adopt new ECMAScript syntax without clashes and also ensures that newbies have a smaller learning curve. Also, they can always add in some syntactic sugar later if they want to!

comment 10y ago · link · parent

I usually want to keep an eye on my Selenium tests so I can debug them if they get stuck. When I don't have enough space to leave the selenium VNC window open, I put it underneath a semi-transparent terminal window which allows me to keep working.

comment 11y ago · link · parent

Nicely comprehensive blog post, Zorium looks like it is the result of a lot of hard work! Since this looks like a serious library (rather than a personal dev exercise), I'm curious about why you decided not to go with React:

1. The React source is definitely intimidating - what extensions did you feel it needed?

2. Animations are a tough problem, but I was under the impression that the communication isn't usually the problem, it's meshing a declarative representation with a mid-transition DOM. How is the Zorium approach better than the React one?

3. Flux, JSX and mixins are all completely optional and not compulsory to write a frontend in React; why did these motivate you to write a new library from scratch?

I hope these don't come across too critical, I have a lot of respect for anyone who can even finish a project like this, let alone document it. I've heard lots of good things about React, so I'm curious to hear other perspectives!

comment 11y ago · link · parent

There are a few interesting answers in the 'Startup Traction' topic on Quora [1].

Lots of them mention having a great product that solves a real problem, having a content-rich blog to drive traffic, inviting friends and some PR. (Maybe the friends one isn't so applicable to an ad network!)

[1]: https://www.quora.com/Startup-Traction

comment 11y ago · link · parent

Someone got a Linux image that could run `ls` down to 6.12MB by intercepting file accesses and deleting anything unused... See "How I shrunk a Docker image by 98.8%" (https://news.ycombinator.com/item?id=9438323)

comment 11y ago · link · parent

There's a gem right at the end from 1878:

"Oldest known publication of a recording of recognizable phrases in the English language (“Brown University”; “How do you do?”)"

comment 11y ago · link · parent

I was expecting the patent [1] to describe some kind of Amazon Echo, stuffed into a teddy bear with responses and a personality.

Instead, it seems to turn the toy into a glorified TV remote that sends "media device commands to a media device, instructing the media device to change state".

Shame about the click-baity article, I though this had potential for an interesting discussion about AI around children.

[1]: http://pdfaiw.uspto.gov/.aiw?PageNum=0&docid=20150138333&IDK...

comment 11y ago · link · parent

I tried the name `~SnapSwap` to actually get into this app. (I found this from a 'Popular Gateways' page [1].)

The blank input field isn't a super friendly way to show people your product if they haven't encountered Ripple before (like myself)... a little blog post about what Ripple is and why you made ledgermonitor would be cool!

[1]: https://ripple.com/knowledge_center/gateway-information/

comment 11y ago · link · parent

This is familiar to programmers who are used to pointers or references. (Java's `final` does the same thing).

To prevent changes to an object's properties, you could use `Object.freeze()` instead [1]. NB, this is shallow, so a child object of a frozen object can still have its properties changed.

[1]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...

13.

Animals, plotted by Intelligence and Tastiness(mdaniels.com ↗)

1 points · by iamdanfox · 11y ago · 1 comment

comment 11y ago · link · parent

A women-in-business non-profit found that Fortune 500 companies with most women board members consistently outperformed those with fewest [1].

Market forces should therefore cause the numbers of women board members to increase accordingly, however, "change has occurred at a sluggish pace" [2].

The 40% EU objective stipulates that "qualification and merit will remain the key criteria" and will hopefully challenge unconscious biases that may be behind the sluggish progress [3].

[1]: http://www.catalyst.org/knowledge/bottom-line-corporate-perf...

[2]: http://www.ey.com/US/en/Newsroom/News-releases/Women-are-joi...

[3]: http://europa.eu/rapid/press-release_IP-12-1205_en.htm

comment 11y ago · link · parent

I would hesitate to make primary schools kids learn 'coding' because personally, I find the underlying problem solving more inspiring than learning syntax.

FIRST Lego League [1] offers a compelling alternative though. I competed in FLL with a team of other primary school kids and greatly enjoyed designing a robot (with motors and sensors) and then programming it to solve tasks using a drag and drop language. Each member of our team could focus on the part they enjoyed most rather than everyone sitting in front of the computer.

"FLL challenges kids to think like scientists and engineers" and has a glamorous 'World Final' event that is honestly the coolest thing in the world when you're 11.

[1]: http://firstlegoleague.theiet.org/

comment 11y ago · link · parent

Otto Lindberg did exactly this to for a whole town in the 1930s!

Amazingly, the fake town (called 'Agloe') "became real — and then, strangely, undid itself and became a fantasy again" [1]

[1] http://www.npr.org/blogs/krulwich/2014/03/18/290236647/an-im...

comment 11y ago · link · parent

I bet there would be a psychological impact. People would curtail their usage and frantically switch antennas on and off, resulting in an overall poor experience.

Perhaps having a big allowance in mind just encourages people to use their data!

comment 11y ago · link · parent

I often have to manually disconnect from a slow wifi connection and switch to 4G. Project Fi doing it automatically looks great!

Those tariffs seem pretty steep though - I'm getting 3GB of 4G data for £15 a month [1]. Is $50/mo normal in the states?

[1]: https://giffgaff.com/goodybags-4g

comment 11y ago · link · parent

Will this be the first spacecraft mounted laser weapon?

> "we plan to install a full-scale version on the ISS, incorporating a three-meter telescope and a laser with 10,000 fibers, giving it the ability to deorbit debris with a range of approximately 100 kilometers".

comment 11y ago · link · parent

Having used both, I personally prefer Strava. I've found it far better at motivating me to run. You can compare your performance against other runners along pre-defined segments (e.g. some hill you regularly run). The two people I've recommended Strava to are now hooked.

Their engineers make cool side projects [1] and release interesting new features regularly.

[1] http://labs.strava.com/heatmap/

21.

Experiments with Rust and Emscripten(github.com ↗)

3 points · by iamdanfox · 11y ago · discuss

comment 11y ago · link · parent

From http://www.apple.com/uk/macbook/specs/

  Supported scaled resolutions:
   - 1440x900
   - 1280x800
   - 1024x640
I think the screen will probably be ok.

comment 11y ago · link · parent

Android compatibility looks feasible since the kit will be open source [1]. That should open up the ResearchKit demographic quite a bit!

[1]: https://developer.apple.com/researchkit/

24.

Google Web Fonts on GitHub(github.com ↗)

68 points · by iamdanfox · 11y ago · 7 comments

comment 11y ago · link · parent

It seems you can bypass the WSJ paywall by Googling the article name:

https://www.google.co.uk/search?q=Google+confirms+plans+to+o...

comment 11y ago · link · parent

I've greatly enjoyed writing CoffeeScript, but am concerned that over the long term, it will fall behind javascript in terms of feature support.

The [Babel][1] transpiler (formerly 6to5) and tooling like Facebook's typechecker, [flow][2] have large teams and a rapid pace of development.

I don't want to miss out on cool features like generators, let/const, etc just for CoffeeScript's lovely bracket-less code.

[1]: https://babeljs.io/ [2]: http://flowtype.org/

comment 11y ago · link · parent

I'm not sure if this is what you meant by 'architecture', but Paul Graham [1] describes writing the first version of HN in a dialect of Lisp called 'Arc' [2].

An old version of the code appears to be available on GitHub [3].

[1]: http://www.paulgraham.com/hackernews.html [2]: https://en.wikipedia.org/wiki/Arc_(programming_language) [3]: https://github.com/wting/hackernews

comment 11y ago · link · parent

Completely agree - speeding up only really works with certain accents and presenting styles.

comment 11y ago · link · parent

If you have to watch a video though, try increasing the playback speed (it's in the little settings gear on the YouTube player).

I normally listen for a few minutes at double speed, then drop down to 1.5 if necessary.

123