vitorsilva (@vitorsilva) header
vitorsilva (@vitorsilva) profile picture

living in Porto, working in Ermesinde @samsyscsi, podcasting at https://nitter.cf/t.co/hXQyjVtUN6

Oporto, Portugal
Joined August 2007
Photo by vitorsilva (@vitorsilva)Photo by vitorsilva (@vitorsilva)Photo by vitorsilva (@vitorsilva)Photo by vitorsilva (@vitorsilva)Photo by vitorsilva (@vitorsilva)Photo by vitorsilva (@vitorsilva)Photo by vitorsilva (@vitorsilva)Photo by vitorsilva (@vitorsilva)Photo by vitorsilva (@vitorsilva)Photo by vitorsilva (@vitorsilva)
vitorsilva retweeted
first OpenClaw Porto meetup luma.com/tyysebla
7
9
3
60
3,758
Built hash-based routing for my pwa app. Changing the hash doesn't reload the page. Browser fires hashchange event. Router catches it, destroys old view, renders new one. No server request. Instant navigation. #pwa #WebDev
71
Using UUIDs for primary keys in my react native app SQLite database instead of auto-increment. Lets me generate IDs client-side without coordinating with a server. Perfect for offline-first mobile apps. #reactnative #SQLite
73
Added facade pattern to my pwa app for API switching. All files import from api/index.js. When i switch from mock to real API, i change one line in one file. #pwa #JavaScript – at Oporto, Portugal
47
The onupgradeneeded event in IndexedDB only fires when database version changes. Tried creating object store in onsuccess handler. Silent failure. Moved to onupgradeneeded, worked immediately. #pwa #JavaScript
44
starting a new phase in my react native app, now trying to actually build something instead of just trying to learn new tools and techniques. #reactnative #MobileDev
44
Started learning IndexedDB for my pwa demo app. It's NoSQL—object stores instead of tables. Different mental model from SQL databases. #pwa #WebDev – at Oporto, Portugal
33
CI/CD changed everything in my pwa app demo. Push code, wait 2-3 minutes, get test results. If tests pass on main, site deploys automatically. No manual build, no skipped tests, no "works on my machine" bugs reaching production. #pwa #devjourney #DevOps
35
Four pillars of observability now working in my react native demo app: traces (Jaeger), metrics (Prometheus), logs (Pino with trace correlation), errors (Sentry). See error → grab trace ID → find exact sequence. #reactnative #devjourney
31
Core concept of my abstract image generator: same content always produces same image. Uses seeded rnd number gen and content hash. Word count → density. Character count → complexity. Avg word length → smoothness. Content-driven art. #webdev #devjourney tinyurl.com/mu6nky47 – at Oporto, Portugal
47
Etherscan API V2 requires chainid parameter. Sepolia's chain ID: 11155111. still working and learning on my familychain project. #blockchain #devjourney – at Oporto, Portugal
1
31
Figured out the assets issue in my pwa app demo. Files in public/ folder are copied as-is without hashing. Perfect for service worker, manifest, icons—anything referenced by exact path. Processed assets (JS/CSS) get hashed for cache busting. Clean separation. #pwa #devjourney
61
Managing three Docker containers individually was painful in my react native demo app. Created docker-compose.yml. Now one command starts everything: jaeger, otel-collector, prometheus. One command stops everything. Much better. #reactnative #devjourney #Docker
27
Querying the blockchain in my familychain project. Fetched latest Sepolia block — 72 transactions, 73% gas utilization. #blockchain #devjourney
1
24
Implemented provider pattern for my abstract image generator CLI. BaseProvider interface with getAll(), getById(), count(). Three concrete providers: FileProvider, DirectoryProvider, WordPressProvider. Now i can generate images from any content source. tinyurl.com/y4ybpuz3 – at Oporto, Portugal
45
Started building CLI for my abstract image generator. Challenge: web uses p5.js for canvas rendering, but Node.js can't run p5.js. Solution: dual rendering—visualGenerator.js (p5.js for browser), visualGeneratorNode.js (node-canvas for CLI). Same algorithms. #webdev #devjourney
1
31
Deployed my pwa app demo to GitHub Pages. Site loaded but all assets returned 404. Issue: absolute paths like /assets/main.js work on localhost root but GitHub Pages deploys to /demo-pwa-app/ subdirectory. Fixed with base config in vite. #pwa #devjourney #Vite
24
Realized Jaeger only accepts traces, not metrics. Needed a metrics backend. Decided on Prometheus, but it doesn't accept OTLP format. Solution: OpenTelemetry Collector as middleware. App → OTel Collector → Prometheus. #reactnative #devjourney #Observability
29
Connecting a wallet to Sepolia in my familychain project was harder than expected. Tried six different approaches with Hardhat 3 APIs. None worked. Finally found the pattern: `network.connect()` then `connection.ethers.provider`. #blockchain #devjourney #Hardhat – at Valongo, Portugal
28