Joined devRant on 12/19/2017
Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
Hey Kotlin users. Do you use Kotlin for Android, or for non-Android stuff? If both, then answer Android. I'm interested to see how many non Android Kotlin devs we have here.2
Dat animation: open a WhatsApp chat, start recording a voice message, swipe up to lock the recording, cancel the recording and watch what happens.2
What's your favourite Git client and why? Mine is a combination of git and tig in the command line.9
A half answer on SO gives me a pointer to a possible solution. Using that pointer, I actually find an answer and it's quite involved. So to help others with the same question, I edit the answer to complete it with the additional steps. No edits to the answer involved, just a few additional steps.
😡 The answer author comments that they appreciate the info, but they reject my edit so their answer isn't changed!
What a douchebag.3
Cocktail for disaster:
- Averagely well written, testable code
- All tests pass
- One test methods still shows some vague stacktrace in a worker thread ❌ but the test passes ✅
- Run only that test method and no stacktrace.
So I've been pulling my hair for the last two days trying to figure out what was throwing in that test method. Turns out that thanks to the multithreading going on, some other, similar method threw the exception in parallel. And apparently a different test method was already running when the exception was finally caught.
When I discovered that, it was fixed in a minute. 😭1
Want to travel to the future? Release on a Friday. You'll be experiencing your weekend as if it were Monday.1
Not sure where to do a devRant feature request, so I might as well do it here.
It seems a lot of content is uploaded here from other sites, like images / memes that often are funny, dev related and therefore shared. However this leads to reposts and this has also lead to members leaving. That really hurts, and I can imagine that dfox and trogus hate it even more.
I know some repost detection system is/was being developed. I'm proposing a (maybe?) new/different way to help repost detection, while at the same time helping people from getting annoyed on devRant because of reposts.
It's relatively simple:
When you upload an image, you choose:
- I created this image (original content)
- I found this image elsewhere: enter url
I know there are other possibilities, but these two cases cover most.
A rant will then show either "devRant original" or "link to source". This could make devRant a place for content creators to first exhibit their creations.
Furthermore, the rant filter can contain a filter to only show original content. This means that as a user I can choose to not see anything that will be reposted elsewhere anyway and therefore I will see it one way or another somewhere, somehow, someday. But not on devRant, to keep annoyance low for the users that have left in the past because of this reason.
Another measure that can be connected to this is the downvote system. When you downvote because of fake original content being a repost from elsewhere (either devRant or not), you are given the option to enter the url where you saw this first.
I'd like to hear your personal and technical opinion on this matter. Please contribute to this idea for devRant's sake!3
Prank idea: call a colleague's phone and if they don't have your number (you'll notice by the way they talk), they won't know it's you. Then try to convince them they've somehow created a data breach and you have access to their company's source code... 😈
Oh, and if they do have your number just say you accidentally called the wrong person.
0. Go to YouTube
1. Scroll through your home page until you find the first clickbait video
2. Post video title here
Inspired by https://devrant.com/rants/1572726/...5
It's impossibru: I'm doing RxJava + RxKotlin + RxAndroid and I'm understanding it.
My tests pass, at least that's something. It's not yet doing completely what I want, but the hardest part is behind me. 🤩1
So today my company was removing most workspaces with USB 2 connections, DP cables and magsafe 2 power cables. This means that my MBP mid 2014 can't connect to the keyboard and monitors anymore. It already struggled with 4K, so my 2K options were already limited, but now the last few spots are mostly gone. In short: I'm being forced to upgrade.
But tell you what: I don't want to. It feels like a waste to recycle my laptop (even if it's company paid and owned) while it's perfectly acceptably fine. And mind that I will get the latest and greatest i9 for free. Yes, that overheating, throttling failure of hardware design piece of shit. 2 coworkers already own the beast and confirm that it gets really hot really quickly. One of them even has daily crashes (the laptop just turns off) and random reboots. A total waste of money. And my future time. As if it's not enough work to migrate to a new laptop (even with Time Machine).
So, fellow ranters, what do I do? I hope I can leverage the second best MBP (CPU-wise) from this situation, unless there already is a bunch of i9s in the office ready to be used. I really, really don't want one. And I think my current computer is great for what it is, even if it's old. It's a really pro machine for my needs (I'm very efficient, except for Android Studio).
I even consider asking for a Linux machine, but then a whole new world opens to me that may be a step too big (since I barely have hands-down experience).
Enlighten me with your ideas, muggles!5
Today I released the next versions two of my company's Android projects. Today was a good day.
Also, releasing on a Friday afternoon FTW! (they are beta releases, so I'm good).1
Kids, stay away from Google's Dagger 2 coffee maker example. Do it for your own sanity. Unless you want to study bad examples.
Ideas for future weekly questions:
What's your favourite dev tech?
What's your favourite non-dev tech?
What do you think about privacy regulations in your country?
Story about maintaining / working with /refactoring legacy code.
Also, if you get in inspired by a questions suggested by someone, make sure to give credit where due! It would be awesome to see who's question we're answering.
Apple products are free as long as you spend too much money.
Inspired by https://devrant.com/rants/1552084/...1
I just helped a blind person find his way to the exit of a train station as I noticed they were searching for it, but missed it due to a small step to the wrong direction. There's hardly a better feeling than helping out with the small and simple stuff!
What good deed did you do today?12
And I thought I knew a lot about practical git... But today I learned about fixup commits and autosquash. Awesome!
So a minute ago I deleted all my Spotify songs, because Spotify now calls them Favourites instead of just Songs. Fucking morons. I thought I had loads of mediocre music in my favourites, and because I don't use favourites, I thought: let me just remove all songs from it so I can start over.
Turns out: that's all the songs I've ever added to Spotify.
Once I realised what I had done, I quickly turned off internet to see if it hadn't synced yet, but of course: FML, it was published. I quickly turned off internet on my phone and opened Spotify: gone already (the bastard was open) before I could turn internet off.
So, my last hope: turn off internet at home, fire up my old Windows PC, open Spotify, put all songs in a playlist, turn on internet, let it sync (au revoir songs or 'favourites', hello new playlist), restore all the things!
Luckily, I booted that old PC (and Spotify boots automatically in the background) last week, so it should have all my songs (I didn't add any this week). I'll let you know if it worked.
And heads up: your songs are now gone, you now have 'favourites'. 🤦🏽♂️🤦🏽♂️🤦🏽♂️🤦🏽♂️
Fuck you, UX ruiners at Spotifuck!9