• 0 Posts
  • 30 Comments
Joined 7 months ago
cake
Cake day: December 6th, 2023

help-circle




  • I’ve had game and software ideas swirling around in my brain, but for the longest time I couldn’t program them. But now, I have enough knowledge to build parts of my grand deckbuilding game idea: An arcade style deckbuilding game with strong meta-progression. It’s playable at superspruce.org.

    As for some other ideas, including the simple idea of a weighted shuffle music playlist where each song has its own weight, they are still currently out of reach, mostly due to trying to access the filesystem and whatnot. Better than a month ago, where within the last month I found out how to make the browser play music


  • Interesting, it kinda feels like the opposite is true for me, at least on mobile. In 4 years, I’ve gone from a 1.4GHz A53 SD425 to a 2.2GHz A78 SD695 SoC, a 6x increase in single thread performance in 4 years for me. I also during that time got a powerful laptop with a Ryzen 9 5900HX CPU.

    Meanwhile, it’s still not unusual to see my Internet speeds drop below 1Mbps, often hovering around 100Kbps-300Kbps, on data or crappy university WiFi, which sometimes has a ping of no joke, 20000+ on my laptop when running Ubuntu. I can sometimes reach high throughput of up to 100Mbps, but when I don’t, my Internet speeds often chug.



  • SuperSpruce@lemmy.ziptoProgramming@programming.devJavaScript Bloat in 2024
    link
    fedilink
    arrow-up
    8
    arrow-down
    1
    ·
    edit-2
    3 months ago

    I read this article a few weeks ago and it sent me on a rabbit hole of web performance articles.

    I think a good budget for basic websites (articles, landing pages, and small to medium functionality web apps) is what I call the “GZ250”, or 250KB of gzipped JavaScript, which is more than plenty. I picked this amount such that yesterday’s budget phones will be able to load the website in a few seconds at 1Mbps (and the name references my motorcycle).

    For comparison, my full on games take way less than that. The Unscaled Incremental and Elemental Incremental are 52KB and 19KB of compressed JS respectively, and v1.0 of my new deckbuilding game is about 27KB. The unreleased V1.1 is massive but will still be around 50-60KB of compressed JS.

    I don’t understand how an article uses 60x the script as my games, but cutting back to 6x would be a win for accessibility and efficiency.




  • Out of the 3 main web languages I use to develop my games (HTML, CSS, and JavaScript), CSS is definitely my least favorite.

    HTML is relatively simple and understandable such that bugs rarely get introduced into my HTML code.

    JavaScript, while janky and not known for good performance, will work without too much trouble compared to other languages (I’m looking at you, C++). No segfaults, effortless type casting, intuitive syntax, and debugging is fairly easy. Worst part is editing HTML and styles with JavaScript, it just feels clunky, to both the programmer and the CPU.

    And then there’s CSS. Despite being a language dedicated to making things look pretty, it’s just an unintuitive list of properties on HTML classes. So many times it takes way too long to do a simple thing like center text in a div when there is other text that is meant to not be centered. But I guess I’m not using it to its fullest potential, as I recently came across an article that listed many pretty graphics, often animated, that was purely made using CSS.






  • If you want something cheaper with a great display and great performance and can stomach the lack of expandable storage, and some bloatware, go with the OnePlus 12. Once you remove it, the phone will absolutely fly.

    If you are okay with a no expandable storage and worse screen (still a bright OLED) and want less bloatware and/or are on a tighter budget, go with the Motorola Edge+ (2023). It still has 512GB internal and costs just $600.

    As for the cloud storage problem, I suggest you have some kind of external drives, or even a high capacity laptop or desktop. You can transfer files with a cable, and storage is quite cheap, although the price (at least for SSDs) is climbing up and will probably continue to do so this year. Currently, I have 3TB of SSDs in my laptop and a 4TB external drive for my backups, while important backups are also stored in the cloud, which take up under 100GB total.


  • I’d definitely recommend Sony for the features I value: battery life, MicroSD slot, and headphone jack. They’re the only manufacturer doing this with their high end phones. I’d go with the $1000 Xperia 5 V if I was looking for a flagship. It has a headphone jack, MicroSD slot, great performance, and outstanding battery life.

    If you’re on a budget in the US, go with the Motorola G Stylus 5G (2023). Adequate performance, good battery life, headphone jack, MicroSD slot, lots of internal storage, 120hz FHD+ screen, for $250-$300.




  • This was in the days I didn’t know much about computers. I paid $1700 for a new 2017 4K iMac, with 16GB RAM and 1TB HDD. I was about 14.

    I now regret that choice. The HDD made things slow and MacOS limited the games I could run. I could’ve gotten 3x the GPU power and 1.5x the CPU power plus expandability if I just built a PC instead.

    I got it because my friend at the time had an iMac, my family and school almost exclusively used Macs, and I’ve never actually seen a gaming PC at that point. I even had no idea what a GPU was at the time.

    Luckily my next computer was one that I did extensive research into and am very satisfied with. It’s an Asus ROG Strix G15 Advantage Edition. For under $2K, it had a high end CPU, GPU, good battery life for a gaming laptop, and replaceable storage and RAM.