Programming

17432 readers
218 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
76
 
 

I've had a very tough time finding my first position as a junior dev and have been looking into getting a paid mentor to help me out. Someone who can give me a specific, clear idea of what skills I might need to have, refine, etc, as well as some looser guidance and direction after losing my confidence.

Do any of you have experience with services like this? Somewhere like Mentor Cruise or something similar?

Edit: to be clear, I'm looking for my first role as a web developer, ideally frontend with React (which is what I feel most confident in). I've been at this for over a year and a half - I do have a portfolio, Github, etc with projects in JS and some basic Python. I'm aware of how to look for a job, but actually getting anyone to look at me has been the hard part, as I've only had two interviews that went nowhere. The handful of people who've seen my portfolio seemed fine with it and the impression I have is that it is enough to demonstrate my skill level, but I'm still getting very little back.

77
78
 
 

I have been using a plugin recently in Rider that basically hooks most features of the app to notifications that teach me the current keyboard shortcut for said feature. It has some customization options such as needing a threshold of usages before prompting, reminders, etc. It’s even gamified a little bit by tracking how many times you successfully used the shortcuts and how much time you estimatedly saved.

I really like this plugin and I’m wondering if anyone knows of a similar plugin for NeoVim? I have been exclusively using NeoVim at home for terminal file edits to help learn it and I’m getting better slowly but I just figured maybe I could accelerate this with something helpful like that.

If this doesn’t exist, does anyone have any offhand resources for getting started with NeoVim plugin development?

79
80
 
 

I am working on a small web app that stores user data locally using indexedDB which can be imported/exported by making use of JSON files. Since I plan on adding updates to the site, I want to know what best practices I should follow to make sure my app can allow importing of user data from older versions. It could be related to how I should define the properties of my user data object to make it future proof, or any library or tool I could implement that would make this migration process easier.

Do keep these points in mind:

  1. I am using NextJS to build this application and Dexie to manage indexedDB
  2. Without going into details, the user data file makes use of heavily nested objects and arrays and most likely won't fit in a cookie or even in the local storage API
  3. This web app acts as a proof of concept which must only make use of the aforementioned core technologies, regardless of whether more efficient alternatives exist or not.
81
 
 

Hi,

I am looking for a remote senior software engineer position. Most of my career I have been using connections to move from one job to another but this time I haven't had the luck, so I am mostly blindly applying through LinkedIn.

I know the general tips but I would like to get some more specific tips to improve my chances.

How can I make my CV stand out? I feel I am getting rejected by positions that are way below my qualifications. I have wondered if I should be updating my CV according to the stack of the position I am applying for. Throughout my career I have focused on building transfarable skills and as a result I have worked with a wide variety of technologies and it feels like I am being penalized for that.

Are there any job boards that may be better than LinkedIn? I am tired of skimming through ads about fintech and AI positions. I am not interested in those and I would prefer to work somewhere that I genuinely I am contributing something in the world. Also, I would be interested on job boards on the Fediverse, especially if it meant that my resume is read by humans and not machines.

How can I avoid time wasters? I had applied to Canonical, after 8 interviews and a bunch of offline steps, I was rejected. While the interviews were fun, I feel I have wasted a lot of time and energy for a someone that was not genuinely interested in hiring.

Anything else I should be paying attention to?

82
 
 

Python 3.13 is the latest stable release of the Python programming language, with a mix of changes to the language, the implementation and the standard library. The biggest changes include a new interactive interpreter, experimental support for running in a free-threaded mode (PEP 703), and a Just-In-Time compiler (PEP 744).

83
 
 

Linus Torvalds expressed frustration over the use of passive voice in merge commit messages, preferring active and imperative language instead.

He provided an example of how commit messages should be rewritten for clarity and consistency across the project.

Torvalds noted that while it's not a major issue, it does add extra work when he has to rewrite messages to match his preference.

84
85
86
 
 

Hi friends, it's been a minute since I shared an update here on this project.

Last time I posted about building a debug GUI in Rust with egui, and I enjoyed the experience so much that I decided to write a status bar for my tiling window manager using egui too!

There is a whole live coding video series which documents the creation of the bar, and I think in general the codebase has some useful tips on doing things with egui like loading custom fonts at runtime and enabling application-wide theming from colorschemes palettes like base16 and catppuccin.

Happy to answer any questions about the technology choices, the experience in general, rough edges etc.

87
88
89
 
 

This is going to sound fishy.

Recently getting into cybersecurity things and have been pretty interested in looking at malware and maybe making some myself to get the hang of it. Do you guys know any good repositories with malware to learn from? For example, if I wanted to make a credential stealing program, there's a lot of different programs that may have credentials that are valuable. Or, maybe writing a keylogger? I took a look at a rust crate that can record keystrokes but has kind of a weird (or at least not as easy) type system because of different OS implementations, but how do different types of malware consolidate those differences?

I guess the broader question I'm getting at specifically is looking at how already made programs get around different technical obstacles like detailed above.

Thanks

90
91
 
 

Zig vs Rust. Which one is going to be future?

I think about pros and cons and what to choose for the second (modern) language in addition to C.

@programming@programming.dev

92
93
 
 

They could've named it QtPy

94
95
 
 

Hy (a lisp built on top of Python similar to how Clojure is built on top of Java) released v1 recently. I couldn't resist playing with it and found it worked sooo nicely. Thanks all the maintainers for creating a great language!

96
 
 

~ Code Crafters Cafe ~

Hello everyone. You know me from two scandalous topics: It's time to return to the roots, to the C programming language and Why is C hidden gold.

I have got enough answers and a predictable assessment. You might have thought that I was some old man from the past or an inadequate newbie who did not understand what he was saying. Some supported me. These topics were clearly fanatical. It's true. In fact, I am not for fanaticism. I am for restoring the true goals of programming as an art.

I created my "cafe" even before this, first in irc, then in the matrix. This is a place for people who perceive programming as creativity, art, handmade, crafting. Here we are not tied to C or other languages. If you are a Rust programmer and do not want to rewrite the whole world in Rust, you are welcome. If you are a JavaScript programmer and do not think that you need to learn TypeScript instead of JavaScript (because it is unsafe) and that everything should be written in Angular and React, you are welcome. You are tired of writing SaaS garbage, you are welcome. Whether you are a CSS artist, or just a creator, you are welcome. No idols, fanaticism, or heroes.

A cozy place where you can share a common vision and feeling with like-minded people. The only rule is to be human and respectful.

Official description: ~ A cozy place in the jungle of the techno world for all programmers who like to create high-quality and effective code from scratch with their own hands. Hobbyists, professionals, beginners, and just curious about how things really work. Handmade, free and open-source software written with a love for engineering and deep knowledge is code crafting. ~

Welcome to our campfire:

irc: irc://irc.libera.chat/#codecrafters
matrix: https://matrix.to/#/#codecrafters:bsd.cafe

@programming@programming.dev
@technology@lemmy.world

97
98
99
100
 
 

I just spent 6 hours of debugging some code, just to find out I had to delete a line in a .gitkeep file:

I'm developing a Grav skeleton, which is a kind of template for Grav CMS to easily create sites with it. Such skeletons can include themes and plugins, which can be used to enhance its features and make individual sites.

Now I had this error that the sitemap.xml (used to tell search engines which pages should be indexed and where to find them) threw an error because the XML declaration wasn't on the first line as it should, but on the 2nd line. It came out that every page had this empty line, no matter if html, json or xml.
To find the bug causing this, I first disabled all plugins and enabled them step by step to find out which one produces said bug. It was the shortcode-core plugin, which can be used to style text with more than just markdown. Since this plugin isn't related in any way to the sitemap plugin, I searched for other possible error sources.
After some playing around, I found out that when I remove a theme, the bug simply disappears. With that info, it had to be a problem with said theme. Since themes can include custom shortcodes and the shortcode plugin did make some "noises", I started investigating a bit more with that. While trying to find the bug, I accidentally deleted the shortcode folder, which had only a .gitkeep file in it. This file was necessary that the folder persist with git versioning because if there was no such directory, the plugin would output an error message. I then recreated the folder manually and the error was still gone. Even after recreating the .gitkeep file, there was no empty line in the output.
After trying to find the bug, I checked git to see which edit made the bug resolve. And there was it: the .gitkeep file I recreated had some changes? But I didn't make any changes to the file except for recreating it. Wrong. The file originally had 2 empty lines, probably accidentally. And by recreating the file, it only had one line which resolved the bug.

It came out that somehow the shortcode plugin tried to get shortcodes from this file and likely added the 2 empty lines to the output. And an empty line before the start of the XML declaration causes the XML parser to output an error. Deleting the 2nd empty line from the .gitkeep file removes the empty line from the output and the error is gone. Bug fixed.


And I spent 6 hours today with the help of a kind stranger in a discord channel who was a bit like a 2nd brain to me. It really helped having someone who hasn't worked on this skeleton and could see some bugs you don't see because you're too familiar with it ("Betriebsblind" in German).

Edit: The plugins don't get maintained by me, they're getting maintained by the Grav team. I plan to create an issue on GitHub if I know more and probably identified the code causing the problem.

view more: ‹ prev next ›