=== ANCHOR POEM === ════════════════════════════════════════════════════════════════════════─────────── cloud-code should automatically use git and record everything. If the user wants to assign a different git, then it does that too. -- stack overflow -- I used to think programs could only affect files in their directory. Then I learned about Window's "My Games" directory, and then somewhere down the line I'm thinking about how programs on Linux can just use absolute paths to random places on your hard drive and it's like... wow, if only someone built basic sandboxing into this /etc/ style environment ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧═══════════════════════════════════════════════════════════╧═──────────┘ === SIMILARITY RANKED === --- #1 messages/10 --- ─────────────────────────────────────────────────────────────────────────────────── https://www.reddit.com/r/learnprogramming/comments/n0vm6e/im_just_now_understan ding_gitgithub_and_i_feel/ ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘─────────┴───────────────────────────────────────────────────────────┴───────────┘ --- #2 fediverse/5034 --- ══════════════════════════════════════════════════════════════───────────────────── github is overrated. git is underrated. ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧═══════════════════════════════════════════════════────────┴───────────┘ --- #3 fediverse/1868 --- ╔════════════════════════════════════════════════──────────────────────────────────┐ ║ whyyyyyy do programs create all these dot-folders in my home directory? It's │ ║ sooooo crowded. Why are they always putting things in random directories like │ ║ /usr/bin or /lib/ or things like that? I'd much prefer to be able to trust │ ║ that all my files are in one directory, so if I need to DELETE or MOVE them │ ║ easily I don't have to worry about my config files being lost / sticking │ ║ around. │ ║ │ ║ to that end, I always try and configure software I install on my system to put │ ║ all their files into a single directory. If possible. │ ║ │ ║ Usually for like, a game, this involves having a directory for the project, a │ ║ directory for the files (things that are deleted and recreated when │ ║ reinstalling), a directory for config files, and usually an update script and │ ║ a run script. It's so much nicer to not be clogged up all the time. │ ║ │ ║ industry standards apply primarily to industrial uses, and if they aren't │ ║ customizable then they aren't fit for the industry. So why not keep things │ ║ simple? I don't need all this junk cluttering up my desktop. │ ╠═════════╗ ┌───────────┤ ║ similar ║ chronological │ different │ ╚═════════╩═════════════════════════════════════───────────────────────┴───────────┘ --- #4 fediverse/1397 --- ════════════════════════════════════════════─────────────────────────────────────── why don't we teach git in high school? oh yeah, because microsoft word is not plain text. ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧═════════════════════════════════──────────────────────────┴───────────┘ --- #5 fediverse/5902 --- ═════════════════════════════════════════════════════════════════════────────────── if you want to train debug skills to a computer, just train them on every stage of the git commit tree. ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧══════════════════════════════════════════════════════════─┴───────────┘ --- #6 fediverse/1773 --- ═════════════════════════════════════════════════────────────────────────────────── ┌─────────────────────────┐ │ CW: programming-is-easy │ └─────────────────────────┘ Need to install a program from Github? Follow these simple steps: step 1: make an empty text file step 2: put this at the top: #!/bin/bash step 3: put this on the next line: set -euo pipefail step 4: mkdir -p the directory you want to install it to step 5: rm -dr the directory you want to install it to step 6: mkdir -p the directory you want to install it to step 7: git clone the project step 8: this is the hard part - go through each of the steps listed in the readme and configure the installation to the needs of your system. Put them in the bash script one-by-one. step 9: save the file, it doesn't need an extension like .txt or .sh, extensions are for windows noobs step 10: chmod +x the file and then ./the file! step 11: fix it when they change their installation instructions... Need a run script? Easy! Write it as a function below your update script, then echo the bottom half of the update script into a file named "run" that's placed in the project directory. ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧══════════════════════════════════════─────────────────────┴───────────┘ --- #7 fediverse/5560 --- ═════════════════════════════════════════════════════════════════────────────────── ┌───────────────────────┐ │ CW: cursing-mentioned │ └───────────────────────┘ dependencies would be fuckloads easier if applications put their files in ~~standard locations.~~ actually it's better if they are at abstract locations - meaning it can be user defined for each file. then, have some "sensible default" setting the user can configure which says "if an application wants to store a, say, config file, where would it put it?" and you'd say "oh in the ~/configs directory" then the install wizard would say "yes yes very good, and now where should I store user interface templates?" then the user is like... "wat" because they don't know how the software works yet. this solves 90% of all software dependency issues because all you have to do is keep a file with all the directories for each program. then, search through the file every time you need a dependency connection. ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧══════════════════════════════════════════════════════─────┴───────────┘ --- #8 fediverse/4093 --- ══════════════════════════════════════════════════════───────────────────────────── I have no idea why people *prefer* a GUI when working with software. How the heck do they expect to use their computer remotely if they can't even run their software over SSH? ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧═══════════════════════════════════════════────────────────┴───────────┘ --- #9 fediverse/4259 --- ═══════════════════════════════════════════════════════──────────────────────────── source code should be like a story "here's why we did what we did with our architecture" and as it's being written, it may be altered in many different places at once - git style. parts of it could rhyme, if they wanted to show parts that were really difficult but easy to summarize because it's mostly just a lot of boring work y'know like writing getters and setters and doing the testing pre-deploy environments ,,, they could selectionize ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧════════════════════════════════════════════───────────────┴───────────┘ --- #10 fediverse/3396 --- ╔═══════════════════════════════════════════════════───────────────────────────────┐ ║ you should only use variables for things that are user-configurable. │ ║ │ ║ everything else should be hard-coded, with a clear and coherent reasoning │ ║ stored in the documentation, with git-style revisions included and easily │ ║ browsable. │ ║ │ ║ (what if you want to tweak a value somewhere? you'd have to update it on every │ ║ single page!) │ ║ │ ║ true. maybe we could set aside a section of memory to store a value and then │ ║ just point to it using a label. That way we could always keep our values │ ║ hardcoded, but also be able to find them easier. │ ║ │ ║ [tweak them, not find them] │ ║ │ ║ ... yah okay fine both would technically work │ ║ │ ║ [yes but one of them is not a good timeline to lead the world down.] │ ║ │ ║ ?..?...?....?..... -.- ...... /shrug ....... ...? │ ║ │ ║ "bruh why is she reinventing variables" │ ║ │ ║ she's learning give her time │ ║ │ ║ ... did you hear a doctor diagnosed her finally │ ║ │ ║ "whaaat what'd they give her" │ ║ │ ║ they said it was "schizotypal" │ ║ │ ║ "... did she forget a symptom or three?" │ ║ │ ║ no dude thats one of the bad ones │ ║ │ ║ "oh right. I heard typical" │ ║ │ ║ yeah so anyway │ ╠═════════╗ ┌───────────┤ ║ similar ║ chronological │ different │ ╚═════════╩════════════════════════════════════════────────────────────┴───────────┘ --- #11 fediverse/5487 --- ╔════════════════════════════════════════════════════════════════──────────────────┐ ║ if I click a .exe link on a website, it should just... │ ║ │ ║ automatically download the file and open it up in wine or the │ ║ whatever-windows-uses. │ ║ │ ║ why is it cumbersome literally just, let me download the source-code │ ║ repository to someone's computer and let them compile it themselves without │ ║ even thinking about it │ ║ │ ║ "you mean like, package manager hooks into a website?" │ ║ │ ║ yes, but, instead of implemented one-by-one, it should use a protocol so each │ ║ package manager only has to implement the downloading scheme *once* and it'd │ ║ be able to read from any locations that output the correct API calls or │ ║ whatever. │ ║ │ ║ the developer could even do it themselves. such is the joy of open-source │ ║ computing - if you like a service or product, you can make it work with your │ ║ own. What else is there to work on but the ultimate computing product? │ ║ │ ║ aka... everything that anyone's ever been known? │ ║ │ ║ "girl you are loco what's your plan for the fight you continue to demand" │ ║ │ ║ oh idk um probably just wait until someone asks me to speak │ ║ │ ║ "do that~" │ ╠═════════╗ ┌───────────┤ ║ similar ║ chronological │ different │ ╚═════════╩═════════════════════════════════════════════════════───────┴───────────┘ --- #12 fediverse/2947 --- ╔══════════════════════════════════════════════════────────────────────────────────┐ ║ the downside of Proton and Lutris is now the ONLY games that work on Steam are │ ║ either continually updated (untenable) or playable on Lutris or Proton. Same │ ║ thing with Wine, though there's always at least one decent substitute. │ ║ │ ║ kinda makes me want to write a manager-style program which runs programs using │ ║ whichever version of their git repository would work best for their system / │ ║ configuration / purposes. Idk how I would start working on that though. │ ║ │ ║ I bet you could make one that acted like a shop, but where you didn't charge │ ║ any dollars. You could like... "swipe" through UI options, and pick whichever │ ║ felt most useful for your setup. Like, how some people use i3 and some use dwm │ ║ │ ║ with maybe inspectors that are modeled off of video-game style "options" GUIs │ ║ that mainly correspond to flags on the command/terminal line or compilation │ ║ flags │ ║ │ ║ I feel like that kind of abstraction would make it a lot easier for users to │ ║ adjust their system. they're noobs, after all. gotta show them all the choices │ ║ in one place... │ ╠═════════╗ ┌───────────┤ ║ similar ║ chronological │ different │ ╚═════════╩═══════════════════════════════════════─────────────────────┴───────────┘ --- #13 fediverse/4728 --- ══════════════════════════════════════════════════════════───────────────────────── every time a software project changes it's installation method I have to update my install and update scripts which I wrote explicitly so I don't have to go to their website and tell the world that I'm thinking about using this particular piece of software ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧═══════════════════════════════════════════════────────────┴───────────┘ --- #14 messages/948 --- ══════════════════════════════════════════════════════════════════───────────────── [a while later] what if every instance of the OS acted as a git repo for all the other people's programs ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧═══════════════════════════════════════════════════════────┴───────────┘ --- #15 fediverse/4772 --- ═══════════════════════════════════════════════════════════──────────────────────── @user-1692 I usually write everything down in a script that way when I call it from an external service all I have to do is point at the file sorta like... hacking environmental options into a config file like... I don't write an ffmpeg command every time I want to record my screen. I just type "screen-record" and then it'll do the thing that I figured out how to do a long time ago. ... oh no there's an error, I wonder what changed out from under my feet. huh it's wine, that one's always confusing to debug. Let's see... "could not open program.exe" uh-huh. Well, why not? is there a dependency issue? something miscompiled or configured? no? it's just... broken? you don't get to use that program today? huh that's weird. that's linux for ya I guess. ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧════════════════════════════════════════════════───────────┴───────────┘ --- #16 fediverse/1871 --- ═════════════════════════════════════════════════────────────────────────────────── I think all software should have config files or accept as many command line arguments as necessary to achieve all the functionality of a config file without requiring a standardized setup or accept a config file as a command line argument, to allow for multiple different implementations or whatever you can throw together in your spare time because software is either open source or it hates you. ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧══════════════════════════════════════─────────────────────┴───────────┘ --- #17 fediverse/3272 --- ═══════════════════════════════════════════════════──────────────────────────────── Dear Windows: making your software difficult to interface with (like, putting spaces in filenames) is rude. It harms our connected productivity. It's selfish, and it's petulant. We need to agree on common standards if we want any type of cooperatibility between our two approaches. ... oh and there's mac too, but they get it, they can run Bash, ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧════════════════════════════════════════───────────────────┴───────────┘ --- #18 bluesky#21 --- ════════════════════════════════════════════════════════════─────────────────────── the main product that github offers is the assurance that the code displayed on your monitor is the same as the one running on your computer. ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧═════════════════════════════════════════════════──────────┴───────────┘ --- #19 fediverse/4946 --- ═══════════════════════════════════════════════════════════──────────────────────── I would trust the CIA if they gave me continual access to all surveillance of myself -- stack overflow -- what if you made a program which cycled credentials? like... "give me a random credential for Zoom" because we share all of our digital resources did you get banned for account sharing? no you didn't because you routed through the correct VPN automagically [has never had a software job] ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧════════════════════════════════════════════════───────────┴───────────┘ --- #20 fediverse/5873 --- ════════════════════════════════════════════════════════════════════─────────────── "the problem with linux is you have to spend part of the program just... interacting with the filesystem. like, where is their /usr/bin file? (oh it's called a directory over there, my bad) weird they put their config over here (what language is that written in?) uhhhh I don't know much about localization settings (-- two computers on a botnet --) ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧═════════════════════════════════════════════════════════──┴───────────┘ --- #21 fediverse/6106 --- ══════════════════════════════════════════════════════════════════════───────────── ┌─────────────────────────────────────────────┐ │ CW: wild-unhinged-absurd-thoughts-mentioned │ └─────────────────────────────────────────────┘ what if closed source computing is actually better? computer programs should be dumb ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧═══════════════════════════════════════════════════════════┴───────────┘ --- #22 messages/753 --- ════════════════════════════════════════════════════════════─────────────────────── trusting the "open source community" to properly vett software is absurd because 90% of them just... install whatever and throw libraries and frameworks at problems until they can script their way out of whatever problem they face. the other 10% are focused on very specific tools that are so niche that other people can't even understand when to *use* them much less how they work. ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧═════════════════════════════════════════════════──────────┴───────────┘ --- #23 fediverse/1960 --- ═════════════════════════════════════════════════────────────────────────────────── Source code is like, the worst way to view code, but I can't think of anything better, so whatever ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧══════════════════════════════════════─────────────────────┴───────────┘ --- #24 fediverse/1691 --- ════════════════════════════════════════════════─────────────────────────────────── "I don't know what I was doing with this line of code so I'm going to delete it and fix it later" ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧═════════════════════════════════════──────────────────────┴───────────┘ --- #25 fediverse/1247 --- ════════════════════════════════════════════─────────────────────────────────────── so wait is there any guarantee that the "releases" on github actually have the same code as that which is in the repository? Or could they just... put their own binary, with it's own strange rules and vulnerabilities, or am I just fearmongering? ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧═════════════════════════════════──────────────────────────┴───────────┘ --- #26 fediverse/3686 --- ════════════════════════════════════════════════════─────────────────────────────── @user-1573 I do, but git is pretty complex! I can do some pretty basic stuff but I'd like more experience with the more complicated aspects. I currently use Void Linux and Gentoo, and I was thinking of installing NixOS on my raspberry pi. I'll let you know when I end up doing that ^_^ ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧═════════════════════════════════════════──────────────────┴───────────┘ --- #27 messages/455 --- ═════════════════════════════════════════════════────────────────────────────────── I don't understand why modern software isn't error correcting. We shouldn't have any bugs in this day and age. For example, if you're missing a dependency then why doesn't your program try to, I dunno, download that dependency to the program's installation directory and use it there? Seriously there are very few problems that are unsolvable! ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧══════════════════════════════════════─────────────────────┴───────────┘ --- #28 fediverse/1246 --- ════════════════════════════════════════════─────────────────────────────────────── @user-883 hehe if I don't understand how it works it's difficult for me to use things. My Linux friends get so exasperated with me because I'm like "cool script gimme like 2 days to figure it out" and they're like "bro just use these flags" and I'm like "no" ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧═════════════════════════════════──────────────────────────┴───────────┘ --- #29 messages/264 --- ═════════════════════════════════════════════────────────────────────────────────── Don't write self documenting code! Force people to read the documentation so they know how to use it ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧══════════════════════════════════─────────────────────────┴───────────┘ --- #30 fediverse/2859 --- ══════════════════════════════════════════════════───────────────────────────────── ┌───────────────────────┐ │ CW: cursing-mentioned │ └───────────────────────┘ large corporations will often error check *constantly* which slows down their software to an immense degree. every time data passes from one function to another, there's like... 15 different tests to check if it's this type or that, or in the right random seed and it's like... wow can you not, like. design your software intelligently and then you won't need a bunch of slow-ass if checks every time you want to update a string??? software should be writable without fucking getters and setters. If it isn't, then your functions aren't complete. ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧═══════════════════════════════════════────────────────────┴───────────┘ --- #31 fediverse/5282 --- ═══════════════════════════════════════════════════════════════──────────────────── I wonder why someone hasn't yet written a "meta-package-manager" which installed from many different sources and correctly configured each installation to be able to efficiently find exactly where the requisite libraries are installed, even if they're installed for a different system. Then, when running, every time it encountered an error, it moved one more dependency over to the native package manager until eventually everything is in order. ... or something like that, truth be told I'm a junior ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧════════════════════════════════════════════════════───────┴───────────┘ --- #32 fediverse/3429 --- ═══════════════════════════════════════════════════──────────────────────────────── *configuring Linux is programming* ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧════════════════════════════════════════───────────────────┴───────────┘ --- #33 messages/755 --- ════════════════════════════════════════════════════════════─────────────────────── Code editor that moves boxes by saving over the file with a lua script every time you moved a function call around. Oh lemme start at the beginning: A code editor program that's like a text editor like Vim or Emacs. If you don't know what those are, you should probably learn Emacs. Or Vim. Up to you. Oh right so if you do know what those mean, here's the idea: the white space matters. It's counted and tracked into variables in a LUA script which interface with the Vim C keybindings. "run a function within a c program or LUA script which calls a bash command which opens Vim for example with a file you want to edit. Then, inside the file, your spaces and tabs would WYSIWYG for the various food ads placed about, and then you could very easily create game design knowledge. WASD to move, alternatively hjkl It would run a check every time the file updates and depending on how it changed it'd mark certain variables which would change the website as the user moved things around. It's just files. And files are just bits. But files are a useful abstraction, If you realize that "ugly hacking" should be industry standard. ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧═════════════════════════════════════════════════──────────┴───────────┘ |