Programming

24429 readers
203 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
751
752
 
 

I've seen this term thrown around a lot lately and I just wanted to read your opinion on the matter. I feel like I'm going insane.

Vibe coding is essentially asking AI to do the whole coding process, and then checking the code for errors and bugs (optional).

753
754
755
756
 
 

I just started a new job where I have to ssh into a remote linux vm to work on a qt driven c++ project. I don’t really have a lot of leeway on what can be added to the remote environment, and I don’t think local development is possible. The vm has vim and qtcreator.

I’m from a Java background and I’m learning c++ for this role, while I’m comfortable in vim, I’d really like to have a tool that can give me autocomplete, jump to definition and linting. I know these things can be set up in neovim, but I asked about having that put on the box and was not given a good reaction.

I also know tools like vscode and possibly clion can be set up to do remote work via ssh. Does anyone have experience with this and suggestion on a good setup?

757
 
 

Original post: https://lemmy.world/post/23645197

Hi all! Since my last post I've been hard at work on Manatee Fitness. I polished the core functionality and ended up feature creeping myself. I wasn't intending to add weight tracking or goal calculations but once I got into a groove I just kept going.

The most exciting part is that I finally have a real icon!

Beyond that, I figured out how to build an APK via github actions so now anyone willing to give the app a try is able to easily download and install it! I welcome any feedback from users. One important thing to keep in mind before trying it out is that it is currently focused on foods available in the US. I want to eventually expand the scope to more countries but I'll get to that once I have a stable release.

I'm also happy to take any contributions from the community! I have issues written up for all the bugs and new features on my current roadmap to the first stable release.

And finally, I want to give a shoutout to the 2 existing foss apps in this space that I know of:

Waistline

Energize

My competitive drive to one up them is a huge reason I made as much progress on Manatee Fitness as I have.

758
 
 

So, I'm making an install.sh script to download script files from GitHub to the user's system. I know downloading to the home directory (~/script_dir/) is typically frowned upon.

For context, this is a directory containing python files, README, requirements, etc. pip dependencies need to be installed before launch. The script would be executed through main.py.

Where would be a good place to download to that won't clutter the user's home directory?

Edit: The script is a CLI interface for yt-dlp to make it easier to use. So, it will download files to specified directories on the user's system.

Edit 2: Appreciate the responses. I forgot to mention this script has a config file it uses for certain parameters, such as default download directory for each category. If a config file doesn't exist it creates one in the script's directory and dumps the default values from a default config file (YAML).

Some of you are mentioning this could be a PyPI package. Would I still be able to read/write my config files if I made this a PyPI package?

759
 
 

I'm currently developing on Windows mainly, but due to the end of life of Windows 10, I might switch my primary OS to Linux instead. However, despite Linux being called "developer friendly" I always preferred the tools available under Windows save for the command line shell of Linux.

My main gripes with Linux development is with the debuggers. On Windows, I have RemedyBG, a pretty good debugger with an easy to use GUI. On Linux, all I have is either GDB or LLDB, and a command line so far.

I looked into some of the "more mainstream" GUI options for Linux, all of them were just a separate tab for the same command line debugger in a text editor.

Please note that I'm the sole developer of my projects on the side of a full time job, so I don't have 1 month to spare to learn the in and outs of GDB, which in the days of useless AI slop articles littering the internet, might be even 1.5-2 months. I have a modern PC, any performance gains from not having a well-optimized GUI is negligible. No, I don't care about scripts. And no, unless I'm actually writing the code, the mouse is faster, not slower.

760
761
 
 

I'm taking The Odin Project, and one of the assignments is to complete this game. I have to say, I was really surprised, but it's been a really refreshing experience while learning all this new stuff.

762
763
764
765
766
 
 

The gist is you write macros/automations/scripts to play the MMO based on your logic.

I decided to do it in bash/curl/jq to make it extra fun and learn some tools I use occasionally but only withheavy man page referencing. After some playing I might be a bash-scripting pro.

767
768
 
 

Hi, I've got myself stuck on an issue, I've started a big rebase (I know that was already a bad idea to begin with, but, just in case, the information I'm looking for could always come in handy in other occasions), I reordered a few commits and squashed some, while in the process I resolved a few conflicts, then after I resolved one of them and got to the next conflict I realised that I shouldn't have put a certain commit there, is there a way to rewind the process to the previous step while staying in the rebase? That way I could move the commit to where it should be and continue.
I know you can edit the todo (git --edit-todo), but that only works for the next commits, I also can't just reset back by the number of commits I want, e.g. git reset --hard HEAD~4, because for the rebase those commits remain as done and doing git rebase --continue only brings me to where I am already, the next conflict to resolve.
So I wonder, is there a way to move out commits of the done list back into todo? Also for example if I trashed an unmerged file completely while messing around, so I can get it back to its initial state, this would be extremely useful

769
8
submitted 10 months ago* (last edited 10 months ago) by Corsair@programming.dev to c/programming@programming.dev
 
 

Hi,

Is it just me, or posting image is not working anymore on programming.dev ?

Thanks.

770
 
 

It's a Windows system function that is used for creating an OpenGL rendering context, and is very cursed since you have to jump around a few hoops before you can actually use it. I barely managed to find the function signature, let alone any information on how does it work.

771
772
773
774
775
 
 

Normally I skim the README, but this one was worth taking some more time to read. This would be a cool project to look at in undergraduate hardware/OS/CPU design courses

view more: ‹ prev next ›