Sinthesis

joined 2 years ago
[–] Sinthesis@lemmy.world 4 points 3 months ago* (last edited 3 months ago) (1 children)

Learning a programming language , is pretty simple (didnt say it was easy)....its memorization. Maybe less so now with the advent of things like Copilot/AI assistants.

Understanding what you're trying to accomplish is possibly the harder part. I would rephrase your statement: "I want to learn how to build an application". For this you can butter toast...with instructions.

Pretend there are two people, one is the instructor and one is the toaster/butterer. There is a wall between them so one cant see what the other is doing and the end result is buttered toast. There are a couple resources; bread, butter, knife, toaster, plate.

1st attempt the instructor says: Pick up bread, put it in toaster, take out bread and put on butter. Result: Untoasted bread, butter on hands

2nd attempt the instructor says: Pick up bread, put in toaster, push switch down to toast, take out bread and use knife to put on butter. Result: Loaf of untoasted (did you check if toaster is plugged in?)bread with butter on both sides sitting on the counter (remember the plate?).

See how specific you have to be about certain things? I would call this functional programming. Object oriented program takes it a bit farther in that the toaster is now classified with things like; browness level, electricity/plug state, slice/bay current occupancy, toast switch etc.

[–] Sinthesis@lemmy.world 7 points 4 months ago

My house burned down right after building my first raid array. It hadn't even been put into use. The plan was to move all the data from assorted servers, desktops and laptops in my house to the array THEN backup that volume to something offsite. /sigh

[–] Sinthesis@lemmy.world 17 points 4 months ago

The funny thing is agg. battery is a felony in Illinois which means he would lose his right to vote.

[–] Sinthesis@lemmy.world 2 points 4 months ago

Yes, it is huge in the history of Palestine since the UN partition plan https://upload.wikimedia.org/wikipedia/commons/b/bd/UN_Palestine_Partition_Versions_1947.jpg (note that the city of Jerusalem was given to neither side) I would wager that "after the fall" of Jerusalem, Bibi turned his head towards Gaza to "finish the job". Golan Heights/Lebanon will be an ongoing genocide beyond Bibi's and even our lifetimes.

[–] Sinthesis@lemmy.world 1 points 5 months ago

Etcher itself has advertisements for https://www.balena.io/ products while your USB drive is being written.

[–] Sinthesis@lemmy.world 5 points 5 months ago* (last edited 5 months ago) (2 children)

Not all linux systems are running a desktop GUI, for example...most servers. /edit to add or expand/ I use Etcher on my laptop but I use the command line with my server in the closet...plug in the USB, go back to my laptop and do everything remotely.

Also, as a linux user/admin for 25+ years I've seen these apps come and go. Inevitably the app gains so much popularity that the dev wants some money for it... so they add advertising to the app. Then some other app comes along to replace it, rinse and repeat indefinitely. If your shell commands are POSIX-compliant, they'll last for decades or more.

[–] Sinthesis@lemmy.world 1 points 7 months ago (1 children)

which will suppress this warning

"I'm going to be annoying you until you do something about it" It is recommending that you take some sort of action, that choice is up to you as the user. In fact, the older way of disabling the warning was called advice.defaultBranchName

AFAIK git is still Linus Trovalds' project and one thing he is known for is "you dont fuckin break user space". That is acknowledged in the pull request https://github.com/git/git/pull/921

"will minimize disruption for Git's users and will include appropriate deprecation periods".

Linus is also a fuck-your-feelings kind of guy so deprecation_period == linus_date_of_death. No, I'm not implying Linus is racist/bigot, just that he feels that strongly about breaking user experience.

Git in of itself doesn’t give a shit about.

You're right...and that's why its unbelievable to me how some people are still (it has been nearly 4 years since that PR above) resistant to change this one little thing. This is just the initial branch that we're talking about here. Git doesn't care if you:

﬌ git init
Initialized empty Git repository in /home/xxxxxx/tmp/.git/

﬌ touch foo && git add foo && git commit -am "foo"
[main (root-commit) 9c74dd1] foo
 1 file changed, 0 insertions(+), 0 deletions(-)
 create mode 100644 foo

﬌ git branch -a            
* main

﬌ git checkout -b bar
Switched to a new branch 'bar'

﬌ git branch -d main
Deleted branch main (was 9c74dd1).

﬌ git branch -a
* bar

﬌ git log      
commit 9c74dd18d493fec727e6ce9e4ba71ed356dd970d (HEAD -> bar)
Author: Butters
Date:   Thu Aug 22 00:14:44 2024 -0400

    foo
[–] Sinthesis@lemmy.world 1 points 7 months ago

I just used the most popular/known example. Personally I haven't liked GitHub since Micro$oft bought them. I'm ol' school, 25 years in the biz so M$ really really leaves a bad aftertaste in my mouth.

I'll answer your other question in the other thread.

[–] Sinthesis@lemmy.world 1 points 7 months ago (3 children)

...but recommended to be changed every. single. time. you git init. https://lemmy.world/comment/11895670

[–] Sinthesis@lemmy.world 1 points 7 months ago (2 children)

No shit? Let me guess; you're still using git like Linus intended it to be, decentralized, by emailing each other tar.gz's

[–] Sinthesis@lemmy.world 1 points 7 months ago (1 children)

...which you get a multiline message telling you to change your ways (Linus doesn't break UX)....every time you init....weird.

$ git init
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
view more: next ›