376
 
 

hi, I'm trying to learn to program on C and C++. My goal is to get to do applications for a phone with symbian that I have to make it more useful. I already have an idea what I want to do. Mainly make a browser for smolnet protocols (nex, gopher, Spartan, finger, etc.) and more in the future make some social network customers open code. The easiest I think it would be to make a mastodon client, especially because mastodon already works on my nokia with symbian, thanks to brutaldon (although I feel that it lacks functionalities that I would like to have, like to see what is inside the instance and see at the level of fedverse). and perhaps others like "lemmy," "social gnu," "friendica," and already finally and my "Magnus opus" would definitely be, a client of "invidious".

of course all this is far beyond my current possibilities. But that's why I want to step up. For the moment I base it on the syntax on c and c++ and I already understand the operators, and also the comparisons and the Boolean operations. I also partially understand the pointers... but I really don't know what kind of use they have. so that the applications you create, you can test them in my system with linux, I need to program everything in c, and use c++ but only in a basic way the latter, as symbian only supports old versions of c++ posix, (it's true that if I install qt supports more modern versions and it would be much easier to do anything. But I have been recommended not to use it) I have also been a little interested in zig and nim, as they compile C and theoretically should be languages that could work perfectly, but on the other hand, also increase the number of languages to learn may not be the best idea at the moment.

for the subject of graphics, I think the best option is to use sdl, there is a port of sdl 1.2, the problem is that in my language there are practically no sdl 1.2 tutorials, and in English I have found little. This is the best thing I could find "https://lazyfoo.net/SDL_tutorials/" is not that this evil (in fact I have not yet tried it) but well, I would also like to know, that so much changes the syntax against sdl 2, I just want to do simple things, buttons, menus, text boxes and already, I ask this to see if I can make the work easier and just see tutorials in my language and not eat so much my head asking anyone to translate me all by one.

i initially thought about using sdl interface library to make life easier. But I quickly realized the problem that most of these library are designed for the use of mice, something that in my nokia n95 because of course there is no... microui was the library that had convinced me most, plus that it not only depends on sdl, it can also use opengl, and a friend explained to me that maybe and even could serve with the native interface library of symbian. I'm sure he'll save it for future projects. But for things like his little documentation and it's not even spoken in my language, and I thought of everything, less intuitive. Because it makes me leave it at least for the moment, I also saw others like raygui, but that would be my turn to make a bridge, and while I can do this with vibeconding and so... well, the truth is I'd like to be able to understand my own code... I don't rule it out completely... But having to adapt so many things, the truth is I think it's more cost-effective just to use pure sdl and stop making life difficult.

There is also the option to use an old version of opengl en. But I think that's a little bit of killing fly-to-gun, total, I just need a 2d, minimalist interface and little more... I don't know if there are any other library that allow me to do graphic interfaces, and that being written in pure C can be carried automatically, without modifications, I understand that there may be a remote possibility that lvgl will work, but... I don't think it's worth it.

So, well... this is all to ask for recommendations and programming exercises on c, c++ and sdl.

377
Simplest hash functions (purplesyringa.moe)
378
 
 

I was struggling to sit down and start my side projects, so I began reading more about productivity and motivation. Eventually I ended up writing a tiny Pomodoro timer for my terminal — mostly just to help myself get moving.

It’s super minimal: you enter the title, work time, break time, and number of intervals. At the end it generates a simple session report and asks you to write your own conclusion. I like reading my own reports later, so I added that feature.

I also enjoy reading short reports and summaries, so adding them felt natural. And honestly, I prefer building simple tools myself rather than hunting for the “perfect” app.

Works on Windows & Linux, needs only Python.

GitHub: https://github.com/Mietkiewski/MPomidoro
Gumroad PWYW $0+: https://mietkiewski.gumroad.com/l/mpomidoro

379
380
381
382
383
384
 
 

The humble .env file is a useful and low-tech way of storing persistent environment variables. Drop the file on your server and let your PHP scripts consume it with glee. But consume it how? There are lots of excellent parsing libraries for PHP. But isn't there a simpler way? Yes! You can use PHP's parse_ini_file() function and it works. But… .env and .ini have subtly different behaviour which …

385
386
387
 
 

I'm not a Ruby developer and I had a problem with a Discourse plugin that hasn't been maintained since version 3.x. I heard about Claude's superpowers and that they allowed him to be restricted during the development phase. In half a day, he migrated the plugin to make it compatible with the latest version of Discourse and now it even has a display that is responsive on smartphone and tablet... Am I still a developer after that? 🤨

388
389
390
 
 

[...]

That marketing may have outstripped reality. Early reports from Mythos preview users including AWS and Mozilla indicate that while the model is very good and very fast at finding vulnerabilities, and requires less hands-on guidance from security engineers - making it a welcome time-saver for the human teams - it has yet to eclipse human security researchers.

"So far we've found no category or complexity of vulnerability that humans can find that this model can't," Mozilla CTO Bobby Holley said, after revealing that Mythos found 271 vulnerabilities in Firefox 150. Then he added: "We also haven't seen any bugs that couldn't have been found by an elite human researcher." In other words, it's like adding an automated security researcher to your team. Not a zero-day machine that's too dangerous for the world.

391
392
393
394
Mermaid v11.13.0: Venn and Ishikawa (content.mermaidchart.com)
 
 

Venn example

cross-posted from: https://programming.dev/post/49143802

Two entirely new diagram types — Venn and Ishikawa — land alongside a significant fix that restores backward compatibility with v10, plus a pile of improvements across flowcharts, ER diagrams, Gantt charts, state diagrams, gitGraph, and more.

395
Slava's Monoid Zoo (factorcode.org)
396
 
 

A ~200 LOC Rust crate benchmarked against ten other languages — came out ahead of a monomorphized C++ lib by ~4× at sub-fanout dispatch. Hot loop is six instructions. Can you make it faster?

397
398
Laws of Software Engineering (lawsofsoftwareengineering.com)
submitted 3 months ago by to c/programming@programming.dev
399
 
 

A minimal Node.js wrapper around ClamAV that scans any file and returns a typed Verdict Symbol:

  • Verdict.Clean
  • Verdict.Malicious
  • Verdict.ScanError

Zero runtime dependencies. No daemon. No cloud. No native bindings. Works locally via clamscan or remotely via clamd TCP socket (Docker-friendly).

npm install pompelmi

Repo: https://github.com/pompelmi/pompelmi

400
 
 

Alright, so I'll get laughed at here, but one of my 'goals' for work this year is I wanted to take the 4 hour VBA course on youtube and then write a small program after it that does something.

Before you laugh at me using an outdated language, I only chose it because a co worker suggested learning it, and we do use some VBA coded macros in our spreadsheets. We're not a very up to date company.

The reason I never get anything done with learning programming is I never know what to do . And if I do come up with something to do, it will be WAYY too complex over my head, i'll fail at it, then never touch it again. If it's too simple, I won't even want to bother. (Yay ADHD)

So I'm just looking for a couple suggestions for a fun little program to make (and consider the goal 'done'). I know calculators of some sort are an option...I can't really think of anything else. I guess it doesn't actually have to be a useful program but it would be cool if it was.

view more: ‹ prev next ›