auto-growing <textarea> without JavaScript!
CSS is getting field-sizing: content; to size inputs by their contents.
Dropped in Chrome Canary today, demo here:
Hulu is actually now almost entirely built with @nextjs in TypeScript. Type safety has helped us as our engineering team has grown to hundreds of developers.
removing types from your own code is clownish, epically misguided behaviour, but whatever — to each their own. removing types from a library THAT OTHER PEOPLE HAVE TO USE, however, is just user-hostile dickwaddery
during a code review, if you leave a nit and your nit is fine to be ignored don't leave it
you clutter the pr
you distract from any real issues
your preferences are just that, stfu and make a prettier / eslint / clangformat rule and move on with your day
Not a #golang specific tip, but people often give the advice "the best way to get better at any programming language is to write more programs". This is true at the start, but as you begin to get more comfortable with the language, the best way to improve is to read lots of other people's code too.
Every week for 30 minutes I will find a repo on Github and just read it. I tend to start with the entry point (usually main.go) and look for interesting patterns and ideas to see what I can learn from them.
Here are some of my favourites:
- https://t.co/izZSbYDJzG. This was reference server co-authored by Apple and Google during Covid. The way they use the logger inspired the way I have logged ever since. It also looks very similar to Slog that just got released.
- https://t.co/Abll6PizBg by @matryer. This one is really interesting as its just a completely different way to use go.
- https://t.co/0OUk1bnNgM by @ardanlabs . The ardan Labs folk run a whole course on how to write this service but kindly make it open source and free. It has examples of tracing, logging, profiling and much more. A really great place to learn.
- https://t.co/87WGRC4efY yields incredibly beautiful TUIs, and does some interesting things with Go to achieve it.
- https://t.co/PJipNk2m42 a Frigging gameboy emulator written in Go!
Which repos have you learnt a bunch from?
What repos should I read in the next few weeks? Feel free to share your own :)
It's 2023. You don't always need a whole library or even RegExp to validate email addresses with JavaScript. Instead, create an email input and let the browser handle it natively.
Borel, a typographic system for primary school.
The Borel project by @RosaFF_Wagner is a typographic toolbox which aims to establish a seamless connection between cursive strokes and common typographic structure.
https://t.co/mLBGPIGUo8
Don't think of your runway as how much time you have left but how many iterations you have left. Lowering your iteration cost will multiply your runway.