#programming
I love to see Forgejo getting a big win like this. A couple projects I contribute to use it instead of GitHub. I've thought of switching from GitLab to it for my FOSS projects too. #programming #git #forgejo fedoramagazine.org/fedora-moveโฆ
I've enjoyed using Riverpod for my Dart/Flutter app framework but I have confused myself on some intricacies of lifecycles of Riverpod providers. I decided to do a detailed walk of the topic for myself and post it for my blog. #flutter #riverpod #DartLang #programming nequalsonelifestyle.com/2024/1โฆ
I have quite a backlog of blog posts I've been meaning to write. FIrst up, some tips on Dart hashmaps: easiest way to make a list into a hashmap (I hate how many times I DDG'd for it) and that your default hashmap will preserve insertion order. #programming #DartLang nequalsonelifestyle.com/2024/1โฆ
I love this "Java Almanac" site made by @Marc R. Hoffmann ! I tripped across it looking for old JDK versions. It has all the information, in diffable form too, of the various Java versions going back to its prototype days. I'd love for something like this to exist around Dart and Flutter. #programming #java #DartLang javaalmanac.io/
I got on a Java retro kick last night. I got sucked into it all in the 1.0/1.1 days. I managed to recreate my Windows 95 dev environment too, which I may need to make NT 4 instead. I thought it'd be neat to document writing the same program in JDK 1.0 and upward. #java #programming #retrocomputing
5 Things I Wish I Knew When I First Learned Programming
Starting your programming journey is exciting, but itโs easy to fall into traps that slow down your progress. By understanding the common mistakes new programmers make, youโll set yourself up for success right from the start. Here are five mistakes often made that you can learn from.
I must say what always helped me, was having a real world problem to solve and build in my new language I was learning. I had an app that Iโd written way back to do prompt for data and then to calculate one independent variable regressions from that.
Every time I was learning a new language, Iโd take that code, and rewrite it in the new language. Needless to say, it improved every time I learnt a new language!
Coding is very much about perseverance, having a problem to solve, and being able to break down the errors bit by bit until you get it working. It is very rarely going to work the first time around.
Another thing that worked for me was breaking it down into chunks, and getting each chunk or module to work on its own with an input and an output. It made diagnosis easier as you progressed.
Iโm not sure about art, as Iโm really useless as design and artistic flair, but coding can be gotten right with just persevering with it long enough. I have infinite patience, and can (used to) persevere through many nights to finish a coding job. It filled me with excitement to arrive at the final product, and have someone use it, and then finding it helped them.
To me, coding was like creating a work of art. If it was functional, and was also durable and future-proofed, I was always filled with a sense of satisfaction and achievement.
See howtogeek.com/things-i-wish-i-โฆ
#Blog, #coding, #programming, #technology
RIP Thomas Kurtz, most famous for being the co-developer of the original BASIC programming language at Dartmouth. #ComputerHistory #programming #BasicLang computerhistory.org/blog/in-meโฆ
This is a wonderfully even-keeled and informative Rust vs. C++ Exchange on the SE Daily Podcast with Steve Klabnik and Herb Sutter. If you are looking for some ideological slug fest you will be disappointed. Check it out! #rust #cpp #programming youtu.be/XdHBSxDsVlM?si=gS2kzjโฆ
DWEP technical update
I've been working on the DWEP app, and have just reviewed the service-worker.js
file, which is central to PWAs
I decided to use a cache first caching/fetching strategy, with a versioned cache, and with some calls (in the install and activate event handlers) to ensure that the latest version of the service worker itself (and therefore cached resources since the cache version number is located in the service worker file) is used as soon as possible
https://codeberg.org/tord/dwep/src/branch/main/service-worker.js
It seems to be the best option and i don't really see any downside to it. The only thing is that i have to update the cache version every time i make an update to the app
#dwep #CacheStrategy #cache #caching #WebDevelopment #PWA #javascript #programming