News for hackers. Stuff that matters.

cris-ward

Re:100k Stars on Sunday May 12, 2024 @03:15AM (#40332739)
I think they meant Jodrell Bank,a radio telescope with an astronomy based visitors centre in Cheshire in the uk

https://www.jodrellbank.net/

Re:AI threatens to automate away the clergy on Wednesday November 29, 2023 @11:24AM (#38461432)
Douglas Adam’s electric monk?
Re:Why does the moon change size when you snipe it in GTA? on Wednesday November 22, 2023 @07:08AM (#38378148)
Cyberpunk also has the red pill / blue pill and deja vu cat from the matrix.
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.
Re:What’s New in Thunderbird 115 on Monday July 10, 2023 @07:38AM (#36664955)
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).

Re:Go 1.18 Beta 1 is available, with generics on Wednesday December 15, 2021 @10:37AM (#29567353)
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.

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.

Re:Fastly CDN is down (affecting Reddit, GitHub, SO, ...) on Tuesday June 08, 2021 @06:28AM (#27432924)
https://www.vimeo.com/ too, including their api.
Re:How to Center in CSS (2015) on Tuesday May 19, 2020 @11:28AM (#23235906)
Actually it also works in IE11, as it should. Flex does work in IE11 with some known bugs - https://caniuse.com/#search=display%20flex
Re:Ask HN: What projects are you working on now? on Saturday March 21, 2020 @04:31PM (#22649793)
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.

Hope they haven't got rid of the killer feature - the offline dinosaur game.
Re:New in Chrome 69 on Thursday September 06, 2018 @02:42PM (#17928484)
Looks like other people agree. https://news.ycombinator.com/item?id=17927972
Re:New in Chrome 69 on Thursday September 06, 2018 @08:46AM (#17925812)
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.

Re:Journey from Node to Crystal on Wednesday September 13, 2017 @05:04PM (#15242664)
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.

Re:Journey from Node to Crystal on Wednesday September 13, 2017 @04:35PM (#15242344)
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.

Re:Journey from Node to Crystal on Wednesday September 13, 2017 @02:42PM (#15241292)
I wrote the article, happy to answer any questions.
Re:Ask HN: What are you learning? on Thursday January 19, 2017 @12:03PM (#13437308)
Crystal lang - it's awesome