Programming

5 readers
2 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
76
 
 

IBM’s generative AI tool aims to refactor ancient COBOL code for its mainframes: Humans are still "in the driver's seat," but it could make code more modular.
https://arstechnica.com/information-technology/2023/08/ibms-generative-ai-tool-aims-to-refactor-ancient-cobol-code-for-its-mainframes/
#software #programming #coding #cobol #ibm #ai #artificialintelligence

77
 
 

Brendan Saltaformaggio leads a $10M DARPA-funded effort to update critical defense software.

78
 
 

Software is complicated. Machine learning, microservice architectures, message queues... every few months there's another revolutionary idea to consider, another framework to learn. And underneath so many of these amazing ideas and abstractions is text.

When you work in software, you spend your life working with text. Some of those text files are source code, some are configuration files, some of them are documentation. Editors, revision control systems, programming languages - everything from C# and HTML to Git and VS Code is based on the idea of "plain text files". But... what if I told you there's no such thing? When we say something is a "plain text file", we're relying on a huge number of assumptions - about operating systems, editors, file formats, language, culture, history... and, most of the time, that's OK. But when it goes wrong, "plain text" can lead to some of the weirdest bugs you've ever seen... why is there Chinese in the event logs? Why is the city of Aarhus in the wrong place? And why does Magnus Mårtensson always have trouble getting into the USA? Join Dylan Beattie for a fascinating look into the hidden world of text files - from the history of mechanical teletypes to encodings, collations and code pages. We'll look at some memorable bugs, some golden rules for working with plain text - and we'll even find out the story behind the mysterious phrase "pike matchbox" and what it has do with driving in Belarus.

Check out more of our featured speakers and talks at
https://www.ndcconferences.com
https://ndccopenhagen.com/

79
 
 

Adding abstraction to your code always feels like the right thing to do. But when you add abstraction, you add coupling which can often undermine the value of the abstraction.

80
 
 

An Extensive Walkthrough of Python’s Primary Memory Management Technique, Reference Counting

81
 
 

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…

82
 
 

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

83
 
 

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.)

84
 
 

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.

85
 
 

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.

86
 
 

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.

87
 
 

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

88
 
 

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.

89
 
 

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

90
 
 

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

91
 
 

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.

92
 
 

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

93
 
 

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

94
 
 

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.

95
 
 

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

96
 
 

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...

97
 
 

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

98
 
 

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 :)

99
 
 

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

100
 
 

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.

view more: ‹ prev next ›