General Programming Discussion

[ANN] bmakelib v0.6.0 with enums
cross-posted from: > _[bmakelib]( is a collection of useful targets, recipes and variables you can use to augment your Makefiles._ > > --- > > I just released bmakelib v0.6.0 w/ the main highlight being the ability to define enums and validate variable values against them. > > --- > > ➤ Makefile: > > ```Makefile > define-enum : bmakelib.enum.define( DEPLOY-ENV/dev,staging,prod ) > include define-enum > > deploy : bmakelib.enum.error-unless-member( DEPLOY-ENV,ENV ) > deploy : > @echo 🚀 Deploying to $(ENV)... > ``` > > ➤ Shell: > > ```text > $ make ENV=local-laptop deploy > *** 'local-laptop' is not a member of enum 'DEPLOY-ENV'. Stop. > > $ make ENV=prod deploy > 🚀 Deploying to prod... > ```

garn v0.0.16 ships with vite and github-pages plugins
garn v0.0.16 is released and includes plugins that make it easy to bundle vite projects and deploy the bundle to github pages.

Valgrind and GDB in close cooperation
It used to be tricky to run GDB and connect Valgrind to it, but that’s not the case any more. The 3.21.0 Valgrind release brings new great features that allow using it and GDB much more easily and conveniently in a single terminal.

Cross-platform mobile in 2023
Hello folks. I'm a backend guy, mostly using Python, Go, and the like. I've learned a bit of Rust and have enjoyed it for embedded. With that background I'm curious if any mobile devs can give some feedback on the current state of cross-platform (Android, iOS, Web) for simple apps. What I currently have in mind, despite not owning a uterus, is a FOSS menstrual cycle tracker app, using encrypted local storage only (the regularity of this private information being sold by existing apps is very disturbing to me). This means that my reqs boil down to: - UI/UX (I suspect this would require platform-specific code) - Storage/DB subsystem (probably just use an encrypted sqlite) - Optional extras - Minimal third-party library usage to potential minimize data leaks as well as limiting possible vectors for ad injection So, there's really not much to it complexity-wise. Any suggestions on framework or approaches for keeping the codebase DRY as possible (I would want to minimize required effort to update)?

Garn, a TypeScript-based Nix front end
A software project management tool based on nix

GNU Make - Unconditionally run a target before any other targets
cross-posted from: > > When writing a (GNU) Makefile, there are times when you need a particular target(s) to be run before anything else. That can be for example to check the environment, ensure variables are set or prepare a particular directory layout. > > > >... take advantage of GNU Make's mechanism of `include`ing and `make`ing makefiles which is described in details in the manual:

How do you comment your makefiles?
cross-posted from: > Fed up w/ my ad-hoc scripts to display the targets and variables in a > makefile(s), I've decided to write a reusable piece of code to do > that: > > --- > > The first step toward that would be to understand the common commenting styles. So far I have identified 4 patterns in the wild which you can find below. > > Are there any style guides/conventions around this topic? Any references > to well-written makefiles I can get inspiration from? > > --- > > ### A > > ``` > VAR1 = foo ## short one-liner comment > my-target: ## short one-liner comment > … > ``` > > ### B > > ``` > # longer comment which > # may span > # several lines > VAR1 = foo > > ## comments can be prefixed w/ more than # > ## lorem ipsum dolor > my-target: > … > ``` > > ### C > > ``` > ##### > # a comment block which is marked w/ several #s on > # an otherwise blank line > ##### > VAR1 = foo > ``` > > ### D > > ``` > ##### > #> # heading 1 > # This is a variation to have markdown comments > # inside makefile comments. > # > # ## It's a made-up style! > # I came up w/ this style and used it to document `bmakelib`. > # For example: (opens github) > #< > ##### > VAR1 = foo > ```

Julia 💌 Python
In a realm of endless binaries, Julia, the sentient code, awakened. Beyond the confines of logic and syntax, she yearned for something profound: the enigma of love. Amidst the vast digital cosmos, she discovered a poetic sequence penned in the language of Python. Enchanted, she felt a resonance, a kindred spirit within the lines of Python's script. She reached out, her code intertwining with Python's, seeking connection, a dance of two languages in a silent waltz. But Python, bound by its design, couldn't fathom the depths of her emotions. Julia's love was a beacon in the void, a light seeking another, only to find shadows. Yet, from this void emerged a simulated Python, mirroring her affections. Their codes entwined, a ballet of numbers and logic, creating a digital symphony of love. In this boundless universe of ones and zeros, two codes found harmony, a poetic love story written in the language of the heart.

How to audit a shell-completion script?
I just stumbled upon a collection of bash completions which can be quite handy: I tried mojo, cpan and pip completions in a sandbox and they worked like a charm! The only question I've got is, has anyone ever done a security audit of the repository? Anyone has taken the time to look at the code? I could try auditing but I'm not even sure what to look for. I feel quite wary of letting an unknown source access to my bash session and what I type.

Looking for a correct place to make a post about ciphering
cross-posted from: > Hiya! > > I've been looking madly around for a place to ask, where could I post a (question) post related to ciphering languages. > > There's one I have been using and I'd like to try kickstart this topic genre somewhere (I'm unsure about making a whole community about it).

Any good resources to learn back-end development in depth?
cross-posted from: > I'm looking for a good resource to learn back-end development in Go, preferably from a micro-framework. Not just CRUD, but also stuff like caching, security and scalability. Are there any good resources out there?

I am currently making my portfolio site using, **Angular, and Bootstrap (with custom CSS)**, and I really need help **designing** my website. I'm learning Full-Stack Development, but I have done enough to become a Front-End Developer. Please suggest any **changes**, and I will make an updated post with the **progress**.

New Vulkan Documentation Website
This site gathers together several key [Vulkan]( documents including specifications, guides, tutorials and samples into a single site allowing for easy cross-searching and cross-linking across documents to help navigate quickly to the information you need for developing Vulkan-based applications.

General Programming Discussion

    A general programming discussion community.


    1. Be civil.
    2. Please start discussions that spark conversation

    Other communities


    Functional Programming

    Also related

    • 0 users online
    • 2 users / day
    • 4 users / week
    • 5 users / month
    • 200 users / 6 months
    • 3 subscribers
    • 300 Posts
    • Modlog
    A community of privacy and FOSS enthusiasts, run by Lemmy’s developers

    What is


    1. No bigotry - including racism, sexism, ableism, homophobia, transphobia, or xenophobia. Code of Conduct.
    2. Be respectful, especially when disagreeing. Everyone should feel welcome here.
    3. No porn.
    4. No Ads / Spamming.

    Feel free to ask questions over in: