Just use lazygit 😇
I genuinely don’t understand who uses GitHub Desktop.
All you need to use git efficiently is just these 28 commands:
git clone
git log
git status
git add .
git add <path>
git diff
git commit -m "Short description"
git commit -am "Short description"
git commit -a --amend
git push
git push -u origin chshersh/branch-name
git switch chshersh/branch-name
git switch -c chshersh/branch-name
git branch -D chshersh/branch-name
git pull --ff-only origin <current-branch>
git fetch origin main
git reset --hard origin/main
git checkout -- .
git rebase origin/main
git rebase -i HEAD~<N>
git rebase --onto
git cherry-pick <hash>
git stash
git stash pop
git stash list
git remote add upstream <url>
git bisect
git reflog
55
Adam retweeted
Here's the Fizzy flipbook video I made showing how the design progressed from initial commit to launch.
Just don’t go in one of those with a black light 😬
This time in Tokyo we experienced the full range of hotels I think, from $40 to $5000/night
We arrived from a long night flight where we barely slept from Singapore and then at our hotel we couldn't get early check in cause it was full (which seems to be the case everywhere you go now in Japan, everything is fully booked, soooooooooooo many tourists, like I never seen this at this level anywhere, not even Thailand or Paris!)
So anyway we were in Shibuya at 7am completely homeless, roaming the streets, eating in 7/11, we walked around and tried to find other hotels to get a room like APA, but they were all full too, entire Shibuya was full!
Then I remembered, Japan has those hourly 🏩 love hotels of course, so I found one, they're kinda camouflaged, you don't really see many signs, just a black wall and some stairs down, then a front desk that has half the wall covered so you can't look the front desk staff in the face (cause shame and privacy)
She didn't speak English and we didn't speak Japanese but she was very helpful though and got us a room until 5pm! Most Japanese are honestly so helpful and sweet trying to get you what you want without much/any English
It was a very compact and a bit old room but very clean. I kept it secret from my gf that it was a love hotel or she would never want to go in 😂👌 she also kept her jacket on thinking it was dirty
My argument for the love hotel being clean was "it's cleaned more than a regular hotel" for that exact reason. And it was REALLY clean to be fair. After convincing gf, she took her bomber jacket off too
I actually slept really good for a few hours
It was 6700 JPY or $40 to stay 7am-5pm, so ~10 hours, not so bad. And the room had everything like soap, tooth brush, comb etc. Probably if we booked days before it could have been much cheaper.
There's something in me that highly prefers these kind of compact functional hotels over luxury hotels, obviously it's the Dutchness in me (we like simple and cheap), but also I've increasingly realized luxury hotels are just facades for chains with shitty service
I feel with compact functional hotels you get what you pay for and things usually just work better (I think because there's higher volume and you have less expectations), very similar to how EasyJet, RyanAir, Air Asia, and JetBlue are low-cost but actually really good airlines
So this trip we experienced both $43 love hotels and $5000/night luxury hotel which was Aman (the quoted tweet below is Aman)
Aman was flawless btw, and I think the best hotel I've ever stayed, we paid for a big suite, and it was a crazy amount of money, and everyone asked me how it was
Well it was what you'd expect from a regular hotel, everything just works, the people are helpful, the AC works and is cold (!!!!!!!), when something goes wrong you call and there's a person at your door instantly to fix it, no need to keep calling, it's like how hotels were before "The Great Enshittification of post-COVID 2020" happened, just excellent!
It says something about hidden inflation that a good luxury hotel where you actually get service you used to get is now $5000/night! Unaffordable but I guess that's how it is now! Don't call me jaded, I'm just the messenger!
Obviously Asia helps, hotels are just much better here than the rest of the world in terms of service
Anyway I hope you like the video tour of our love hotel 😊🏩
1
49
If you want to see the Basecamp approach to building a Rails app, now you can! And for free!
Campfire is now free! An entire chat system to run on your own server. We are running the official #RailsWorld conference chat on it from a mini PC in my literal closet 😄 github.com/basecamp/once-cam…
48
Am I doing "Vibe" coding wrong? Cos I ain't vibing off the vibe.
I'm on the $20 cursor plan which I admit is expecting too much. But just how much money are people spending a month to get these "oh my god AI killed the senior developer" posts I keep seeing.
50
Flashcard app is coming along nicely. Basically I want to be able to add words I come across when reading and then create a card that provides a definition for the word. Words can have multiple definitions depending on the context so its important to pull out the right one.
1
58
The app automatically
1. translates the sentence into hiragana and English.
2. writes out the definition.
3. provides the right way to pronounce the word (pitch accents).
4. provides some general usage info (formal/casual etc).
5. shows other definitions with example sentences.
1
39
Decided to scratch an itch and build my own personal flash card app to learn Japanese. I could have done this in Anki but wanted to brush up on React, Electron and using LLMs.
Even in its basic state, its going to save me soooooo much time on the card creation side of things.
1
147
I don’t think I’ll ever find the perfect balance in test types. It seems like an unsolvable problem that I will constantly yo yo between.
"HEY today has some 300-odd system tests. We're going to cut that number way down. The sunk cost fallacy has kept us running this brittle, cumbersome suite for too long. Time to cut our losses, reduce system tests to a much smaller part of the equation." world.hey.com/dhh/system-tes…
92
In 9 years of writing Ruby code I've never known of this way to interpolate strings into text using the `format` method.
How did I miss this one?
I've only ever used
name = "Adam"
"Hi there #{name}"
Perhaps its just because I've never needed it until now.
Is this captha test by OpenAI for real? I've got to do a puzzle _10_ times?
Get it wrong once and it makes you start all over again.
😡😡😡
83
I'm getting up to speed with Hotwire and building a toy app to create a resume.
One thing I've realised is it's easy to go overboard with Turbo Streams where just using good ole Turbo Drive (TurboLinks) will do the job faster.
E.g.
1
2
114
This is exciting. But what's more interesting is we'll be able to get our hands on the product's source code and see in full the Basecamp way to build software.
SaaS has reigned supreme for long enough. The Church of Recurring Revenue is due a reformation. It’s time for more choices in web software that you buy ONCE and run yourself. Starting late 2023, you’ll see such products available from @37signals. once.com
1
174
As per DHH's reply
xitter.cf/dhh/status/16995518517…
Replying to @marckohlbrugge @37signals
It does. Full source will ship with each purchase. It’ll still be copyrighted, it’ll not be MIT, but it’ll be yours to peruse, modify for personal use, etc ✌️
62
Adam retweeted
CSS Nesting just landed in Firefox 117 which puts it at 100% browser support!
You can start using it today — here are 11 examples on how it works 👇
Adam retweeted
OAuth 2.0 Flows
Authorization Code Flow: The most common OAuth flow. After user authentication, the client receives an authorization code and exchanges it for an access token and refresh token.
Client Credentials Flow: Designed for single-page applications. The access token is returned directly to the client without an intermediate authorization code.
Implicit Code Flow: Designed for single-page applications. The access token is returned directly to the client without an intermediate authorization code.
Resource Owner Password Grant Flow: Allows users to provide their username and password directly to the client, which then exchanges them for an access token.
Over to you - So which one do you think is something that you should use next in your application?
–
Subscribe to our weekly newsletter to get a Free System Design PDF (158 pages): bit.ly/3KCnWXq
Adam retweeted
Pro-tip #PostgreSQL tip, trying to use psql more, but still missing a richer editor when writing SQL? Set your $EDITOR or $PSQL_EDITOR to the editor of your choice. Then use \e to open the last executed SQL in that editor, close and save, it'll execute the query.














