• 0 Posts
  • 9 Comments
Joined 9 months ago
cake
Cake day: September 25th, 2023

help-circle


  • It’s a huge win, but not the kind of win people reading the statistic with no context (like me) probably thought.

    I’m sure a lot of us looked at “15 percent of desktop PCs in India run Linux” and, regardless of whether it was hasty and irresponsible for us to do so, extrapolated that to, “15 percent of Indian PC users are personally selecting Linux and normalizing its paradigms”.

    But in reality, it sounds more like “15 percent of Indian PC users use Linux to launch Google Chrome”. Which is impressive, but not the specific kind of impressive we wanted.

    It feels a bit like how I imagine, say, a song artist feels when they pour their heart and soul into a piece of music, it gets modest to no traction for a while, and then years later a 20 second loop becomes the backing track for a massive Tiktok meme, and almost zero of that attention trickles back to their other work.


  • The bar for me is whether the language describes an executable program that has state and control flow.

    You could perhaps be generous and describe the DOM as a (write-only) state and the parser as a control flow. I don’t, personally.

    HTML is just a data container format to me. Belongs with the likes of XML, JSON, JPG, PNG, GIF, MP3, MOV, etc.

    The umbrella term I’d use for all of these is “coding”. That’s the skill of understanding structured languages and format specifications, and understanding how you can and can’t piece things together to make something coherent. This is a critical requisite skill to programming. But programming is more.

    Programming is the art of juggling of state and control flow in clever ways to trick funny rocks into computing something you don’t know. It doesn’t need to be general purpose, but I would argue it indeed needs to have a purpose. It has to be something more than just a pile of declarations you know from the outset. Otherwise it’s just structured data.



  • pixelscript@lemmy.mltoProgrammer Humor@lemmy.mlPHP Moment
    link
    fedilink
    English
    arrow-up
    0
    ·
    4 months ago

    PHP stack traces are effectively identical to Java’s in every metric I’m concerned about.

    If you get them sensibly in a log file, anyway. If you allow PHP to render this god awful fugly table inline with your page? Well, have fun. Yes, all the same info is there, and on paper it’s organized in an easier to read format. But oftentimes the table will collide with and mangle with other elements and styling on your page, making the trace irritating or impossible to read.

    This isn’t much of a problem of course, because aforementioned log file is absolutely the way to do it in the first place, and PHP lets you. And hey, absolutely obliterating your page DOM in strange and exciting ways on error sounds like a fantastic way to ensure errors get caught and addressed in testing, so even the unpredictable mangled DOM bullshit is useful in its own way.

    But if someone wants to dunk on PHP for at least outwardly appearing to promote trying to debug it with these awful stack trace tables, I think that’s a well-earned roasting.




  • I use a few apps from the SimpleMobileTools suite. They aren’t full FOSS, they have basic and pro versions where the basic version is GPL3 and the proprietary extended features cost a few bucks. The basic FOSS tools are still decent, if barebones.

    The suite includes:

    • a calculator
    • a phone dialer
    • a music player
    • a calendar
    • a photo gallery (with basic editor)
    • an audio recorder
    • a flashlight
    • a clock
    • an app launcher
    • an SMS messenger
    • a camera
    • a keyboard
    • a note taker
    • a file manager
    • a contact book
    • a simple painting canvas

    I use the gallery and file manager the most. Though admittedly I threw a couple bucks their way for the proprietary extensions. It’s not FOSS, but if it was going to be proprietary, I think it’s one of the fairest deals in software these days. Better than another bloody subscription model, or holding the ad-free experience hostage behind a paywall.