Programming

22147 readers
9 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 2 years ago
MODERATORS
226
 
 

Resource leaks, where resources like files, database connections, or streams aren’t properly released after use, are a persistent issue in Java applications. These leaks can lead to performance degradation, and system failures. While tools like SonarSource SonarQube™ effectively identify such leaks, the fixing process remains manual, time-consuming, and prone to errors. To address this, we developed FixrLeak, a generative AI-based framework that automates the detection and repair of resource leaks. FixrLeak combines Abstract Syntax Tree (AST) analysis with generative AI (GenAI) to produce accurate, idiomatic fixes while following Java best practices like try-with-resources. Deployed within Uber’s extensive Java codebase, FixrLeak significantly reduces manual effort, improves developer productivity, and improves code quality, showcasing the transformative potential of AI-driven solutions in large-scale software engineering.

227
228
229
 
 

An update from GitHub: https://github.com/orgs/community/discussions/159123#discussioncomment-13148279

The rates are here: https://docs.github.com/en/rest/using-the-rest-api/rate-limits-for-the-rest-api?apiVersion=2022-11-28

  • 60 req/hour for unauthenticated users
  • 5000 req/hour for authenticated - personal
  • 15000 req/hour for authenticated - enterprise org
230
231
232
 
 

Plebbit is a fully peer-to-peer, decentralized alternative to Reddit Built on IPFS that doesn’t rely on centralized servers or federated instances like Lemmy or Mastodon. Instead of traditional infrastructure, .No single point of failure, no global mods with ultimate control, no admin backdoors.

In theory, this should mean true censorship resistance and user ownership of content. Communities (subplebbs) are moderated locally with cryptographic keys, and moderation actions are transparent and accountable. It’s a different model than just “federated social media” this is more like BitTorrent for discussion forums.

Do you think a system like this can scale in practice?

Can it maintain quality discussions without centralized moderation?

Will regular users adopt something this technical?

Is it really more decentralized than alternatives, or just differently centralized?

https://github.com/plebbit/seedit

233
 
 

Biome is an integrated linter/formatter for JavaScript/TypeScript, CSS, HTML and GraphQL.

We are now in the process of implementing TypeScript-like inference (not full type checking!) that allows us to enable type-informed lint rules. This is similar to typescript-eslint except instead of using tsc we attempt to implement the inference ourselves.

This post describes our progress thus far, with a detailed overview of our type architecture.

234
 
 

Created a simple query language for JSON data.

Features:

  • Basic query selection
  • Fallback Mechanism
  • Wildcard support
  • Array Slices
  • Multiple Key Selection
  • Key Omission
  • Single Key Omission
  • Functions
  • Comparison Operators
  • Conditions
  • Configurable

Here's an example to get the list of adult friends:

$.friends[?(@.age >= 18)]

Runs in browsers, and Node.js

Documentation site: https://jqlite.vercel.app/

GitHub: https://github.com/Jay-Karia/jqlite

NPM Package: https://www.npmjs.com/package/jqlite-ts

⭐ Leaving a star on GitHub is much appreciated!

235
236
237
 
 

It actually uses a variation of LISP. I know old MIT college courses in Computer Science used to teach it.

The book, "How to Design Programs," is based on a variation of LISP, which I know used to be taught in college computer science courses.

I have zero programming experience, but I want to learn—not for a job, just to truly understand it.

A lot of modern advice says to start with Python because it’s easier or faster, but I’m not looking for shortcuts.

I want to go old-school. This book teaches programming with a 1990s-style approach. It may not use the latest tools, but I’ve heard it actually teaches how to think like a programmer and builds real logic skills.

Once I finish it, I plan to take the University of Helsinki’s Java MOOC. Again, sticking to fundamentals and learning the core ideas, not just trendy frameworks.

For context, I’m not naturally a math person either—I’m teaching myself beginning college algebra right now. That’s less about going old-school and more because I never had a college education, so I’m starting from scratch across the board.

So, does this sound like a solid strategy? My goal isn’t a career—just a deep, strong foundation to see if I can really do this.

What do you all think?

238
 
 

I'm wondering if anyone here has gone through this process, and what the experience was like. (I'm not asking for help with any particular error or anything like that. At least not yet).

I got put in charge of maintaining an old codebase that includes Xamarin projects for android and ios and we seem to have run into a situation where we need to update the framework not just for security, but to keep the mobile app fully functional as Apple and Google update their APIs.

I did see that there was a button in Visual Studio to automatically upgrade the project, but apparently "upgrade" means "break fuckin' everything" so I'm guessing I'll need to take a more manual approcach and also blow a bunch of hours on finding replacements for all the dependencies that required Xamarin and are no longer maintained.

My biggest problem is that I haven't even heard of Xamarin before this thing got dropped in my lap so I have some confusion about how it's supposed to work on top of my normal baseline amount of confusion.

239
240
 
 

Reposted from Hacker News, it was #6 when I looked so you may have already seen it but I thought it was worth reposting. I am not the author.

241
 
 

So I've been out of work for over a year now. I'm a software engineer with 20 years experience in Java, I have experience in over a dozen other languages, I've worked for companies of around 30 employees as well as big multinationals.

Over the last year, I've applied for literally hundreds of jobs, and I've gotten one interview, got all the way to the final stage of the process but missed out to someone with more experience of that specific framework they wanted. I was told that they really liked me, that my code was good even though I was learning that framework while doing the code test, and that I would integrate with the team very well, but they needed someone with more experience with the framework they use. They did say that if another position opened up this year that they'd get in touch.

So my question is, what the fuck do I do now? I'm still applying for every programming position that comes up on the job boards, I'm emailing recruiters to try to get my foot in the door, I'm teaching myself different frameworks and languages and building small demo apps to show what I can do, but I'm getting nowhere.

Five years ago, I had absolutely no issue getting a job. I'd literally have several job offers within a month of looking. Now there's nothing. For context, I'm in the UK.

So what are my options. What can I do to get work as a programmer in today's market? What else is there for me to do? How would I get started freelance if I've never done that before, and is that even a viable option? Are other people experiencing the same at the moment?

Please help, I'm getting desperate.

242
243
 
 

Does anyone know any courses for web javascript? like youtube courses and for web javascript, i mean writing js in script tags, using document and window, and intergrating backend with frontend no nodejs or stuff like that. Just javascript, being used in a script tag, being used to dynamically manipulate elements, the DOM, and such. Most tutorials I found was just, explaining how js works, i know how it works, I want to know how to do the communication between front-end and back-end.

[EDIT] I found one person, and while I would like it if you could tell me more courses, i will link his videos, Traversy Media did some videos on Javascript DOM, which basically does what I asked for, i made a playlist: https://www.youtube.com/playlist?list=PLDmZtFPxsV268gyN8XBTgXiVVRXtIRf2o

if for whatever reason the playlist goes down, just search for him. But I would like to hear about alternatives.

244
 
 

I've been going through this book after looking for something that would help me learn more about some of the common design patterns and practices used in Rust. I think for people who come from an OO, C++, Java, python, ect. background this book is especially helpful because the author gives side by side examples on how some of the ideas in OOP translate to Rust and it's functional design patterns. (And how they don't). Anyways, for me it's been really helpful, I thought others might find it helpful as well.

245
 
 

A distributed, content-addressed filesystem across the internet, not just in a home LAN, than can be mounted (fuse or whatever else), doesn't require storing data twice, has a reasonable API and acceptable documentation.

Does something like that exist?

246
247
16
database greenhorn (discuss.tchncs.de)
submitted 3 months ago* (last edited 3 months ago) by PoisonedPrisonPanda@discuss.tchncs.de to c/programming@programming.dev
 
 

hi my dears, I have an issue at work where we have to work with millions (150 mln~) of product data points. We are using SQL server because it was inhouse available for development. however using various tables growing beyond 10 mln the server becomes quite slow and waiting/buffer time becomes >7000ms/sec. which is tearing our complete setup of various microservices who read, write and delete from the tables continuously down. All the stackoverflow answers lead to - its complex. read a 2000 page book.

the thing is. my queries are not that complex. they simply go through the whole table to identify any duplicates which are not further processed then, because the processing takes time (which we thought would be the bottleneck). but the time savings to not process duplicates seems now probably less than that it takes to compare batches with the SQL table. the other culprit is that our server runs on a HDD which is with 150mb read and write per second probably on its edge.

the question is. is there a wizard move to bypass any of my restriction or is a change in the setup and algorithm inevitable?

edit: I know that my questions seems broad. but as I am new to database architecture I welcome any input and discussion since the topic itself is a lifetime know-how by itself. thanks for every feedbach.

248
35
submitted 3 months ago* (last edited 3 months ago) by paequ2@lemmy.today to c/programming@programming.dev
 
 

Source First License 1.1: https://gitlab.futo.org/videostreaming/grayjay/-/blob/master/LICENSE.md

This is a non-open source license. They were claiming to be open source at one point, but they've listened to the community and stopped claiming they were open source. They are not trying to be Open Source™.

They call themselves "source first". https://sourcefirst.com/

They're trying to create a world where developers can make money from writing source first software, where the big tech oligarchy can't just suck them dry.

249
 
 

It seems people have a hard time understanding the implications of licenses, so I have written a something to help with that.

250
 
 
view more: ‹ prev next ›