Programming

17077 readers
275 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 1 year ago
MODERATORS
26
 
 

Sorry for the somewhat noob question, but how do you pick a library for making a GUI for your apps? My background is in physics, so most of my programming is perfectly find with a CLI that outputs a graph as a ps file or some csv. I am looking to learn about making some neat little GUIs. I was thinking it would be a good idea to try and build my GUI out of the browser so that my app can be as portable as possible, but does this mean it has to be in Javascript or can the backend be done in anything else?

I am not really sure what I am asking, but wanted to get a feel for how people approach front ends.

Thanks :)

27
 
 

cross-posted from: https://lemmy.world/post/19949534

Interesting distribution of OSes from Stack Overflow.

28
 
 

https://positive-intentions.com/blog/dim-functional-webcomponents/

im investigating an idea i have about functional webcomponents after some experience with Lit.

Lit is a nice lightweight UI framework, but i didnt like that it was using class-based components.

Vue has a nice approach but i like working with the syntax that React used and i wondered if with webcomponents i could create a functional UI framework that didnt need to be transpiled.

i think the article is already quite long, so i think i will create a separate one as a tutorial for it.

note: im not trying to push "yet another ui framework", this is an investigation to see what is possible. this article is intended as educational.

29
 
 

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.

30
31
58
submitted 1 week ago* (last edited 1 week ago) by mesamunefire@lemmy.world to c/programming@programming.dev
 
 

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?

32
 
 

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

33
 
 

When managing a database, speed and efficiency are crucial. As applications handle more data and become more complex, the performance of database queries plays a big role in keeping everything running smoothly. One of the best ways to make queries faster is by using indexes. Similar to a book’s index that helps you quickly find a topic, database indexes allow you to find specific data without searching through the entire database. This article explains the basics of indexing, how it improves query performance, and some simple tips for using indexes effectively. Whether your database is small or large, understanding how to use indexes can help keep your application fast and responsive.

34
63
Announcing Swift 6 (www.swift.org)
submitted 1 week ago* (last edited 1 week ago) by popcar2@programming.dev to c/programming@programming.dev
 
 

The big thing about this release is it is a huge leap forward to making Swift a cross-platform language, and not something only built for Mac/iOS

Swift 6 unifies the implementation of Foundation across all platforms. The modern, portable Swift implementation provides consistency across platforms, it’s more robust, and it’s open source. macOS and iOS started using the Swift implementation of Foundation alongside Swift 5.9, and Swift 6 brings these improvements to Linux and Windows.

Swift is designed to support development and execution on all major operating systems, and platform consistency and expansion underpins Swift’s ability to reach new programming domains. Swift 6 brings major improvements to Linux and Windows across the board, including support for more Linux distributions and Windows architectures. Toolchains for all of the following platforms are available for download from Swift.org/install.

35
36
 
 

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.

37
 
 

Hi ! I've been working on this article for the past few days. It would mean a lot to me if you could provide some feedback.

It is about implementing a physico-chemical simulation as my first attempt to write a shader. The code is surprisingly simple and short (less than 100 lines). The "Prerequisite" and "Update rules" sections, however, may need some adjustments to make them clearer.

Thanks for reading

38
 
 

https://chat-to.dev/view_trend?id=651 #ProgrammersDay #programmer #Engineering #programming

39
 
 

cross-posted from: https://gregtech.eu/post/1188873

I made grebuntu to merge all of the separate scripts into one script for all distros, but it doesn't work. The individual scripts do, I tested in VMs. What could have caused the issue? the script in question is tsubuntu.sh btw, can be found in the repo The original scripts are available at https://github.com/Tsu-gu/tsubuntu

40
41
 
 

Does anyone know of a website that will show you a graph of open/closed issues and PRs for a GitHub repo? This seems like such an obvious basic feature but GitHub only has a useless "insights" page which doesn't really show you anything.

42
43
 
 

I'm doing interviews for companies that would involve API integrations. I've done a couple now where I was given some general API information (some intentionally unclear, some more clear) and I felt I didn't do well. Mainly I was nervous, and felt very pressured just to understand how the different parts of the APIs interact with each other and should be interacted with. This is despite doing this for work and myself not feeling as nervous doing more common coding tests which I don't do as much at work(thanks to doing examples on hackerrank, Leetcode helping me feel more comfortable).

So what are the resources I should leverage to practice API integrations? How should I go about practicing? Especially considering that I do need to perform in a certain way during interviews.

44
 
 

I realize this is an absolutely unhinged thing to ask for: Can anyone direct me to a large database of company names with websites (just those two columns), ideally 100K rows or more, that I can access for free? Basically this database if it had another column with the company name: https://github.com/cygenta/top10million (but doesn't need to be anywhere near 10 million)

45
46
47
48
49
 
 

Over the past few years, the evolution of AI-driven tools like GitHub’s Copilot and other large language models (LLMs) has promised to revolutionise programming. By leveraging deep learning, these tools can generate code, suggest solutions, and even troubleshoot issues in real-time, saving developers hours of work. While these tools have obvious benefits in terms of productivity, there’s a growing concern that they may also have unintended consequences on the quality and skillset of programmers.

50
 
 

Been trying to host my flask app but it keeps coming up with issues like this

Note it's a facial recognition attendance web app

view more: ‹ prev next ›