programming.dev

9,003 readers
379 users here now

Welcome Programmers!

programming.dev is a collection of programming communities and other topics relevant to software engineers, hackers, roboticists, hardware and software enthusiasts, and more.

The site is primarily english with some communities in other languages. We are connected to many other sites using the activitypub protocol that you can view posts from in the "all" tab while the "local" tab shows posts on our site.


🔗 Site with links to all relevant programming.dev sites

🟩 Not a fan of the default UI? We have alternate frontends we host that you can view the same content from

ℹ️ We have a wiki site that communities can host documents on


⚖️ All users are expected to follow our Code of Conduct and the other various documents on our legal site

❤️ The site is run by a team of volunteers. If youre interested in donating to help fund things such as server costs you can do so here

💬 We have a microblog site aimed towards programmers available at https://bytes.programming.dev

🛠️ We have a forgejo instance for hosting git repositories relating to our site and the fediverse. If you have a project that relates and follows our Code of Conduct feel free to host it there and if you have ideas for things to improve our sites feel free to create issues in the relevant repositories. To go along with the instance we also have a site for sharing small code snippets that might be too small for their own repository.

🌲 We have a discord server and a matrix space for chatting with other members of the community. These are bridged to each other (so you can interact with people using matrix from discord and vice versa.

Fediseer


founded 1 year ago
ADMINS
1
 
 
2
3
 
 

Hello! I’m looking for book recommendations for learning programming fundamentals.

To be clear, I’m not necessarily looking for a book on learning language(s), but rather, programming, theory I guess you might call it?

For example, I’ve been playing around a lot in my terminal writing bash scripts, and I just implemented my first function. Another example, I know the phrase “Object Oriented programming”, but have no idea what it means.

I learn well by doing, and I’ve learned a lot just writing scripts and reading about bash scripting, but I also realize there’s a lot about programming at a higher level that I know nothing about.

4
5
 
 

So, I was told you can take any distro, pair it with any desktop environment, and badda bing, badda boom, unique linux in the room!

And a few years ago I tried getting into linux, and it didn't work. I didn't like ubuntu. I want something that's basically like Windows 98.

Closest thing I found was TwisterOS. Well, I had some issue with one program, and I'm an idiot on linux. Have no clue what I'm doing. So the guides tell me to update the thing. So I do that, and the fan in my case stops working. Aye-yi-yi!

I never got it to start working again, and I just said screw it, I'm not dealing with this. Put it in a drawer, and haven't touched it in about a year.

Well, now I'm think I'll just start fresh. Install a new distro, and since Ubuntu seems to be the one with the most support, I'll use that. Then I find out that LXDE visually is more in line with what I want.

So I figure I'll slap on ubuntu, slap on LXDE, and then install retropie. And hopefully the fan will work again. So I start researching this LXDE, and the home page wants you to download the desktop environment already baked into a DIFFERENT distro! Wait, hold on. Am I wrong in thinging you can just download a desktop environment, and slap it on any distro? Because it might be me. I have no clue what I'm doing. And even though this is lemmy, when I searched for "Ubuntu Help", there's no community named that. There's also no community named "Linux help". Which I find very very odd. Lemmy of all places you'd think would have a linux help community! This place loves linux. Does everyone just always know what they're doing at all all times? Or am I just going crazy? I feel like I'm walking blind into a forest and bear traps line the ground. I have no idea how to even start this process....

6
 
 
7
 
 
8
22
Dune Shell: bash + lisp (adam-mcdaniel.github.io)
submitted 10 hours ago* (last edited 10 hours ago) by armchair_progamer to c/programming_languages
 
 

Dune is a shell designed for powerful scripting. Think of it as an unholy combination of bash and Lisp.

You can do all the normal shell operations like piping, file redirection, and running programs. But, you also have access to a standard library and functional programming abstractions for various programming and sysadmin tasks!

screenshot

9
24
GNOME 47 Release Notes (release.gnome.org)
submitted 14 hours ago by [email protected] to c/linux
10
42
submitted 15 hours ago* (last edited 15 hours ago) by [email protected] to c/programming
 
 

For the last 5(?) years or so I have been using GitKraken as my daily git driver for a while. I use it at my job mostly and love the functionality. I still use git via command line but jumping into git bash is nice no matter what os I am currently using.

I mainly use it:

  1. To see what branches have been modified (same as git tree but updates itself).
  2. Hooks into other git hosting like codeberg/gitea/forgeo without any real work. Login is also super easy and built in. Oauth is built in.
  3. Git amend is a one click interface.

There is other niceties like issue tracking, easy auto-creation of branches, etc... that I personally don't use all that much, but I can see the appeal.

The only real issue is the price. It used to be 30$ a year but now it's over 100+. I would happily pay 30 a year or pay one time for a license...but over 100 is too much in my opinion. I may go back to using all command line if the price keeps going up.

Is there any open source tools that do something similar it's the same look/feel?

11
12
 
 
13
 
 

cross-posted from: https://lemmy.dbzer0.com/post/28037255

Hey hey people. Relatively new Arch user here, but not new to Linux in general. I've been using Arch with KDE Plasma on this HP laptop from 2013, and I've been enjoying it a lot after spending a long time on Mint/Cinnamon.

But, I've noted that KDE is a bit slow on this machine, and is probably a bit too much. Earlier today, I decided to try out something lighter, and installed LXQt on it as a second DE. The experience was okay, with much improved responsiveness, a nice customizable retro look, and overall simpleness that still did the job mostly. But I also ran into a few issues that probably had to do with having two different DEs on the same machine and user. One thing in particular ended up annoying me so much I went back to KDE: The Discover app would just refuse to play nice with setting a dark theme on the rest of the environment, even when I tried setting it up with qt6ct.

So now I'm considering going to XFCE instead, as I probably should have done from the beginning. I just wish it had Wayland support already (I know it's being worked on). Do you have any suggestions or tips for me in regards to this? I'm sure a lot of people will recommend their favorite tiling WM which I'm not sure I want to get into.

Also, other than that, upon returning to KDE, I found that my Discover would crash when trying to update Flatpaks (the only thing I install through it) and started thinking this experiment somehow broke it.... but it's Flatpak itself that seems to have an issue today. Might have to do with the latest curl update? Dunno if I should make a separate thread for that. https://discuss.kde.org/t/kde-discover-broken-with-latest-curl-update/21475

14
31
submitted 1 day ago* (last edited 1 day ago) by cmeerw to c/cpp
15
 
 

So I tried to install a fan script last night. It's supposed to be a 1 line of code.

But even though it's a brand new installation of ubuntu, my system says "No. You need to install curl first"

When I try to do that, my system says "no, you already have a more recent version of curl installed"

I'd love to copy/paste the exact text, so you guys could see what I see, but when I do that, either in comments or in new posts, Lemmy gets confused, and won't post it.

How do I get you guys a copy/paste of this, so you guys can say "Oh, you have to do this this and this"?


Ok, this is becoming what I remember not liking of not understanding linux.

I was supposed to just type one line of code

... curl https://download.argon40.com/argon1.sh | bash ...

And that led to me not having curl installed. After 24 hours of trying to figure this out, I finally figured out I need to type

... sudo snap install curl # version 8.1.2 ...

And so then I type

... curl https://download.argon40.com/argon1.sh | bash ...

again, and this time I get this.

... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 19245 100 19245 ************* 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 4848 Argon Setup
0 0 --:--************* :-- --:--:-- --:--:-- 48598 E: Could not get lock /var/lib/dpkg/lock-frontend. It is held by process 6408 (unattended-upgr) N: Be aware that removing the lock file is not a solution and may break your system. E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?


Please also connect device to the internet and restart installation.


bighat@bighat-desktop:~$ ...

I have no idea what that lock is, or what to do. I was told "oh, it'll be easy, you just gotta put in this one line of code". Going on 4 years trying to get that fan to work...

16
 
 
17
 
 

cross-posted from: https://lemmy.ml/post/20448316

18
 
 

GitHub (source code for all languages), also linked above.

The GitHub says "50 lines of code" but the largest example is 74 lines excluding whitespace and comments.

19
20
38
Python in Excel – Available Now (techcommunity.microsoft.com)
submitted 2 days ago by [email protected] to c/python
21
6
Day 14 - Who has permission? (linuxupskillchallenge.org)
submitted 9 hours ago by livialima to c/linuxupskillchallenge
22
 
 

While entry-level cameras have all but disappeared, elite models are making a strong comeback, as highlighted in a report by The Economist. The report notes that brands like Leica, Fujifilm, and Nikon have shifted their focus to high-end offerings – and it's paying off.

23
 
 

This article makes for an interesting read. Here follow two early paragraphs for context:

Oracle controls the JavaScript trademark because in 2009 it acquired Sun Microsystems, which applied to trademark the name with the US Patent and Trademark Office back in 1995. The trademark was granted in 2000.

While the database giant does not use the name for any commercial products, its ownership of the trademark has led JavaScript-oriented organizations such as events biz JSConf to adopt branding that avoids the term. As the signatories to the letter observe, the world's most popular programming language therefore can't have a conference that mentions what it's about.

Toward the end, the article mentions an initiative to legally pursue Oracle for trademark abandonment.

24
25
 
 

A great introduction to what traces and spans are, how they work, and the OpenTelemetry Protocol

view more: next ›