Details
-
AboutFull-stack web developer, Android developer, systems developer, gamer, sportsman ⚽🎾🏓🏏
-
SkillsC++, Python, Bash, SQL, HTML, CSS, JavaScript, Django, Flask, Android, Go, Java, Kotlin
-
LocationNew Delhi
-
Website
-
Github
Joined devRant on 11/10/2016
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
-
"Our job is to find a few intelligent things to do, not keep up with every damn thing in the world."
~ Charlie Munger
This applies to everything on life, including software development. You don't have to keep up with every new programming language/framework, but work on ideas/projects that are challenging and rewarding, and that help you grow.1 -
A few days ago, while coding late at night, I had written the following (in Python) to read the first character of a string:
first_char = line[:1]
When reviewing the code right now, I thought this should instead be:
first_char = line[0]
Right?
Nope! This will fail when the string is empty.
Seems like my sleepy brain wrote better code than my awake brain xD
Or maybe I'm more tired night now ZZZ4 -
Clients and their ever changing requirements!
When will they learn to fully explain what they want and commit to those features 😪2 -
I just bought "Code Complete", "Design Patterns", and "The Pragmatic Programmer". Any advice on reading them?12
-
Why do APIs return an error with HTTP 200 (success) as the response type?!
It's like saying:
"Hey, congrats! You've successfully failed."26 -
The x-axis' scale for India made me feel sad, but then I compared the cost of living in India vs that in the other countries mentioned here, and then I was back to being happy (not sad).6
-
Happiness is: scrolling through the release notes of a software you use and unexpected finding your changes mentioned there 😊1
-
"Comments sometimes lie, but the code always speaks the truth."
~ Unknown (read it somewhere, I'm not wise enough to come up with such a quote xD).
Relevant XKCD (https://xkcd.com/221):3 -
I recently came across KDE Plasma and it looked good enough for me to try it out. So I'm installing it currently... let's see how that goes!
Already selected a few themes to try too: Adapta, Arc, Nilium, and Noc and Lux.
Any suggesting/tips for a new KDE user who's coming from Gnome?6 -
!rant
If you own an Android phone and use a Linux based distro on your laptop/PC then you should totally check out KDE Connect!2 -
There are several categories of software development that I know of: front-end, back-end, full-stack, game, mobile, embedded etc., but what is the term for developing libraries and/or CLI utilities in languages like C++, Python, Go etc. that are not related with any of the above? System development doesn't seem wrong but I was wondering what's the correct term for it in the industry because I need to mention it in my resume and on LinkedIn.
Also, if there's a lesser-known category that you work on then do tell us all about it 🙂5 -
!rant
wk99 topic is so good that I'm seeing quality content on devRant everywhere. So many ++s to give! -
Python's relative import mechanism is soooooo broken 😫. You won't realise it until you're working on a package with multiple modules in different folders.
Importing from installed packages (built-in or third-party) is a piece of cake. The real challenge is when you need to import from within a package.
Almost every other language handles imports really well. But in Python you'll either need to append to sys.path and run from a top-level directory, or run as a module using `python -m module_to_run` (also from a top-level directory), or use some other weird way. Relative imports just don't work out of the box.4