167
A nice website to learn system design visually:
https://designed-to-scale.vercel.app/
18 nov, 05:39
I post about my insights, new discoveries, projects and advices related to tech mainly and other topics once in a while. You can DM me @abeni_al7 for professional or collaborative queries.
Mostrar más-f, splits on a custom delimiter with -d, and pipes seamlessly with head, tail, and other tools. This project allowed me to appreciate this philosophy.
- Interfaces are amazing when it comes to supporting different sources and also unit testing functions easily. I used io.Reader and io.Writer here, which allowed me to support both files and stdin with the same implementation.
- We need to think in terms of edge cases. The happy path of this project is straightforward. Two things I missed in my first implementation were:
* Files might start with a UTF-8 BOM (Byte Order Mark) that needs stripping.
* Lines shorter than the requested field shouldn't crash the program.
Code: https://github.com/abeni-al7/aben-cut
I have written unit tests and end-to-end tests inside. If you are interested, take a look at it. I highly recommend building such things to keep our technical abilities sharp.
Utilizamos cookies para mejorar tu experiencia de navegación.
Al hacer clic en «Aceptar todo», aceptas la política de uso de cookies.