Programming

26392 readers
192 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
1076
1077
1078
1079
1080
 
 

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.

1081
1082
 
 

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

1083
8
submitted 1 year ago* (last edited 1 year 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.

1084
 
 

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.

1085
1086
1087
1088
1089
 
 

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

1090
1091
 
 

I can’t believe nobody has done this list yet. I mean, there is one about names, one about time and many others on other topics, but not one about languages yet (except one honorable mention that comes close). So, here’s my attempt to list all the misconceptions and prejudices I’ve come across in the course of my long and illustrious career in software localisation and language technology. Enjoy – and send me your own ones!

1092
 
 

Why is legacy code hell on earth? https://chat-to.dev/post?id=OGdNc0w1T291RFFKUG52Nk1wODlrZz09&redirect=%2Fnew #legacycode #programming #developers #softwaredevelopment #code

1093
1094
 
 

I may be a old man yelling at the clouds, but I still think programming skills are going nowhere. He seems to bet his future on his 'predictions'

1095
 
 

First off, I've been loving vanilla-extract for the past 10 months. 😊

The only thing I really missed was the ability to sort CSS properties. Since there wasn't an ESLint plugin for that, I decided to create my own.

@antebudimir/eslint-plugin-vanilla-extract offers CSS property ordering (alphabetical, concentric, and custom), auto-fix capabilities, and supports multiple Vanilla Extract APIs.

If anyone wants to give it a shot, you can find more details in the readme. Looking forward to hearing your feedback.

1096
 
 

I've recently (finally) taken the leap into self-hosting my RSS reader, and I'm wondering what feeds everyone's subscribed to

I've currently got some basics like Github releases for software I use, the great selfh.st blog for self-hosted news, hackaday, some essentials like xkcd, and an attempt at following new music releases from artists I like, but I'm sure there are other great feeds out there that I should also be aware of

1097
 
 

I'm curious what kind of project you are working on? I'm working on a procedural terrain generation open world game! Now it's your turn to tell me!

1098
 
 

I have some familiarity with C++, and concepts like compiling and linking static and dynamic libraries, which is what I understand as collections of code that simplify doing certain things.

But then I get confused in certain cases, for example, why is OpenGL considered an API? Why is it necessary to use other libraries like GLAD, freeGLUT or GLFW to interface with OpenGL?

And then other languages have this thing called package managers, like pip, node, cargo, and vcpkg for c/c++, where you install these packages that get used like libraries? What's the difference?

Finally the ones I understand the least of are frameworks. I keep hearing the concept of frameworks like Angular for js and a lot of stuff that's too alien for me because I'm still unfamiliar with web development.

So for example, I'm using the raylib library for a small game project I have. I link the .lib or .dll file to my executable file so I know I'm unambiguously using a library. How come there's also Cocos2dx which is a framework? What's the distinction?

1099
 
 

(https://just-the-docs.com/docs/customization/#define-a-custom-scheme for reference)

I am using just the docs (jekyll theme) + github pages to create a webpage and trying to have two separate colour schemes: a normal and high contrast option.

I am using a custom style with "_sass/custom/custom.scss" to set all the colours, layout configurations, etc. because there are some options that are not available using "_sass/color_schemes/foo.scss" such as more control over the colours of different elements.

However, I cannot find in the docs how to make it possible to easily switch with a custom.scss. One option is to create two github pages sites, one with high contrast and the other with normal colours, but that's really janky. just-the-docs seems to only allow you to create switchable colour schemes if you use "color_schemes/foo.scss" rather than "custom/custom.scss".

Am I forced to create a second github pages site for high contrast, or is there a way to switch between two different custom.scss?

1100
 
 

I would love any comments/criticism as this is the first project I've written where I actually felt comfortable with what I was doing

Thanks!

view more: ‹ prev next ›