276
7
submitted 1 year ago by trevor@lemmy.ml to c/programming@lemmy.ml
277
13
278
11
submitted 1 year ago by Ephera@lemmy.ml to c/programming@lemmy.ml

Result presentation (first 25 mins) and discussion of an accessibility study that Thunderbird ran. They explain various accessibility technologies (like screen readers, eye tracking etc.) and problems they encountered in their design when users relied on these technologies.

Nothing really groundbreaking in here, but still good for challenging one's assumptions.

279
7
submitted 1 year ago by trevor@lemmy.ml to c/programming@lemmy.ml
280
3
Agit-Flow and git-repo (git-repo.info)
submitted 1 year ago by yogthos@lemmy.ml to c/programming@lemmy.ml
281
13
submitted 1 year ago* (last edited 1 year ago) by promitheas@programming.dev to c/programming@lemmy.ml

Hello everyone!

I decided to learn ncurses a few days ago so I can do a project I've been thinking about lately, and in the process I figured since I'll go to the trouble of solving a bunch of the problems with writing relatively complicated TUIs with ncurses, I might as well generalise the solutions into a library or two for future me and anyone else who will find them useful.

Anyway, enough introduction, heres what I want to do with the library:

I want it to dynamically manage size and position of ncurses windows. This means windows should be able to be added, and removed (just those for now, I don't know if I'll implement resizing windows from the perspective of someone using the library to have that functionality), and have the size and position of the windows update automatically.

Initially I thought a binary space partitioning tree situation might be a good way to tackle this, but I want it to be a bit more flexible. For example, the dev using the library should be able to set certain windows to behave differently than leaves in a bsp (think persistent status bar at the bottom of the application, taking up the entire width but only a couple lines in height for example, or toggle-able file explorer on the left/right of the application like neovim's NERDTree).

How would you guys go about designing something like this, while still keeping the code relatively simple and efficient?

Here is a badly drawn diagram of what I mean:

Steps here refer to how someone using the library might go about creating each element (window) of their UI in their own project.

Until step 4 a bsp tree makes sense, but after that when I want to add a window which doesnt conform to the rules of a bsp tree, it gets a bit difficult.

Also, Im thinking there should be some way for windows to have some idea of their neighbours so that when a change occurs, they can adapt to it.

Anyways, essentially I'm looking for your thoughts on how you would go about implementing something like this.

Much appreciated!

282
6
submitted 1 year ago by yogthos@lemmy.ml to c/programming@lemmy.ml
283
3
submitted 1 year ago by trevor@lemmy.ml to c/programming@lemmy.ml
284
3
submitted 1 year ago by yogthos@lemmy.ml to c/programming@lemmy.ml
285
2
submitted 1 year ago by trevor@lemmy.ml to c/programming@lemmy.ml
286
2
submitted 1 year ago by trevor@lemmy.ml to c/programming@lemmy.ml
287
3
submitted 1 year ago by yogthos@lemmy.ml to c/programming@lemmy.ml
288
2
289
1
submitted 1 year ago by trevor@lemmy.ml to c/programming@lemmy.ml
290
25
291
1
submitted 1 year ago by trevor@lemmy.ml to c/programming@lemmy.ml
292
2
submitted 1 year ago by trevor@lemmy.ml to c/programming@lemmy.ml
293
2
submitted 1 year ago by trevor@lemmy.ml to c/programming@lemmy.ml
294
2
submitted 1 year ago* (last edited 1 year ago) by yogthos@lemmy.ml to c/programming@lemmy.ml

I have a ton of books in my to read pile, and I always have analysis paralysis trying to pick a new book to read. Getting recommendations based on stuff I already enjoyed reading helps make the decision quicker.

295
0
submitted 1 year ago by trevor@lemmy.ml to c/programming@lemmy.ml
296
7
CSS Minecraft (benjaminaster.com)
submitted 1 year ago by yogthos@lemmy.ml to c/programming@lemmy.ml
297
11
submitted 1 year ago by davel@lemmy.ml to c/programming@lemmy.ml

“Compile-time hierarchy of encapsulation that matches the domain model was a mistake.”

https://en.wikipedia.org/wiki/Casey_Muratori

298
2
submitted 1 year ago by yogthos@lemmy.ml to c/programming@lemmy.ml
299
-2

Like 75% of the candidates are cheating, and it's so obvious. It's a shame because even if I know they're cheating, it raises my subconscious bar on quality I expect from candidates.

"Oh I see you used Kafka in this design, but it appears to be pushing to your workers. Can you talk to me in a bit more detail about how this works?"

(note: You're only getting this question if you used Kafka to solve my problem. The answer is the workers pull off Kafka and store their own offset, or Kafka stores it in the case of consumer groups)

proceeds to read off the encyclopedia for Kafka

"that's great.. but explicitly, how are your workers using Kafka..?"

300
2
submitted 1 year ago by yogthos@lemmy.ml to c/programming@lemmy.ml
view more: ‹ prev next ›

General Programming Discussion

10026 readers
10 users here now

A general programming discussion community.

Rules:

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

Other communities

Systems

Functional Programming

Also related

founded 7 years ago
MODERATORS