Better HN
topnewbestaskshowjobs
Log inSign up

cris-ward

75 karma · joined Apr 25, 2016 (10y ago) · 19 submissions

Submissions

comment 2y ago · link · parent

I think they meant Jodrell Bank,a radio telescope with an astronomy based visitors centre in Cheshire in the uk

https://www.jodrellbank.net/

comment 2y ago · link · parent

Douglas Adam’s electric monk?

comment 3y ago · link · parent

Cyberpunk also has the red pill / blue pill and deja vu cat from the matrix.

comment 3y ago · link · parent

For web apps, chrome has a throttling tool in the dev tools. Not sure how sophisticated it is, but I've used occasionally to recreate bugs only noticed by clients on slower connections.

comment 3y ago · link · parent

Not forgetting Noah Webster - https://en.wikipedia.org/wiki/Webster%27s_Dictionary#Noah_We...

comment 3y ago · link · parent

As a designer + developer, it always frustrates me to see a design not translated into code well. If this is built using css, there really aren't any excuses for not making this look as slick as the visuals. Especially when the design doesn't appear to contain anything which looks especially difficult to recreate.

It's difficult to overemphasise how much this kind of thing gives users of your software confidence. The common assumption is, if it looks good, it works well (and the opposite).

comment 4y ago · link · parent

From someone who briefly used 'bower', which was JS dependency management using git, relying on git is a lot worse.

Github repos can vanish, NPM will only let repos be deleted if they have no direct dependencies also on NPM. So you have some guarantees your dependencies wont vanish.

comment 5y ago · link · parent

Word of warning, their readme says 'Some of its APIs are not "finalized" and will have breaking changes over time as we discover better solutions.'

I started using this library several years ago and have eventually had to rework it using prosemirror because I just couldn't keep up with the breaking changes.

Both libraries work in very similar ways, with slate using React for its rendering layer. However Prosemirror has been v1 for quite a while and in retrospect I'd have saved myself a lot of headaches if I'd taken the above warning more seriously.

comment 5y ago · link · parent

https://www.vimeo.com/ too, including their api.

comment 6y ago · link · parent

Actually it also works in IE11, as it should. Flex does work in IE11 with some known bugs - https://caniuse.com/#search=display%20flex

comment 6y ago · link · parent

I've been using matter.js to help encourage my kids to learn to program in light of the recent school closure here in the UK.

Excellent resource that gives you interesting instant feedback. Reminds me of learning Basic in the 80's.

comment 7y ago · link · parent

Hope they haven't got rid of the killer feature - the offline dinosaur game.

comment 8y ago · link · parent

Looks like other people agree. https://news.ycombinator.com/item?id=17927972

comment 8y ago · link · parent

They've removed `www.` from website url's in the address bar. Actually knowing if I'm on the www subdomain can be very useful, especially as a web developer checking if domains have been setup correctly.

Reminds me of when windows started to hide file extensions by default.

comment 9y ago · link · parent

Getting acceptance was much easier than I expected. We used coffee-script a lot before which has a bit of an overlap with Ruby/Crystal, which helped.

We've since moved to using typescript on the front-end and crystal on the back end and both type systems have a lot of similarities. They both also help catch many more errors earlier which gives us a lot more confidence in our code and simplifies the scope of tests which are needed. You can get to a point with a javascript application when you feel you'll create a new bug just by looking at the wrong way.

Crystal as a languages feels really cool. It's very low on boiler plate, which makes it really easy to read and doesn't take a lot of explaining. It takes the best bits of Ruby, so has a easy to follow logic which allows you to understand how everything hangs together. There is also very easy to get hypnotised by the 3ms response times when you're running it locally.

I'd say the only down points at the moment is the size of the community. The lack of 3rd party libraries and inability to 'google for a solution' could be an issue. However crystal's community makes up for in energy what it lacks in size, the gitter room is very active - https://gitter.im/crystal-lang/crystal

Web dev is not the most complex of programming tasks and our team is small, so your mileage may vary, but so far so good.

comment 9y ago · link · parent

Speed was never a real concern of ours. Node is more than quick enough. The big issues for us are code clarity, runtime errors and memory usage.

We like to run our sites inside docker containers so they're easy to reproduce from dev to live environments. A compiled language like crystal, with it's own standard library and tiny memory footprint means we can, with low traffic sites host more together on a server and keep our clients hosting costs low. With higher traffic sites we can use that saved memory for in-memory caches for high use resources.

As mentioned in the article the cms typically uses < 5mb of Ram. In our development environment that really helps. Running lots of sites locally isn't a problem. Node_modules folder for the node version of our cms is 430mb, vs our crystal shards of 773kb. So disk space isn't an issue either.

Type checking has helped reduce runtime errors, it's hard to compare with the node version as the number of errors is often related to code complexity. But anyone who uses typescript will know that moving from a dynamic to a statically typed language is a real eye opener for how many errors we make as programmers. Unlike Typescript, crystal isn't just pretending to have types so there is no `:any` to cheat the system.

If there are any specific metrics you'd like I'll see what I can come up with. But hopefully that gives you an idea of our motivation and the benefits we get.

comment 9y ago · link · parent

I wrote the article, happy to answer any questions.

comment 9y ago · link · parent

Crystal lang - it's awesome