@matcha_addict
@lemy.lolSorry, the question in title sounds naive. I have no doubt that math is essential in programming, but I am thinking about philosophy of programming and want to summarize when they're needed in programming. My attempt is below:
Most applications of programming are making electronics do things through their interfaces. Whether that's telling a screen to display something, a network wire to transport data, a hard disk to persist data.
But we often need math because we often transform data, or we might make said electronics do things based on user input, or an event. Transforming an event to data is a mathematical construction.
Some applications are almost purely mathematical, like banking, crypto currency, or encryption.
In your opinion, does this fully explain why we need math in programming? Is there a better way to sum it up?
Hi all,
I am looking for a local database that is easily accessible via the command line.
It can be SQL or non-SQL
Whats my use case? I want to use it kinda like a second brain. A place to save my notes, my todo lists, my book reading lists, links / articles to read later, etc.
I want it to be a good CLI citizen so that I can script its commands to create simpler abstractions, rather than writing out the full queries every time.
Maybe sqlite is what I need, but is that ideal for my use case?
Edit: removed notes, as evidently they aren't suitable for this and aren't like the rest.
I am thinking to make the following tool, but wanted to get opinions before I embark on this journey.
The tool builds container images.
The images are optionally distroless: meaning, they do not include an entire distro. They only include the application(s) you specify and its dependencies.
What else does the tool give you?
I find it crazy that so many dockerfiles are doing their own dependency resolution when we already have package managers.
What do you think? Is this tool useful or am I missing a reason why it wouldn't be?
I understand that nvidia support for wayland is lacking, but I know it's possible.
For context, I was using sway 1.8 for a while (no official support for nvidia). It was working almost perfectly, only minor issues. After the update to 1.9, I get constant flickering.
I can downgrade to 1.8, but the fact that 1.8 was working tells me that it is possible for a window manager to work well for nvidia. The problem is the sway team does not want that headache (understandably so).
Are there any alternatives that work well with nvidia?
Bspwm has many appeals, and I do not want to focus on those. I want to focus on binary-tree separation of windows and its benefits vs alternatives. What's the appeal?
For comparison, Sway and i3 allow for the v-split and h-split layout, so you can have 2 or more windows split side by side. You can nest them, so it is sort of an n-ary tree. It feels a lot more powerful.
So why the binary tree? The others seem richer and more capable. Bspwm is marketed as more powerful than i3 but it seems the other way around?
I am looking to program something similar to a simulation game, but free-form in its customization and scripting to the point where no strategy game will get me close enough.
I initially thought to start from scratch, simulating all the basics. Simulating money, people, resources, maps, etc. Obviously this is very ambitious.
Are there any libraries or frameworks that could help me with this? I don't want something opinionated that decides the model for how to simulate, for example, money or a person. I want to preserve the ability to simulate those with the models and math of my choosing. But maybe a library that has the foundations of simulation in general, so that I don't have to build everything completely from scratch?
I understand what I said sounds very vague. This will be something I will discover as I do more of it, so forgive the vagueness.
I am building an application that is using JSON / XML files to persist data. This is why I indicated "outside of SQL" in the title.
I understand one benefit of join tables is it makes querying easier with SQL syntax. Since I am using JSON as my storage, I do not have that benefit.
But are there any other benefits when using a separate join table when expressing a many-to-many relationship? The exact expression I want to express is one entity's dependency on another. I could do this by just having a "dependencies" field, which would be an array of the IDs of the dependencies.
This approach seems simpler to me than a separate table / entity to track the relation. Am I missing something?
Feel free to ask for more context.
I like tasks.org but unfortunately it doesn't look like this will come any time soon.
Plus points:
I want a to-do list app that syncs from a json file (or other human-readable data format), so that I can view and modify the file (via a CLI like jq
) from my computer too, and it would still reflect on my phone when it syncs.
Does this exist? Preferably it uses a format simple enough that makes it possible / easy to modify it via jq.
In the desktop world, we have the option to use the command line: a uniform interface for a multitude of apps that would otherwise be very different when implemented as GUIs.
Using the same interface, I can move or edit files, cross out tasks on my to-do list, retrieve my password for my email account (using Bitwarden or pass), etc. All in the command line. The GUI for each of those are wildly different.
The other benefit is it is very easy to create a new command line app, as opposed to a GUI.
Is anything like this possible for the smartphone world (even if it doesn't or will never exist)? What would it look like?
Since smartphone typing is much slower, we can't simply reuse the command line. We'd need something different. An interface that can still support a various spectrum of different operations, yet ergonomic for a smartphone. What are your thoughts?