pdr94's comments

pdr94 | 1 year ago | on: Visualize Your SHA-256

Would be cool if you could chose between different hash functions like RIPEMD-256 or some BLAKE variants

pdr94 | 1 year ago | on: Self-Documenting Code

Thank you for this, I had some experience with docstring and self documenting code from python, but having this in Js is pretty good productivity boost <3

pdr94 | 1 year ago | on: Write your first MapReduce program in 20 minutes

The reducer function takes the data returned by the mapper function, which includes the 'Store' and 'Cost' columns, and groups it by 'Store'. It then calculates the maximum 'Cost' for each store, effectively identifying the highest transaction value for each location.

pdr94 | 1 year ago | on: Dbt – Incremental but Incomplete

Great to see dbt finally rolling out microbatch incremental models! It's a much-needed feature and a step forward for data transformation. Excited to see how this evolves and complements tools like SQLMesh. Keep up the good work!

pdr94 | 1 year ago | on: Node.js, Pipes, and Disappearing Bytes

reat investigation! This highlights a crucial aspect of Node.js's asynchronous nature when dealing with pipes. It's a reminder that we should always be mindful of how Node handles I/O operations differently based on the output destination.

The key takeaway is the behavior difference between synchronous (files/TTYs) and asynchronous (pipes) writes in Node.js. This explains why `process.exit()` can lead to truncated output when piping.

For those facing similar issues, remember to handle the `drain` event or use a more robust streaming approach to ensure all data is written before exiting. This post is a valuable resource for debugging similar "mysterious" pipe behavior in Node.js applications.

pdr94 | 1 year ago | on: The quiet art of attention

Just as the author suggests observing the mind's patterns without judgment, we often begin debugging by simply watching the system's behavior, setting breakpoints, and logging outputs. This initial observation phase is crucial for understanding the underlying architecture before making any changes.
page 1