submitted 49 minutes ago by [email protected] to c/programming
Healthy Documentation (vadimkravcenko.com)
submitted 7 hours ago by [email protected] to c/programming
submitted 1 day ago by W3dd1e to c/programming

How do you handle design when working a project that doesn’t have explicit design guidelines?

I’ve been working on some personal projects, but I am continually getting held up on design. I hate looking at a blank page, not knowing where to start. I’m not a particularly creative person in art and design and I really struggle to come up with new ideas on my own. I don’t enjoy it.

I’m the kind of person who buy 10 plain black t-shirts and 5 pairs of plain jeans so I never have to think about style.

I’m sure there are a lot of us out there; you can make the thing but, not design it. How do you work that part of the process?

I don’t want my projects to get skipped over because they’re ugly and I don’t want to copy other designs pixel for pixel.

submitted 1 day ago by [email protected] to c/programming
submitted 2 days ago by ChubakPDP11 to c/programming

Automatic garbage collection in C is possible with libraries like libgc, but with allocppx.pl, you can just preprocess your file into generating heaps, and these heaps can be used for memory allocation. The type of GC is used, mark and sweep + reference counting. Every memory allocation MAY have a trace, and this trace can be used to 'refget' and 'refunget'. Heap items that are NULL or have 0 refs are collected via mark and sweep.

The generated code is very readable, you can just look at it to get a clue. However, this Perl document is annotated with POD so you can view it in man pages etc. I have submitted an ASCII render of the manpage in Gist.

I hope you enjoy this.

submitted 1 day ago by [email protected] to c/programming
submitted 1 day ago by [email protected] to c/programming
submitted 1 day ago by [email protected] to c/programming
submitted 3 days ago by [email protected] to c/programming
submitted 1 day ago by [email protected] to c/programming
submitted 1 day ago by hardkorebob to c/programming

This code is a highly abstracted and unconventional script that appears to be for generating Python code using Bash shell script constructs within a shell scripting context, translating them into Python code generation. Here's a breakdown of what different parts of the script do:

Function Definitions:

The script defines several functions (ZDimp, ZDas, ZDshebang, etc.) that output Python code. Each function generates specific parts of Python code, like imports, class definitions, and method definitions. Functions like ZFtoorwin, XIcv, and ZDcld are used for generating more complex constructs like class instantiation and method invocation within classes. Control Structures:

It includes shell-based control structures to create conditional (if, elif, else) and looping constructs (for, while) in the generated Python code. The constructs use a mix of direct shell commands and placeholders for Python code, indicating that the script likely works alongside other tools or scripts that provide inputs dynamically. Instance and Function Call Generation:

Functions for setting instance variables (ZIfv, YIfv, etc.) and making function calls (ZFfc, YFfc, etc.) dynamically build Python code that manipulates class instances and calls methods. These functions are versatile, allowing for different indentation levels and conditions to be specified dynamically. Utility Operations:

Functions like XFshsp, XFpyev, and others handle subprocess execution, text manipulation, and variable assignment within the generated Python environment. These functions are intended to be flexible and reusable across different parts of the generated code, indicating a modular approach to code generation. Error Handling and Debugging:

The script includes structures for try-except-finally blocks (XKtry, XKexcp, XKfin), allowing generated Python code to handle exceptions effectively. This suggests that the generated code is expected to run in environments where robust error handling is necessary. In summary, this Bash script serves as a meta-programming tool that dynamically generates Python code. It abstracts Python programming constructs into shell script functions, allowing the script writer to generate complex Python applications using shell command syntax. This approach is unconventional and seems tailored for specific use cases where such a level of abstraction is beneficial, perhaps in automated code generation tools or educational environments where showing the transformation of simple commands into Python code can be illustrative.

submitted 5 days ago by [email protected] to c/programming
submitted 5 days ago by [email protected] to c/programming
submitted 1 day ago by LadyLeeLoosh to c/programming

When discussing Observability, OpenTelemetry is crucial because it enables organizations to understand the internal state of their systems through telemetry data. In this article, we will discuss the important role of OpenTelemetry in enabling Observability in Java applications.

submitted 4 days ago by [email protected] to c/programming

I found this talk really helpful in understanding the broader context of open source's recent difficulties (see xz vulnerability, Redis license change, etc.)

I am one of the people who has immensely enjoyed using open source at a personal level (and have done a tiny bit of contributing). I've seen and read a lot about burn out in open source and the difficulties of independent open source maintainers trying to make a living off their work while companies make billions using that work and only ever interact with the maintainer to demand more unpaid labor. But I've never seriously considered how we got to this point or what it might take to move to a more sustainable world of thriving, fair open source.

submitted 6 days ago by [email protected] to c/programming
Node Authentication With Passport.Js (javascript.withcodeexample.com)
submitted 5 days ago by harendra21 to c/programming
submitted 2 days ago by zolax to c/programming

don't know if this is the correct community to post this on, but is there a way to style Reddit (most likely old Reddit but it doesn't matter) with a similar style to Lemmy? there are a few small subreddits I still browse (because there is no Lemmy equivalent) and it would be cool if I could style it like the regular Lemmy style (if you need an example: lemmy.ml)

I know there are frontends for viewing Lemmy instances like Reddit, but I haven't heard of any way to do the reverse.

it could be through a stylesheet, an alternative frontend, even just a pointer on how you could style a website into a different style.

submitted 1 week ago by 0x0 to c/programming
submitted 6 days ago by [email protected] to c/programming
submitted 6 days ago by [email protected] to c/programming
Beyond Foreign Keys (lackofimagination.org)
submitted 6 days ago* (last edited 6 days ago) by Aijan to c/programming
submitted 2 days ago by [email protected] to c/programming
submitted 1 week ago by [email protected] to c/programming
Datadog has a security footgun (sheriffcranky.substack.com)
submitted 1 week ago by [email protected] to c/programming
view more: next ›


15627 readers
139 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!



  • 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


Follow the wormhole through a path of communities [email protected]

founded 10 months ago