pkill

joined 1 year ago
[–] pkill@programming.dev 2 points 9 months ago

also just plain readability. Indentation-based scoping is horrible for larger codebases. Maybe if it was a purely-functional language like Haskell where this sort of scoping works better and all effects are tightly contained. But most larger codebases tend to use python in OO way and that can get messy pretty quickly. Damn, if python had a piping operator like elixir that'd be of a lot of help, actually. Plus there is so much legacy code in a language that had e.g. ternaries long before adding something seemingly so fundamental as switch-case.

[–] pkill@programming.dev 1 points 9 months ago* (last edited 9 months ago)

Yeah take for instance ransomware. That is easy since a lot of your targets might distrust regular user input but be much less cautious about stuff that should presumably be only accessible internally but isn't actually even properly locked behind a VPN gate so a simple credential stuffing would do and from then onwards it is actually easier than a physical kidnapping since you don't need to worry about using physical force to ensure your victim submits, doesn't escape or recognize you. But then you need to actually be smart to make sure you don't de-anonymize yourself in the process, don't render your operation just some temporary disturbance by ensuring your victim doesn't just restore their backups if your goal is a denial of service until you get paid and not expecting ransom for not releasing breach data.

Or take carding. Not technically super difficult, especially with the whole illusion of security that many non-technical users have (ie the infamous padlock when I can literally set up a phishing site with letsencrypt that'd log all the form data in minutes), but then good luck cashing out on that with all the KYC on virtually every crypto exchange out there and all that granted 3DS doesn't stop you.

[–] pkill@programming.dev 2 points 9 months ago (1 children)

tbh the biggest upside of competitive programming sites was when I finally learned some Scala so that I can feel smug about my elegant one-line solutions dabs in a very specific way that makes my arms resemble a lambda /s

[–] pkill@programming.dev 2 points 9 months ago

also microservices in my experience worsen this sort of bitrot where the amount of usual duplication it involves means that even if you manage not to have poorly documented spaghetti magic that gets updated once in an eon in one service or two it still might be elsewhere and this

  1. discourages refactoring due to the duplication
  2. harms consistency
  3. encourages lousiness because your stuff might mostly work on a surface level with the rest of your system because you only expose APIs and don't need to worry that much about how your methods will be called. Which might seem convenient to use and implement in an ideal scenario, but could easily become troublesome to debug if anything goes wrong.
[–] pkill@programming.dev 1 points 9 months ago* (last edited 9 months ago) (1 children)

piping find to sed with some possible tr, awk or perl sprinkle is your friend*

* not discounting the risk of ending up wasting more time than planned trying to get one complex regex right

[–] pkill@programming.dev 3 points 9 months ago* (last edited 9 months ago) (1 children)

uhh seen this shit with some rewrites with no regards to your code being idiomatic to the point of it all feeling almost verbatim. Like some PHP devs getting confused by the lack of classes in Go and instead of using method receivers and composition over inheritance creating one 250-line behemoth public function to replace a PHP class.

[–] pkill@programming.dev 1 points 9 months ago* (last edited 9 months ago)

oh yeah and the overt emphasis by suits on frontend development because it feels more tangible. like yeah sure we can add a follow button in a couple lines of code... granted you want to allow duplicate requests by non-signed in users or users that block each other with no manual approvals support, no protection against CSRF and the followee not getting notified

[–] pkill@programming.dev 3 points 9 months ago* (last edited 9 months ago)

especially if the other person uses some stupid bloat like MIUI. I assume under the hood it must be a real hot mess if in the process of adding new features they broke support for standard stuff if last time I needed to do something on two people's xiaomis these shitboxes didn't show a password below the wifi qr code and it has this thing with accent colors derived from wallpaper but absolutely no control over it unlike in standard android despite the fact that it landed two major releases ago.

[–] pkill@programming.dev 2 points 9 months ago* (last edited 9 months ago)

yeah maybe would be true if FP/FRP was widespread in gamedev... but then the industry would be moving at significantly slower pace ¯\(ツ)

[–] pkill@programming.dev 4 points 9 months ago* (last edited 9 months ago)
[–] pkill@programming.dev 3 points 9 months ago

I'd say invidious/piped but sadly if an instance link would be visited by a lot of people in short time, these bastards would rate limit the instance for many days. I belive we need some sort of load balancing gateway that periodically does healthchecks on those instances and redirects the visitors accordingly.

view more: ‹ prev next ›