HNHacker News
TopNewBestAskShowJobs

aclatuts

188 karma · joined November 26, 2015

submissionscomments
aclatuts··on Technical debt as a lack of understanding
I just though of another analogy.

Software development is like a city planner with unlimited space.

The developers are also the construction workers that use cranes, trucks, and tools to build the buildings. But the problem is that they don't have time and leave a lot of equipment behind. Now there are finished buildings with cranes still assembled, cement trucks parked in the middle of the road, piles of dirt on the ground, and scaffolding everywhere.

Luckily space is unlimited so the developers build cat walks, helicopter pads, and bridges over obstructions. If city planners have a lot on their plate without random construction equipment laying around, imagine how hard it would be if they worked knowing construction a lot gets left behind.

aclatuts··on Agrivoltaics: Save solar plant land costs with sheep and agriculture
It costs money to transport the sheep, provide care, farmer pay, and housing for the sheep. The sheep don't stay on site continuously.

What I wonder is why don't they seed plants that don't grow high? Like clovers or something and use bee keeping as an additional source of income.

aclatuts··on Hiring Without Whiteboards
This is also a fair point. I usually do bad on white board coding. But I really enjoyed a white board interview that only tested my knowledge of javascript. The problem didn't require 3 paragraphs of explanation and examples. The interview involved a series of 1-2 sentence requirements that built on top of each other.
aclatuts··on Show HN: Map33.js – a library to build 3D maps with Three.js
Anyone wanting a more mature library for 3d maps, https://deck.gl/ is pretty good and made by Uber.
aclatuts··on My dad got scammed for $3k worth of gift cards
I feel like it would help a lot to require cashiers or gift cards give warnings, something like, "gift cards should be bought for people you know and not as payment." Sort of like the "Don't drink and drive" at liquor stores.

There are no legitimate businesses that take gift card payments. Even trading/buying gift cards locally is risky because one could take a picture of the gift card and use the code before the buyer.

aclatuts··on Why we have so many problems with our teeth
I'm not sure if this is exactly the same but you can buy modified bacteria supplements for your teeth. Its hard to tell how effective any of these products are.

https://www.amazon.ca/gp/product/B018PZ641K/ref=ppx_yo_dt_b_...

aclatuts··on Laptop OEMs – make a proper high-end AMD laptop
The Asus ROG Zephyrus G14 pretty much has all this. David Lee even has a raving review about the Zephyrus.

https://www.youtube.com/watch?v=_v5IzvVTw7A

aclatuts··on What are those grids of glass in the sidewalk and why are they purple?
I always thought it would be interesting to build vertical greenhouses with something like this, in the floors or walls, siphoning natural light between the floors
aclatuts··on Psychological Characteristics of Romance Scam Victims (2018)
I think an explanation is that less kind are motivated to have more sway over this hypothetical person for more love/attention. They might see this gesture as a shortcut to avoid the need to have knowledge, effort, or the emotional intelligence needed to form or retain a relationship.

Similar to how Nigerian prince scams appeal to people by offering lots of money in exchange for disproportionately small amounts of effort and money.

aclatuts··on InNative: Run WebAssembly Outside the Sandbox at 95% Native Speed
It is nice in development to have bcrypt, openssl, etc for other languages without a build step and build tools
aclatuts··on On the Road to WebRTC 1.0, Including VP8
This isn't as useful if webviews in iOS don't have the same apis enabled.

It is very annoying that other browsers on iOS probably wont have access to these features and updates.

aclatuts··on Service Workers
I think service workers are the biggest foot gun to web development. There are so many issues you bring to the table just to have offline capability.

First you have to design a service worker that can intelligently download new updates to your app, relay to the user there is a new version, and you have to make sure you support changing apis as clients can be using the old versions of an app for a long time.

You have to design self destruct logic because your service worker itself can have bugs and break your app. In addition your self destruct logic can break.

You also have to make sure you service worker does not infinitely cache an old version of you app, because it will never expire without correct logic. You cant just assume to download higher version numbers, some times you want to revert to an older version of your app.

aclatuts··on Ask HN: Were you happy moving your API from REST to GraphQL?
I've been building a GraphQL only product for 1.5 years now. It was also the best scenario for graphQL because we were also rewriting an entire app from scratch.

For some background info this app has a huge feature set, low traffic, B2B, and at most 2 developers working on this app for about 1 year.

For the technical side I chose typescript from the back end and front end (Angular). This mean I could use the same typings from our ORM mongoose.

Very early on I was able to pick tooling that ending up being cutting edge compared to any other tool in any language, namely the tools where graphql-compose, grapqhl-compose-mongoose, and graphql-code-generator. In addition GraphQL lent itself pretty well to dependency injection on the server side.

It took about 6 months to get fully proficient, but it was completely worth it being able to use the same types for the front end and back end. GraphQL even made it possible to bootstrap types from mongoose into the server. A lot of time when dealing with 3rd party services I could copy the docs and turn it into types for the resolvers.

The biggest single benefit of it all was side stepping the middleware of Express. I didn't realize how awful express middleware are, because you can't really control the middleware chain very well. But the library with graphql-compose made chaining resolvers extremely precise, which was important.

Overall I love working with GraphQL but I realize that I probably could have done just as well with rest if the backend has decent middleware chaining i.e not express. For performance there is lots of options that are often built in like client caching, batched queries, whitelist queries, and persisted queries. It worked pretty well in a PWA too.

tl;dr

pros

- types everywhere!

- following the logic of any resolver is usually pretty straightforward.

- true middleware

- learned how to make good rest frameworks in the future.

cons

- hugely steep learning curve

aclatuts··on Facebook is banning all ads promoting cryptocurrencies
Do you have any examples of these types of blockers? I couldn't find any.
aclatuts··on Why aren't PGP and SSH keys popular as a second factor for authentication?
I think a public key is just as identifiable as a phone number and just as prone to data collection anything else. Although in this scenario it would be easier for the security conscious , to have multiple private keys.
aclatuts··on Ask HN: Why is Azure so expensive?
Azure/Google is definitely more expensive but that is probably because they don't treat their employees like crap. https://news.ycombinator.com/item?id=10065243
aclatuts··on Backblaze's B2 Cloud Storage is now in open beta
Looks great. Is there possibility to host static web files with this?
aclatuts··on Ava – Asynchronous test runner
You should use a task runner there are libraries for gulp and grunt.

https://github.com/sindresorhus/gulp-ava https://github.com/sindresorhus/grunt-ava

← PreviousPage 3 of 3