Not long ago, I wrote an article about Many quirks of JavaScript, highlighting some of the language's peculiarities. Today, I've decided to delve into Python.
Have you ever seen those movies where a figure cloaked in a black hoodie and sunglasses, surrounded by a six-monitor array casually utters, "I'm in"? Well, that scenario didn't precisely unfold, but something even more embarrassing took place. We were hacked by a group of high schoolers this week.
If you've ever developed anything using pure JavaScript, you probably know the language has a few quirks. Most of the "gotcha" things people come up with are made to look weird, but some of the results you get from specific expressions are borderline insane.
This week I had to deal with a curious situation in our main CMS for kiosk administration. Something was wrong with our embeded file explorer. Did double-clicking break because of wrong DPI and user avatars?