Marcella Malune

Daily learning notes. Currently exploring software engineering, artificial intelligence, and society.

React Testing Library getByRole vs. getByText

getByRole() roles are automatically inferred based on ARIA specs, or they can be manually set it's generally preferred because it's more robust, it mirrors more accurately the UX and it tests accessible elements (accessibility tree) the returned objects can be queried by accessible names it's less performant especially in large DOMs -- Resources ByRole | Testing Library (2024). https://testing-library.com/docs/queries/byrole. ARIA in HTML (2025). https://www.w3.org/TR/html-aria/#docconfo...
Read post

Redux Saga, ES6 generators, React Query

Redux Saga is a middleware library to manage side effects 'sagas' are generator functions, saved in the Redux store generator functions are defined with the syntax function* myFunction() {...} and return a generator object generators are iterators that instead of iterating on given data, iterate on computed data (the yielded values) Example of generator function from Flanagan (2020): function* fibonacciSequence() { let x = 0, y = 1; for(;;) { yield y; [x, y] = [y, x+y...
Read post

The Waorani and cultural relativism

The Waorani (or Huaorani) are an indigenous population of the Amazon Rainforest; they were the most feared in Ecuador, often referred to by other peoples as 'Auca', which in Quechua language means 'savage'. The Christian missionary Pete Fleming described them as 'an unreachable people who murder and kill with extreme hatred' (he was later killed by them). Operation Auca was the first peaceful attempt to contact the Waorani, started in October 1955 by exchanging gifts by plane with a bucket hang...
Read post

PIX (Brazilian payment system)

every shop I saw in Brazil had a QR code exposed to receive instant payments through PIX when opening Google Wallet to pay contactless, I was nudged to setup PIX within Google Wallet itself, however a Brazilian bank account is required, so I wasn't able to try it out the system is provided by the Brazilian Central Bank (Banco Central do Brasil) since 2020 transactions work via exchange of encrypted signed messages over a private network institutions must comply with the Brazilian equivalent of ...
Read post

Data Protection

After Brexit, the UK developed its own version of the GDPR (originally created by the European Union) known as UK GDPR 🔐 7 core principles: lawfulness, fairness and transparency: asking for consent; respecting a Privacy Policy; consent might not be necessary if use of data is enforced by law for specific reasons (eg. public or vital interest) purpose limitation: only use the data if necessary and for a specific reason data minimisation: only collect the minimum amount of data needed accuracy:...
Read post