programming.dev

8,946 readers
368 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
154
Java Was The Future (files.catbox.moe)
submitted 16 hours ago* (last edited 16 hours ago) by [email protected] to c/programmer_humor
2
3
57
Why YAML sucks? (self.programming)
submitted 1 day ago* (last edited 1 day ago) by heikkiket to c/programming
 
 

I feel that Yaml sucks. I understand the need for such markup language but I think it sucks. Somehow it's clunky to use. Can you explain why?

4
5
 
 

A little background: Through my teens in the 90's I did a lot of the things you may expect. I was a script kiddie on mIRC, made a tank game in Unreal Engine, and did some Quake modding. From 2002-2004 I landed a job doing Java web dev, SQL, and overall database administration because my father's friend needed someone that could do that. I was ok at the job, but not great. Being young, my hobby that turned into a 9-5 made me want to stab my eyes out and I quit.

With that said, I can understand a lot of what's going on, but it doesn't "click" anymore. I spent 20 years as a career machinist, but I physically can't do that anymore. Here's the rub - my twin brother is a brittle diabetic and can't work (lots of other stuff going on as well), and our mother is getting old (father passed this year). The only reasonable way forward that I can see in order to be able to support my brother is trying to get back into development.

When I stopped, subversion was what we used. I'm trying to understand Git, but it's a giant conceptual leap. I guess, what I'd like to hear from you all is a way to jump back in as quickly as possible in such a way that it may be a career.

Thanks

6
 
 
7
8
9
3
A Post-Open World (www.linux-magazine.com)
submitted 4 hours ago* (last edited 50 minutes ago) by [email protected] to c/opensource
 
 

Have FOSS licenses outlived their usefulness? Bruce looks at what might come next in the world of free and open source software.

10
11
2
submitted 1 hour ago* (last edited 1 hour ago) by [email protected] to c/intellij
 
 

well, that escalated quickly ^^"
why? dunno, I felt like "COBOL" today

Managed to solve a few of my own coding101 challenges in COBOL.

In case you hate yourself very much: here is my docker setup and my codes (don't look too much into the src folder if you want a challenge too ^^")

Using @intellij as an IDE

https://github.com/bison--/learning-COBOL

#COBOL #coding101 #programming #programminghumor #retro #coding #docker #jetbrains #intellij

12
5
submitted 3 hours ago* (last edited 2 hours ago) by [email protected] to c/python
 
 

New to CircuitPython, this feels like it should work according to the docs but it prints six Falses. Any ideas?

#!/usr/bin/env python
import board
import digitalio
import time

class body_controller:

  def __init__(self):
    SWDIO = board.D5
    self._reset_pin = digitalio.DigitalInOut(SWDIO)
    print(self._reset_pin.value)
    self._reset_pin.switch_to_output(True)
    print(self._reset_pin.value)

  def turn_on(self):
    print(self._reset_pin.value)
    self._reset_pin.value = False
    print(self._reset_pin.value)
    time.sleep(1)
    print(self._reset_pin.value)
    self._reset_pin.value = True
    print(self._reset_pin.value)

body = body_controller()
time.sleep(1)
body.turn_on()
time.sleep(1)
13
40
Wine 9.17 released (gitlab.winehq.org)
submitted 13 hours ago by [email protected] to c/linux
14
 
 

Hey all, just sharing a small, single-page site I built using Leptos + TailwindCSS, mainly intended as a demo for an API I built using Axum. Hope someone also finds it interesting!

I'm sharing this site and not the API itself cause I figure it's easier to look at and understand, but if you want to roast some code I would appreciate any feedback you have on the API itself (repo here). Trying to leave the front end developer scene so this is the first API I've tried building, fairly basic but it was fun (I am a big Civ V fan - I hear it's inspired by some niche thing called human history?).

Edit: whoops, looks like the link didn't get set cause I put an image - the site is available here, and the repo for it is here. The live API is available here

15
16
 
 

Due to potential new direction of D, I'm looking for some escape route just in case. I'm primarily a gamedev, so no functional programming languages like Rust or Haskell. Also one of the features I dislike the most in C/C++ is the super slow and super obsolete precompiler with its header files, so no zig, I don't want to open two files for editing the same class/struct. Memory safety is nice to have, but not a requirement, at worst case scenario I'll just create struct SafeArray<Type>. Also I need optional OOP features instead of reinventing OOP with all kinds of hacks many do when I would need it.

Yes I know about OpenD, and could be a candidate for such things, just looking into alternatives.

17
 
 

The new Slimbook Plasma 6 laptop is detailed on Slimbook.com and features an AMD Ryzen 7 8845HS SoC with integrated Radeon 780M graphics, a 2560 x 1600 display, an aluminum chassis, and non-soldered DDR5-5600 memory. There are two DDR5 slots allowing for up to 96GB of memory as well as two NVMe M.2 2280 slots. The laptop is equipped with a 68Wh battery.

More details at Slimbook website: Excalibur

18
148
Linux File System (telegra.ph)
submitted 1 day ago by [email protected] to c/linux
 
 
19
26
submitted 2 days ago* (last edited 2 days ago) by fil to c/rust
 
 

After reading Drew's pitch to the rust community to write our own kernel, I've searched for "linux abi compatible rust kernel" and found "Asterinas". Surprised that it is not mentioned here

20
21
 
 

Omg it's sooo daammmn slooow it takes around 30 seconds to bulk - insert 15000 rows

Disabling indices doesn't help. Database log is at SIMPLE. My table is 50 columns wide, and from what i understand the main reason is the stupid limit of 2100 parameters in query in ODBC driver. I am using the . NET SqlBulkCopy. I only open the connection + transaction once per ~15000 inserts

I have 50 millions rows to insert, it takes literally days, please send help, i can fucking write with a pen and paper faster than damned Microsoft driver inserts rows

22
 
 
23
24
25
54
Code Smells Catalog (luzkan.github.io)
submitted 2 days ago by lysdexic to c/programming
view more: next ›