Edd Michira (@EddMichira) profile picture

Software Engineer: @axxis_systems Building: https://nitter.gq/t.co/LjYZZhmUXy Porfolio: https://nitter.gq/t.co/JOTapgCggn

Nairobi, Kenya
Joined September 2022
Photo by Edd Michira (@EddMichira)Photo by Edd Michira (@EddMichira)
There is software engineering and then there is this.... what should we call this? Peeps really going hard out here. Amazing...
I work on a browser rendering engine. I write Rust. No, it's not frontend, backend or systems engineering. I have struggled to explain what I do. So here's my attempt. You know when you write "display: flex" in your CSS and it just works? Someone had to make it work. Here's how a language feature goes from idea to your screen: Someone proposes a new feature in HTML/CSS/JS language. for example a new CSS property or a new way to handle text. A standards body (W3C for CSS, WHATWG for HTML, TC39 for JavaScript) discusses it, debates it, refines it. If it gets accepted, they publish a specification. A document that describes exactly how the feature should behave. Now browser engines (Chrome uses Blink, Firefox uses Gecko, Safari uses WebKit, and there's Servo which is written in Rust) need to actually implement it. Someone reads the spec, writes the code in the engine that says "when you encounter this property, here's how to calculate it, here's how to lay it out, here's how to paint it." Then it gets tested against thousands of web platform tests. Then it ships in a browser release. Then you install a browser update. Then you write that CSS property in your project. Then your users see it render correctly on their screen. That middle step, turning the specification into working code inside the engine, that's what I do. These days I am working on making sure one is able to debug things in Servo DevTools!
96
If you are using 'var' to declare variables in JavaScript, it is highly recommended you abandon it and use 'let' instead.
1
1
141
Interesting
The woman who heals what doctors can't: Barbara O’Neill. This 71-year-old naturopath says true healing comes from nature, not drugs. Here are her 9 essential laws for optimal health and longevity:
180
Important notes in optimizing your react application.
Replying to @maybeshalinii
1. Avoid Inline Functions and Objects - Use Callbacks: Define functions outside the render method to avoid creating new instances on every render. - Memoize Objects: Use useMemo to memoize objects and arrays. 2. Efficient State Management - Local State: Keep state as local as possible to reduce the number of components that need to re-render. - State Structure: Avoid deeply nested state objects. Flatten state to minimize complexity and improve performance. - UseReducer Hook: For complex state logic, consider using the useReducer hook instead of multiple useState calls. 3. Avoid Reconciliation Issues - Avoid Object Mutation: Ensure state is immutable by using methods like map, filter, and spread operator to create new objects/arrays. - Component Keys: Ensure stable keys for components within lists to avoid unwanted re-renders or component state loss. 4. Optimize External Dependencies - Bundle Optimization: Use tools like Webpack to optimize the bundle size by tree shaking and code splitting. - Library Size: Avoid importing entire libraries when only specific functions are needed. Use tools like babel-plugin-lodash to cherry-pick imports. 5. Lazy Loading and Code Splitting - React.lazy: Use React.lazy and Suspense to dynamically import components, which splits your code into smaller bundles. - React.Suspense: Wrap the lazy-loaded component with Suspense and provide a fallback
73
I'm building better experiences with @cloudinary image and video APIs! Whether building websites or native apps, see how you can deliver more value below. cloudinary.com/invites/lpov9…
56
Chatgpt uses @auth0 for authentication. Amazing😎
38
Hi @Safaricom_Care , I wrongly sent ksh10,000 to a wrong number. requested for a reversal and got only ksh53!!. when I try to resend the message, they tell me it has been successfully reversed.!
1
83
If you are a web developer and used vanilla HTML, CSS, and JavaScript and transition to using frameworks like Vue, Angular, and libraries like React there is a very big game change. I prefer React because of its speed enabled by React query cache and virtual DOM.#Coding
1
62
Do you remember when you joined X? I do! #MyXAnniversary
65
If you use Postman to test your API calls, there is an alternative. You can install this extension called thunder client in your visual studio code. In the example below I am using express js, prisma, and node js to send data to a mongo db database. After I created the REST API,
1
1
249
Consider using a switch case over if else. This is due to the compiler's ability to optimize the switch statement. In the case of if-else-if, the code must process each if statement in the order determined by the programmer.
1
36
However, because each case within a switch statement does not rely on earlier cases, the compiler is able to use branch tables to provide the fastest execution. #SoftwareEngineering #coding #codinglife #softwaredevelopment
34