Programming

3 readers
1 users here now

This magazine is dedicated to discussions on programming languages, software development, and coding. Whether you are a beginner programmer or an experienced developer, this is the place for you. Here you can share your knowledge, ask questions, and engage in discussions on topics such as coding languages, software engineering, web development, and more. From the latest trends and frameworks to tips and tricks for debugging, this category covers a wide range of topics related to programming.

founded 2 years ago
101
 
 

Fixit is dead! Long live Fixit 2 – the latest version of our open-source auto-fixing linter. Fixit 2 allows developers to efficiently build custom lint rules and perform auto-fixes for their codeba…

102
 
 

It's hard to come up with good names in code, but its also easy to get wrong. By looking at some examples, we can get 80% of the way there. Access to code examples, discord, song names and more at https://www.patreon.com/codeaesthetic

103
 
 

No answers, but a lot of downvoting and toxicity around pROPer QueSTioNS. I got reminded why I haven't gone to that site for a very long time.

(Also if you have some better tutorials for the win32 API than what MS has, then I would appreciate that. No, I don't need a bloated library, that does things, but poorly, and has similar documentation issues with functions everyone assumes are called between the two main ones.)

104
 
 

Supposedly, it was only supposed to happen with high-precision trackpads, but it happens to all my devices. I do however have a graphic tablet and an old PS/2 keyboard connected to my motherboard, but all devices cause such issues on my PC at least. I tried my best to follow MS documentations as closely as possible, so unless there was something missing from there (I've read something about OnInputEvent.Post(), but it might be related to some other API) I don't think I've done something wrong.

105
 
 

I've been using emacs since 2010. I use doom emacs now, but I have written my own overcomplicated config at one point in the past. I've grown used to it, but sometimes when emacs chokes on some input due to its single threaded nature I have time to wonder if there's something better for me out there.

I tried a few IDEs in the past, but none of them really suited me. Therefore, I put some thought into what I'm looking for and was wondering if the community knows something that fits these modest requirements:

  • Support for editing any programming language (via LSP or something). I regularly have projects that require editing multiple languages. Or multiple projects of different languages. Though usually it's C, C++, Rust, and Python. As long as these are supported, I can live with it.
  • Terminal window is vertical not horizontal. Most of the time I want to see many lines of output rather than long lines.
  • No file directory tree (or one that can be hidden away). I find it distracting.
  • Can have two files open next two each other split by some vertical separator.
  • Common functionality (including opening files) available through the keyboard. GUI is okay for less common functions.
  • Ability to edit remote files via ssh as if they were native.
  • Built in git GUI client.

Personally, I don't think these are particularly demanding, but surprisingly a lot of IDEs have failed me on the terminal requirement or remote editing. I have all of this in emacs and to me these are must have features.

I think VS code ticks most of these, but the telemetry puts me off.

Any suggestions? I'm okay with paid IDEs.

106
 
 

This is the full story of the vulnerability we have discovered within Visual Studio Code (VS Code) concerning the handling of secure token storage. While designed for isolated storage for each extension, this vulnerability presents a high-risk “Token Stealing” attack. A malicious extension could expose third-party application tokens “securely stored” by your VS Code IDE, posing significant risks to entire organizations.

107
 
 

Because they are object oriented. It's like the expensive body language style of a sexy hijaber girl.

108
 
 

I'm writing an input-output library, and I want an easy way of handling text input without having to rely on stuff on program side, which would be extremely troubling with all the international input support. As long as I can translate them to characters in some way or another, I don't mind any kind of solution.

109
 
 

Commit Mono is an anonymous and neutral programming typeface focused on creating a better reading experience.

110
 
 

Shout out to Paint.net! Great software, but it's almost 20 years old and still doesn't have an Autosave feature. The forums are full of people begging for this feature for years and they still haven't added one. Their response is the classic "you should save more often."

I've started using LibreOffice and it likes to crash on my PC pretty regularly. It's kind of a pain to have to re-open my document every half hour, but it never fails to recover exactly where I left off.

Anyway. Autosave. Good feature.

#programming

111
 
 

Learn how to use GitHub actions continuous integration and delivery in a software development project. In this quick tutorial, we look at 7 powerful ways to automate code with CI/CD.

112
 
 

Video that explains dependency injection in a visual and easy-to-understand manner

113
 
 

Decoding the Success of Gzip + KNN: The Central Role of LZ77

114
 
 

I just downloaded the new infinity for lemmy client to kick the tires and found quite a few unlabeled buttons within seconds of loading my feed. Some SemanticLabel(s) would go a long way here.

115
 
 

Learn the basics of parallelism and concurrency in JavaScript by experimenting with Node.js Worker Threads and browser Web Workers. #javascript #programming ...

116
 
 

Zig is general-purpose systems programming language often used as an alternative to C, C++, and Rust. Learn the basics of Zig in this quick tutorial. #progra...

117
 
 

Talk to your News Reporter with our Entirely Automated AI-Aggregated News Site

You can now ask our AI questions about the news article. The AI is given context from all the aggregated articles which include 2 left, 2 right, and 2 center. We do this by vectorizing each article and storing them in a *vector database called pinecone. You now have access to significantly more information for top news stories. This feature is currently in beta and may not function perfectly. We would love to hear your feedback

#programming

118
 
 

I was looking at video reviews of git GUI clients. The best ones are pricey and we are two people occasionally editing some webpages for our business website. It’s hosted on GitLab Pages.

Can anyone recommend something straightforward? I’ll be sticking to the terminal but my colleague is new to code repositories.

Git GUI is free, but looks terrible IMO. Sublime have a nice one and it’s not subscription based, but is expensive. We are both on Mac usually.

Another alternative I considered was showing them the three terminal commands I use mainly (add, commit and push) and then let them edit from the file manager itself. But because they’ll be doing this so rarely, it might be easy to forget.

Edit: I’ve settled on a few to try out: sourcetree, fork, gitup and the one by Sublime. The conversation doesn’t have to end there, but thanks for the help. So many great answers here :)

119
 
 

Interesting article on detecting if a character/sequence renders as a single emoji

120
 
 

Just because you can use null or undefined doesn’t mean you should. We talk about the problems that come up and how Optionals can help overcome them.

121
 
 

Completely Automated, AI-Powered Newsletter: Top Headlines in Politics, Events, Technology, and Business

Hello Everyone!

I'm excited to announce my newest project - an entirely automated Top Headlines Newsletter, powered by GPT-4. Top news that is picked and written entirely by AI is delivered to your inbox every morning at 9 AM PST.

Our system is** fully automated**, taking care of everything from selecting topics to sending the newsletter. This means that if I were to die today, you would still receive a newsletter every morning.

Our newsletter is integrated with our site, and all stories use 2 left, 2 center, and 2 right wing sources (characterized by AllSidesMedia).

I truly think that AI can revolutionize how we consume news, from mitigating polarization, stopping misinformation spread, and minimizing bias. Please let me know your opinions below!

https://www.neuraltimes.org/newsletter

#programming

122
 
 

https://github.com/ZILtoid1991/pixelperfectengine/blob/117ffcf785b5fadf4324902d4944238d34668e65/pixelperfectengine/src/pixelperfectengine/audio/base/midiseq.d#L125

I have some issues with understanding the documentation on how set tempo events and time divisions work, so it's really not well calculated, and thus causes my code to just zoom through the MIDI file I'm throwing at it. Maybe there's some other chunks I'm not processing at the function that should be processing MIDI events here, so I don't really know.

123
 
 

Repository rules provide an easy, flexible way to define branch protections and ensure consistency in code across repositories.

124
125
 
 

Announcing the release of typescript-eslint's stable v6 release, including its changes and timeline.

view more: ‹ prev next ›