Gas Optimizations for the Rest of Us
The basics of optimizing Solidity contracts, explained for regular coders.Writing smart contracts is hard. Not only do you get a single chance to write bug-free code, but depending on exactly how you write, it’ll cost your users more or less to interact with it. When you compile a smart contract, every line of Solidity gets converted into a series of operations (called opcodes), which have a set gas cost. Your goal is to write your program using as little opcodes as possible (or replace the m...
Decentralized Comments for Mirror
You can now comment on my Mirror entries! Here’s how I implemented it in a decentralized way.For a while now I’ve been maintaining a custom Mirror client. This allows me to use a custom domain (m1guelpf.blog instead of miguel.mirror.xyz), provide an RSS feed and retain some control over the design. So, when I came across The Convo Space, a “conversation protocol” built on top of IPFS & Libp2p, I decided to try my hand at building a decentralized commenting system for the client.Follow the Con...
Web3 is not a space, but a tool
Brain dump on post-crypto perspective, and re-exploring who I want to be.I learnt to code because I wanted to "build things". For years, I built app after app, not only as a way to learn more and more, but also to bring my ideas to life. I learned how to do frontend, backend, design, even how to do marketing and to PM myself, in a quest to achieve all the skills necessary to create everything I wanted to. To learn enough to be dangerous. Getting into crypto derailed this a little bit, and I f...
22. serial maker, purple-haired dev @worldcoin, core ConstitutionDAO, friendly ambitious nerd.
Gas Optimizations for the Rest of Us
The basics of optimizing Solidity contracts, explained for regular coders.Writing smart contracts is hard. Not only do you get a single chance to write bug-free code, but depending on exactly how you write, it’ll cost your users more or less to interact with it. When you compile a smart contract, every line of Solidity gets converted into a series of operations (called opcodes), which have a set gas cost. Your goal is to write your program using as little opcodes as possible (or replace the m...
Decentralized Comments for Mirror
You can now comment on my Mirror entries! Here’s how I implemented it in a decentralized way.For a while now I’ve been maintaining a custom Mirror client. This allows me to use a custom domain (m1guelpf.blog instead of miguel.mirror.xyz), provide an RSS feed and retain some control over the design. So, when I came across The Convo Space, a “conversation protocol” built on top of IPFS & Libp2p, I decided to try my hand at building a decentralized commenting system for the client.Follow the Con...
Web3 is not a space, but a tool
Brain dump on post-crypto perspective, and re-exploring who I want to be.I learnt to code because I wanted to "build things". For years, I built app after app, not only as a way to learn more and more, but also to bring my ideas to life. I learned how to do frontend, backend, design, even how to do marketing and to PM myself, in a quest to achieve all the skills necessary to create everything I wanted to. To learn enough to be dangerous. Getting into crypto derailed this a little bit, and I f...
22. serial maker, purple-haired dev @worldcoin, core ConstitutionDAO, friendly ambitious nerd.

Subscribe to Miguel Piedrafita

Subscribe to Miguel Piedrafita
Share Dialog
Share Dialog
<100 subscribers
<100 subscribers
Hey! I’m Miguel, and last week I dropped out of university to work on crypto. I’ll be using Mirror to share my crypto journey and talk about projects I work on and things I learn.
Up next, I’ll be publishing about how I built a Mirror client with Next.js (and how you can build apps on top of Mirror), some thoughts on the future of web3 apps and why I think Mirror is one of the most exciting projects on the space, and a look at how “Login with your wallet” flows are implemented.
If this sounds exciting, you can follow me on Twitter to keep up with me and get notified when those posts go live.
See you around!
Hey! I’m Miguel, and last week I dropped out of university to work on crypto. I’ll be using Mirror to share my crypto journey and talk about projects I work on and things I learn.
Up next, I’ll be publishing about how I built a Mirror client with Next.js (and how you can build apps on top of Mirror), some thoughts on the future of web3 apps and why I think Mirror is one of the most exciting projects on the space, and a look at how “Login with your wallet” flows are implemented.
If this sounds exciting, you can follow me on Twitter to keep up with me and get notified when those posts go live.
See you around!
No activity yet