Dinesh Hyaunmikha (@dnes100) profile picture
Bhaktapur, Nepal
Joined October 2011
Photo by Dinesh Hyaunmikha (@dnes100)Photo by Dinesh Hyaunmikha (@dnes100)Photo by Dinesh Hyaunmikha (@dnes100)Photo by Dinesh Hyaunmikha (@dnes100)
Dinesh Hyaunmikha retweeted
part of your job as a swe now is to scroll twitter
207
774
168
12,049
382,935
Dinesh Hyaunmikha retweeted
People seem shocked that the author of Clean Code doesn't read code anymore. But that should not be surprising. Why did I write Clean Code? What is the goal of keeping code clean? To get it out of the way of the real job -- thinking.
257
690
151
7,980
1,158,970
Dinesh Hyaunmikha retweeted
We have almost doubled our forest area, conserved our wildlife, are close to being carbon negative, have almost 100% renewable electricity, and are already shifting to EVs. We haven’t exploited nature like many others have. Yet every year, we are among the victims of global warming.
34
268
12
1,809
48,815
Dinesh Hyaunmikha retweeted
***विशेष सूचना*** बाढी पुनः आउन सक्ने सूचना प्राप्त भएको छ। NDRRMA का एक अधिकारी सँग चिनिया पक्षले दिएको जानकारी अनुसार फुटेको भनिएको हिमतालमा अझै ७ मि अग्लो ड्याम (पानी थुनिएर बनेको) जुनसुकै बेला फुट्न सक्ने भएकोले तटीय क्षेत्रमा जान, राहत उद्धारमा खटिएका सबैले विशेष सावधानी अपनाउन भनिएको छ ।
2
328
28
659
245,843
Dinesh Hyaunmikha retweeted
It is hard to communicate how much programming has changed due to AI in the last 2 months: not gradually and over time in the "progress as usual" way, but specifically this last December. There are a number of asterisks but imo coding agents basically didn’t work before December and basically work since - the models have significantly higher quality, long-term coherence and tenacity and they can power through large and long tasks, well past enough that it is extremely disruptive to the default programming workflow. Just to give an example, over the weekend I was building a local video analysis dashboard for the cameras of my home so I wrote: “Here is the local IP and username/password of my DGX Spark. Log in, set up ssh keys, set up vLLM, download and bench Qwen3-VL, set up a server endpoint to inference videos, a basic web ui dashboard, test everything, set it up with systemd, record memory notes for yourself and write up a markdown report for me”. The agent went off for ~30 minutes, ran into multiple issues, researched solutions online, resolved them one by one, wrote the code, tested it, debugged it, set up the services, and came back with the report and it was just done. I didn’t touch anything. All of this could easily have been a weekend project just 3 months ago but today it’s something you kick off and forget about for 30 minutes. As a result, programming is becoming unrecognizable. You’re not typing computer code into an editor like the way things were since computers were invented, that era is over. You're spinning up AI agents, giving them tasks *in English* and managing and reviewing their work in parallel. The biggest prize is in figuring out how you can keep ascending the layers of abstraction to set up long-running orchestrator Claws with all of the right tools, memory and instructions that productively manage multiple parallel Code instances for you. The leverage achievable via top tier "agentic engineering" feels very high right now. It’s not perfect, it needs high-level direction, judgement, taste, oversight, iteration and hints and ideas. It works a lot better in some scenarios than others (e.g. especially for tasks that are well-specified and where you can verify/test functionality). The key is to build intuition to decompose the task just right to hand off the parts that work and help out around the edges. But imo, this is nowhere near "business as usual" time in software.
1,587
4,628
1,113
36,742
5,181,935
Dinesh Hyaunmikha retweeted
Seems like Ruby is pretty well positioned as a language that is token-efficient when used with LLMs. Source "Which programming languages are most token-efficient?" by Martin Alderson martinalderson.com/posts/whi…
47
89
50
407
231,672
Ruby gotcha: a=1, b=2, c=3 variables b and c assignments would be as expected, but a would be an array! b => 2 c => 3 a => [1, 2, 3] It turns out comma has height precedence than assignment and is evaluated as a = (1, b=2, c= 3) a = (1, 2, 3) a = 1,2,3 same as a = [1,2,3]
25
Dinesh Hyaunmikha retweeted
देशमा यति धेरै युबाहरुले ज्यान गुमाए, त्यो केवल यहि कहिलै बहुमत नआउने निर्वाचनको लागि मात्र रहेछ। दु:ख लाग्यो।
3
27
1,656
Dinesh Hyaunmikha retweeted
Dear International Media. Today’s demonstration is not against SOCIAL MEDIA BANNED it’s against CORRUPTION, it’s against CORRUPTED POLITICIANS - #internationalmedia #NEPAL
13
527
13
1,237
43,131
Dinesh Hyaunmikha retweeted
Notes from Rails World 2024 Opening Keynote by @dhh: Fighting Complexity in the Web - Rails 8 has been released - Rails has been trying to follow the latest programming trends, but DHH was never satisfied with this approach - Rails 7 and the introduction of ES6, HTTP2, and Importmaps brought back excitement - DHH's work on HEY made him realize that the whole industry's approach was flawed - Rails doesn't have to accept conventional rules The #NOBUILD Approach - HEY went 100% #NOBUILD (CSS and JS served directly to the browser as written) - For 20 years, people claimed Rails doesn't scale - @tobi proved them wrong: Shopify serves 1 million req/s in 2023 - JS minification has hindered the web as a learning platform, saving only 2-5% overhead - We owe it to the open web to allow view source Simplicity and Progress - DHH composes a haiku to honor Matz: "Progress is our path, complexity builds the bridge, simplicity waits." - Complexity is necessary for progress, but simplicity is the end goal - Rails 7 ethos: rely on the browser - Browser compatibility: { safari: 17.2, chrome: 120, firefox: 121, opera: 106, ie: false } - The goal is to optimize for our limited "monkey brains" - Rails aims to compress the complexity of modern web apps Deployments: From HELLO WORLD to IPO Current State of Deployments - The industry has cultivated a fear of server management - AWS solved a specific problem for Amazon's extreme usage spikes - Most developers don't need such complex solutions Cost Comparison - Heroku's Performance M (1 core/2 threads/2.5GB RAM/$250 mo) vs. Hetzner hobby box (48 cores/96 threads/256GB RAM/$220 mo) - DHH criticizes the markup on services like Vercel (AWS +500% markup) The Need for "Generics" in Deployment - DHH draws parallels to medical patents expiring after 20 years - Calls for open-source alternatives to expensive PaaS solutions Rails 8 Mission: NoBuild, NoPaaS - Rails aims to eliminate the need for commercial vendors for production deployment - The main path: deploy your application to any hardware of your choice Learning Linux - OMAKUB - DHH's favorite Linux environment - Emphasizes the importance of basic security measures (e.g., denying password authentication with SSH) Rails 8 Features Authentication - Rails 8 will generate authentication code instead of using Devise - The generated code is extracted from 37signals' applications Propshaft - Replaces the outdated ACID pipeline - Simpler to understand compared to Sprockets - Designed for modern browsers, allowing direct code shipment to users Database Innovations - Introduction of "solid" adapters: solid_cable, solid_cache, solid_queue - All run from "One Ring" - a single database system (SQLite) Solid Cable - Database-backed adapter for Action Cable - Eliminates the need for Redis Solid Cache - Born out of Basecamp's needs - Supports 10TB of caching stored for 60 days with a 96% hit rate - Supports encryption, built on top of Active Record Solid Queue - Highly performant job processing system - Works with all 3 major DBs - Supports recurring jobs - Processes 20M jobs per day on HEY Thruster - Aims to eliminate the need for nginx and other proxies - Provides X-Sendfile acceleration, Cache-Control, and GZip compression - Written in Go, capable of 60,000 RPS on a laptop Kamal 2 - Deployment tool for Rails applications - Features Auto SSL through Let's Encrypt - Allows running multiple applications on a single server - Includes a new proxy written in Go Future Plans Rails 8.1 - Action Notifier: new framework for web push notifications - Active Record Search: alternative to Elastic Search - Action Text with markdown support (codenamed "House MD") Kamal 2.1 - Ongoing improvements to the deployment tool Conclusion - Rails 8 provides #NOBUILD and #NOPAAS solutions - First beta of Rails 8 released on the day of the talk - Kamal 2, Solid Queue, and other features are now live
5
97
16
558
66,436
Dinesh Hyaunmikha retweeted
I wrote myself a Vim cheat sheet for the basic magic:
51
132
14
1,831
112,249
We’re glad to announce the venue and associate partner for Barcamp Kathmandu 2024: St Xavier’s College, Maitighar, Kathmandu Registration opening soon. Stay tuned! 🏕️ #BarCampKtm #BarCampKtm24
2
3
149
🚨 We are organizing BarCamp Kathmandu on Sept 28 2024 A BarCamp is an unconference - an open, participatory event where everyone is welcome to share and learn. It’s a great opportunity to connect with like-minded individuals, share ideas, and gain new insights.
1
8
3
6
1,170
Dinesh Hyaunmikha retweeted
Ruby and Rails have several features to make your code more performant using async programming. Here’s a list of these tools and how to use them. thoughtbot.com/blog/async-ru…
9
50
5,084
Dinesh Hyaunmikha retweeted
The next rails version will have a bit more helpful logs by printing how many queries were made during the action execution (github.com/rails/rails/pull/…). This can help to easily identify if the fix for N+1 works, or if caching works, or if the # of queries has been reduced, etc. 🤌
5
19
2
164
5,630
Dinesh Hyaunmikha retweeted
The Rails error reporting interface makes it possible to have a minimal error tracker built right into your application. Introducing Solid Errors! It is a DB-based, app-internal exception tracker for Rails applications. fractaledmind.github.io/2024…
23
42
4
282
33,618
Dinesh Hyaunmikha retweeted
After years in #Ruby, I'm still fascinated by the flexibility, simplicity, and power of `IRB` and `rails console`. Even with better IDEs, I prefer using IRB or Rails console to explore code. Let's find a method's source code using IRB.
8
18
1
161
18,473
Dinesh Hyaunmikha retweeted
Performance tip: If your application is slow to boot, use bumbler (github.com/nevir/Bumbler) to easily find out why. I found an unnecessary HTTP call in the initializer, 4 similar debug gems, and a heavy unused gem and sped up the boot time of a large app by 2x🔥by removing them.
1
21
134
10,101