Advertisement ยท 728 ร— 90

Posts by Darshan Parajuli

What a day. I truly enjoyed working with some of the most talented people and will miss that part. It was awesome while it lasted.

1 month ago 7 1 0 0

To my former colleagues who have been treated so shockingly badly today and for the last few months: Square/Block was the best job I ever had, with many of the best people I ever worked with. None of you deserve to be dicked around like this.

It's not you, it's Jack.

1 month ago 29 3 2 0

Casey Muratori pretty much sums up how I feel about LLMs for coding:

"The AI will always be useless for me. I physically can't get what I want from programming when AI is involved, because what it is doing is robbing me of the experience that I wanted to have and the knowledge that I wanted to get"

7 months ago 38 11 5 0
Post image

I think it may be related to string locales not getting applied correctly. I changed the language to something else and switched back to English, and now it looks fine.

9 months ago 1 0 0 0

huh! my device and OS are the same. maybe I got the defective OTA update build.

9 months ago 0 0 1 0
Post image Post image

Why does "Wi-Fi" on notification quick settings have an underscore instead of a hyphen? It's spelled with a hyphen in other places. Weird. #android

9 months ago 1 0 1 1
Post image

It takes 10 DAYS to update a column on a database row somewhere with my phone number?!! bruh...

1 year ago 2 0 0 0
Advertisement

It'd be nice if Android added a "clear all cache" button that deletes the cache for all apps.

1 year ago 1 0 0 0
Post image

PG&E's password reset page... ๐Ÿคฆโ€โ™‚๏ธ #webdev

1 year ago 1 0 0 0

I still remember watching your talk on RelativeLayout in the early stages of my android dev journey. Thank you for your work on Android and awesome talks! Good luck on what's next!

1 year ago 3 0 0 0
Android Startup Sync - IntelliJ IDEs Plugin | Marketplace Small plugin that disables Android Studio sync on project loads.

Tired of opening Android Studio and then immediately stopping the Gradle sync that auto started? If so, I built an IDE plugin just for you!

plugins.jetbrains.com/plugin/26522...

1 year ago 6 2 0 0

Then it likely would've only closed that ad on the target app XD

1 year ago 1 0 0 0

I have noticed poor handling of the system's back press button so often that I wouldn't be surprised if pressing back on an app took me back in time.

1 year ago 2 0 1 0

one slice to rule them all!

1 year ago 2 0 0 0

We DO NOT throw perfectly good food away in this house.

We put leftovers in a Tupperware & let it go bad, THEN throw it out!

1 year ago 31885 2646 1269 315
You Are Going to Need It Optimizing code can be a difficult task because there are so many traps you need to avoid at every step of the way. Today I want to focus on one of the (numerous) benchmarking traps, which you may hav...

Benchmarking can be tricky! In this blog post, I show an example of how easy it is to get the wrong results and how to fix it: www.romainguy.dev/posts/2024/y...

1 year ago 71 26 2 2

Ahh, right, duh! thanks!

1 year ago 0 0 0 0
Advertisement

Is it because the compiler is smart enough to generate "and" op or something to do this? just curious.

1 year ago 0 0 1 0

Who else is doing #AdventOfCode this year? My goal to finish this year's AoC before 2025 one lol.

1 year ago 2 0 0 0

Two Kotlin functions that take 2 float parameters a and b. Each function returns a divided by b if b is not 0, or a constant called DefaultValue otherwise. The first function does so using takeIf, let, and the "elvis" operator. The second function uses a simple if/else statement.

Two Kotlin functions that take 2 float parameters a and b. Each function returns a divided by b if b is not 0, or a constant called DefaultValue otherwise. The first function does so using takeIf, let, and the "elvis" operator. The second function uses a simple if/else statement.

I love Kotlin but please don't abuse its features. I regularly see code like in the first function when you can instead write a simple if statement: it's shorter, easier to read, and doesn't allocate an object!

Thankfully both functions compile to the same assembly when R8 is turned on.

1 year ago 141 33 11 5
Preview
GitHub - darshanparajuli/git-wait: A simple git wrapper that waits until index.lock file is removed when present before running the command. A simple git wrapper that waits until index.lock file is removed when present before running the command. - darshanparajuli/git-wait

I hate "index.lock file exists" error when running git commands, so wrote this tiny wrapper that automatically waits until index.lock file disappears. There are obviously many ways to do this, but writing in #rust seemed the most fun.

1 year ago 6 1 0 0

@tornorbye.bsky.social and I were just discussing one of his new lint checks, and it reminded me that Kotlin lambdas can lead to boxing of primitive types if you're not careful. A non-inline function that takes a lambda will compile down to the generic Function* types and your primitives will box.

1 year ago 29 3 1 0

๐Ÿ‘‹ I made a starter pack of past & present Android engs from Block (Square, CashApp..)

Ask us what we think about fragments ๐Ÿ˜œ

If you want to be in this lost, you know what to do ๐Ÿ˜˜ block.xyz/careers/jobs...

#AndroidDev

go.bsky.app/SLiJNP5

1 year ago 52 21 8 1

My kid liked playing with the buttons for a while. He was able to get the led to light up with no help, then slowly lost interest. I haven't seen him reach for it in a while.

1 year ago 0 0 1 0

I got my kid Computer Engineering for Babies which is an interactive book showcasing basic gates and circuits.

1 year ago 1 0 1 0

Colors can be a confusing for developers who haven't spent time understanding the (deep) topic of color management. The main misunderstanding is see is that the values of an RGB triplets are absolute. They are in fact *relative*.

1 year ago 54 16 3 1

Hello, world!

1 year ago 5 0 0 0
Advertisement