Skip to content

Instantly share code, notes, and snippets.

View F21's full-sized avatar

Francis Chuang F21

View GitHub Profile
@derhuerst
derhuerst / list.md
Last active December 2, 2024 23:10
VPS price & performance comparison

Geekbench 5

product price (incl. VAT) dedic.? cores RAM SSD Geekbench ST Geekbench MT Geekbench version operating system date of benchmark
Hetzner CX11 3,92€/m no 1 2GB 20GB 691/710 686/712 5.x ? 2023-05-20
Hetzner CPX11 4,75€/m no 2 2GB 40GB 869/856 1631/1626 5.x ? 2021-10-03
Hetzner CPX11 4,58€/m no 2 2GB 40GB 1118/1100 2129/[2131](https://browser.geekbench
@sebmarkbage
sebmarkbage / The Rules.md
Last active December 7, 2024 18:30
The Rules of React

The Rules of React

All libraries have subtle rules that you have to follow for them to work well. Often these are implied and undocumented rules that you have to learn as you go. This is an attempt to document the rules of React renders. Ideally a type system could enforce it.

What Functions Are "Pure"?

A number of methods in React are assumed to be "pure".

On classes that's the constructor, getDerivedStateFromProps, shouldComponentUpdate and render.

@addyosmani
addyosmani / route-based-chunking.md
Last active December 28, 2021 06:18
Route-based chunking

Route-based chunking

Many of us building single-page apps today use JavaScript module bundling tools that trend towards a monolithic "bundle.js" file including the full app and vendor code for multiple routes. This means if a user lands on any arbitrary route they need to wait for a large bundle of JS to be fetched, parsed and executed before the application is fully rendered and interactive.

screen shot 2016-09-28 at 4 45 52 pm

This is a little backwards, especially when apps are used under real-world network (3G) and device

@abdullin
abdullin / ddd-in-golang.markdown
Last active October 10, 2023 00:46
DDD in golang

This is my response to an email asking about Domain-Driven Design in golang project.

Thank you for getting in touch. Below you will find my thoughts on how golang works with DDD, changing it. This is merely a perception of how things worked out for us in a single project.

That project has a relatively well-known domain. My colleagues on this project are very knowledgeable, thoughtful and invested in quality design. The story spelled out below is a result of countless hours spent discussing and refining the approach.

Conclusions could be very different, if there was a different project, team or a story-teller.

Short story