General Programming Discussion

7803 readers
1 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 6 years ago
MODERATORS
226
227
228
 
 

Hey guys. I've been working on a calorie counter for mobile Linux.

For the Diary stack, I'd like to add both Beep and Meep widgets in the same row, instead of two different rows. It appears that this is possible, looking at the widget glossary for GTK3.

How do I do this?

229
230
231
0
Grid World (alex.miller.garden)
submitted 2 years ago by yogthos@lemmy.ml to c/programming@lemmy.ml
232
233
234
235
236
1
submitted 2 years ago* (last edited 2 years ago) by lofenyy@lemmy.ca to c/programming@lemmy.ml
 
 

Fellas, why is this happening, especially sometimes but not other times?

Here, I run the program three times, getting the exact same correct output. On the fourth, it outputs broken numbers. The function prnStats what's being executed.

237
238
239
240
241
242
243
244
245
246
247
1
submitted 2 years ago* (last edited 2 years ago) by lofenyy@lemmy.ca to c/programming@lemmy.ml
 
 

Fellas, I need help working on a user interface. I want to add controls, like a toolbar of sorts I guess, to this project (a calorie counter). It seems like I'd want them within the recipe and diary stacks, since the controls are the same, but not the stats stack, since that's just for displaying information. This idea though, seems super awkward. I could add a menu bar to the whole thing instead, but I'm writing for mobile. Neither idea seems good.

I could work on an ncurses version instead, until Trisquel releases GTK4, libadwaita and newer versions of libhandy. All this does though, is push the issue into the future.

Any ideas on how to proceed?

248
249
 
 

I've found a new project to obsess over. It's a calorie tracking app. I spent quite a while implementing the guts. Now I'm working on the UI. GUI stuff however, has been a pain. On Trisquel, I'm limited to GTK3 and ncurses. I'll implement both, but I'm working on the ncurses version so it'll be easier to write the GTK version. The trouble with writing a full-blown ui in ncurses is, it's getting very big, very fast. It's a lot of repeated code that I realize can be shrunken down if there were such a thing as a widget toolkit for ncurses. This realization, is as cursed as a ouija board on a Friday the 13th, guarded by a black cat underneath a ladder. I'm worried that the UI is going to end up being too big to maintain if I keep going forward as is, but creating and pasting a set of widgets is likely a project of its own.

Fellas, do you have any ideas on how I should proceed?

Program screenshot

Code screenshot

250
 
 

cross-posted from: https://lemmy.ml/post/823245

Tuples, templating, type-safe data access, units and measurements, extension methods, and countless other features exist, seemingly in perpetuity, in every language but Java! But no longer, thanks to the Manifold project.

There is an interesting reddit thread discussing whether Manifold is actually a JVM language and not just a "Java compiler plugin".

view more: ‹ prev next ›