jonathanvmv8f

joined 1 year ago
[–] jonathanvmv8f@lemm.ee 0 points 1 month ago

For further context, the website is virtually completely local and could be self-hosted. Aside from hosting the project itself, there is no central server to manage any aspect of the users' interaction with the site or allow communication with other users. There is no sensitive data stored barring the name of the user for which a pseudonym would be just as acceptable.

I think mentioning the ToS and privacy policy is pointless for creating an app like this. If it is possible, I would rather write them myself or omit them altogether.

 

I don't know what to write in both of these pages before I publish my project. I would greatly appreciate if someone would help me in this regard as I know nothing about the legal side of hosting open source apps nor do I want to spend too much time on this.

For context, my project is a web app that I specifically made sure to be as private as possible. All data generated by the user is made to be completely stored locally in the browser with no trackers or analytics installed. The data can be modified and deleted as per the user's will along with the ability to import and export the data as JSON files. A local account is required to save progress else the data will be wiped on exiting the site and the core functionalities of the site do not depend on whether an account has been created or not. The only privacy risk would be occasional loading of external resources like image links which I couldn't find a viable alternative to.

Frankly this is just a small side FOSS project which I do not intend to capitalise on. I still want to mention the TOS and the Privacy Policy just in case, but I couldn't be bothered to write all this legal matter by hand.

 

I am working on a small web app that stores user data locally using indexedDB which can be imported/exported by making use of JSON files. Since I plan on adding updates to the site, I want to know what best practices I should follow to make sure my app can allow importing of user data from older versions. It could be related to how I should define the properties of my user data object to make it future proof, or any library or tool I could implement that would make this migration process easier.

Do keep these points in mind:

  1. I am using NextJS to build this application and Dexie to manage indexedDB
  2. Without going into details, the user data file makes use of heavily nested objects and arrays and most likely won't fit in a cookie or even in the local storage API
  3. This web app acts as a proof of concept which must only make use of the aforementioned core technologies, regardless of whether more efficient alternatives exist or not.
[–] jonathanvmv8f@lemm.ee 2 points 1 month ago* (last edited 1 month ago) (1 children)

This is why [...] better

Sorry, what's the subject of that?

I was just referring to my original question i.e. how I should write comments in my code to explain its working if I have already done so in the code itself

[–] jonathanvmv8f@lemm.ee 1 points 1 month ago (5 children)

Interesting to see your opinion on how commenting shouldn't be mandatory. I specifically go the extra mile to ensure my code is readable for everyone, by naming my variables and functions to be as self-explanatory as possible and breaking down long expressions to store chunks in variables. This is why I was feeling confused as to what more I could add to explain my code better, though I must admit there are still considerable complex portions in some of my projects that would appreciate similar simplification.

[–] jonathanvmv8f@lemm.ee 15 points 1 month ago* (last edited 1 month ago) (13 children)

Asking as a newbie programmer: how do you suggest we write comments that explain the 'why' part of the code? I understand writing comments explaining the 'what' part makes them redundant, but I feel like writing it the former way isn't adding much help either. I mean, if I created code for a clock, is writing "It helps tell what time it is" better than writing "It is a clock" ?

It would really help if someone could give a code snippet that clearly demonstrates how commenting the 'correct' way is clearly better than the way we are used to.

[–] jonathanvmv8f@lemm.ee 0 points 1 month ago (1 children)

What is the difference between the former two?

[–] jonathanvmv8f@lemm.ee 0 points 2 months ago

Thank you so much! I checked that he starred in the show 'Severance' which I just watched recently, which is why I could recognise his face.

[–] jonathanvmv8f@lemm.ee 0 points 2 months ago (3 children)

Who's the guy in the second panel? I swear I've seen this guy somewhere recently and it's been seriously bugging me

 

I haven't used Photoshop in my Windows machine for a while. I only used it to do occasional stuff to my photos that simple photo editors cannot do.

When I opened the app, I was greeted with a banner and a dialogue box stating "this Adobe app is non-genuine and will be disabled soon". (Both were written in Japanese though the original app's language is set to English. I think it has something to do with my VPN.) I couldn't figure what the buttons said but one seems to redirect me to an Adobe subscription page and the other simply closes the app.

I don't have experience pirating stuff like this. I got help from another friend long ago in downloading the whole suite of Adobe products from what I think is a Russian source. I am pretty sure they told me to set up firewall restrictions for the app as well, and I haven't touched the installer or anything similar since then. I don't know if there is something I can do about this or if I should download an 'updated version' of the app from some other source.

[–] jonathanvmv8f@lemm.ee 4 points 2 months ago (6 children)
  1. For Linux enthusiasts, how do you decide which distro you would like to try out next among the plethora of options that are available? The difference I perceive between majority of distros gets smaller the more I try to understand about them.

  2. What are the minimum issues I am likely to face using the most beginner friendly distro like Mint for programming and light gaming?

  3. How customizable is the GUI in Linux Mint specifically? What if I want a start menu like Windows 10 with the app list and the blocky app tiles? What about those custom widgets I see in hardcore Linux users' desktops?

  4. I heard there is no concept of file extensions in Linux. How am I supposed to work on my projects that I imported from my Windows machine that do contain extensions?

Bonus: Who creates those distro icons in color coded ASCII in the system info command in the terminal?

[–] jonathanvmv8f@lemm.ee 2 points 2 months ago

I actually meant the home page of your blog site, but modifying each blog in a similar fashion could also be great if possible, although that may also depend on the type of audience you are expecting that would read them.

A few of these articles genuinely interest me. I may consider reading them whenever I get time later.

[–] jonathanvmv8f@lemm.ee 0 points 2 months ago (2 children)

I'm not much expert at reading blogs either lol. I think my suggestion as a novice reader would be to include a short piece of intro text at the beginning of the page to describe what topics the blog talks about (maybe sum it in about 1-2 sentences). That way I would instantly get to know if it is something I am interested to read or not.

But then again, I am a novice so I don't know any better 😔

 

As a Linux newbie, all I know about Arch Linux is that it is a DIY distro where you assemble the entirely of the OS by scratch. Somehow it feels like it is too easy than it needs to be, even if it is primarily meant for experienced users. I imagine it to be less like building your PC from parts bought from the market and more like building each and every component of the PC by scratch along with building the PC, which I assume to be much harder for the average consumer. It seems absurd how it is possible for a single person to incorporate the innumerable components required for functionality in a personal system that does not crash 100% of the time due to countless incompatibility errors that come with doing something like this.

I would like someone to elaborate on how it feels to 'build' a system software by yourself with Arch and how it is reasonable to actually do so in a simple language. I do have some experience in programming, mainly in webdev, so it's not like I need a baby-like explanation in how this works but it would be nice to get to know about this from someone who could understand where this confusion/curiosity is coming from.

[–] jonathanvmv8f@lemm.ee 7 points 3 months ago
 

My latest personal project would look like this:

 
[–] jonathanvmv8f@lemm.ee 2 points 4 months ago (1 children)

Not suggesting any big things here... All I propose is to have the options for toggling the canvas overlays (empty canvas, heat, template) directly within the canvas editing screen instead of putting it in the sidebar, kinda like Google Maps. I think the sidebar version would be preferred in mobiles, so you could make this desktop only.

Alternatively, you could allow the user to place pixels on the canvas even while the sidebar is opened, like the way it was for the first 48 hours of the event. Also ensure the right side of the color palette is not hidden by the sidebar.

 
 

cross-posted from: https://lemm.ee/post/34818737

Had to learn it the hard way too many times

 
 

Context: Newton personally believed in the concept of absolute space since it reinforced the idea of an absolute God, but the entire premise was proven false by what we know as 'relativity of motion' which makes use of Newton's laws of motion.

Excerpts from 'A Brief History of Time' by Stephen Hawking:

"... Aristotle believed in a preferred state of rest, which any body would take up if it were not driven by some force or impulse. In particular, he thought that the earth was at rest. But it follows from Newton's laws that there is no unique standard of rest."

"Newton was very worried by this lack of absolute position, or absolute space, as it was called, because it did not accord with his idea of an absolute God. In fact, he refused to accept lack of absolute space, even though it was implied by his laws."

 
view more: next ›