2276
13
submitted 2 years ago* (last edited 2 years ago) by hardkorebob@programming.dev to c/programming@programming.dev

Examples of an interesting computer programming paradigm.

2277
12
2278
32

I am building an application that is using JSON / XML files to persist data. This is why I indicated "outside of SQL" in the title.

I understand one benefit of join tables is it makes querying easier with SQL syntax. Since I am using JSON as my storage, I do not have that benefit.

But are there any other benefits when using a separate join table when expressing a many-to-many relationship? The exact expression I want to express is one entity's dependency on another. I could do this by just having a "dependencies" field, which would be an array of the IDs of the dependencies.

This approach seems simpler to me than a separate table / entity to track the relation. Am I missing something?

Feel free to ask for more context.

2279
79
2280
17
CID concept is broken (discuss.ipfs.tech)

TL;DR IPFS's "content addresses" don't actually address the content but a tree of the content stored in a protocol buffer, making it impossible to convert a hash to a content address.

DHT of CIDs? More like a Distributed Table of Lies!

2281
20

I am someone who has been trying to pivot into having a tech job. I have used LaTex before as a student and there is a job I am trying to take that uses Jaspersoft to make reports. Is jasper similar to LaTeX? Are there resources you found particularly helpful?

I am currently still looking to get my install, hello world, and combing their site.

2282
18
2283
71
submitted 2 years ago* (last edited 2 years ago) by fossit@lemm.ee to c/programming@programming.dev

It's not the most fancy thing out there, but if you're still using ChatGPT 3.5 and are looking for something a little different, why not give GPThemes a try? It's a free and open-source browser extension for Chrome and Firefox (Desktop and Android) that'll give your ChatGPT website a fresh new look.

WHAT AWAITS YOU:

  • Modern themes: Light, Dark, and Black (AMOLED) for a stylish and more visually appealing experience.
  • Effortless theme switching: Change themes on the fly with a single click using floating button. Well, fine, Mr. Nitpicker, technically it's a two-click saga 🥲
  • Chat bubbles: Modern and sleek conversation design that clearly differentiate your messages from the AI's responses
  • Clean and spacious layout: No more feeling cramped, just generous spacing and clean lines for smooth chat sessions.
  • Subtle animations: Enjoy a touch of elegance with subtle animations that enhance readability and flow.

SOON: Custom theming to personalize your chat experience with your chosen accent color, adding a unique touch to your conversations. See the live preview as you're selecting your perfect hue via colorpicker.

SAFE AND TRANSPARENT:

  • GPThemes requests two permissions:
    • Storage: To remember your chosen theme across all ChatGPT pages.
    • Access to chat.openai.com (old) and chatgpt.com (new) domain: To modify the website's appearance within ChatGPT.
  • Open-source code: You can see exactly what GPThemes does.

DOWNLOADS:

(The attached image is only a sneak peek)

2284
49
2285
16
2286
29

Nearly a decade back I wrote a lot of browser CI tests with headless chrome as well as browser stack. I loved the idea, but they just didn’t handle things being a bit outside of perfect IRL, like taking a moment longer to load etc. They ended up having a lot of waits in them, taking a long time to write and were prone to being flakey. The tests basically lacked “common sense” and it made me think that one day someone would figure out how to make them work better.

I’m wondering if there are new frameworks, workflows, startups that have made this stuff easier and better. I’m not really in tech anymore but I wouldn’t mind writing some tests if the experience was better.

2287
11

Niklas Gray writes:

I often find that when I work on the low level implementation of something I discover ideas that I can bring back and use to inform the high level design — to make it easier to work with, more performant, more orthogonal, etc. Thus, the flow goes back and forth from high-level to low-level, instead of just in one direction. If I’m stuck in some part of the high-level design, starting to work on the implementation is often the best way to get unstuck.

One such idea, which is really simple, but tends to lead to better and simpler code, is the idea of defaulting to zero. I.e. to always use 0 as the default or nil value. For example...

Read Defaulting to Zero

2288
67
How To Make Good Small Games (farawaytimes.blogspot.com)
2289
58

cross-posted from: https://lemmy.ca/post/20720928

2290
27
2291
73
2292
4
2293
-6

Tips for becoming a better Java developer, including upgrading Java versions, learning Kotlin, exploring other languages/frameworks, understanding Loom and Structured Concurrency, getting coverage from Oracle, learning Groovy and Scala, practicing Continuous Feedback, using Ktor, building side projects, focusing on observability, staying connected with the Java community, reading professional developer blogs, following influencers on social media, and signing up for a Java articles reading list.

2294
76
2295
20

This might be an odd question to ask, but I want to be sure to understand it correctly. When I clone a project in Github that is licensed under GPL-3.0 license, am I allowed to delete bunch of files that I no longer need?

Someone took an old BCX-BASIC program and converted it into C with some additional work to make it compile in Linux, and a Python GUI. The original Basic program is still included in the project. I want to delete everything besides the .c program, license and an include file. I want to add my own Makefile and just create the commandline executable with gcc. And I might change the name of the application too and either create my own GUI or maybe (if its possible) to integrate the C program in Rust or Zig in example, but have to explore this more.

But the files that were included there, the legacy BASIC program and some other files, are licensed under GPL-3 too. Am I allowed to just delete those files from the project?

2296
28
2297
4

Many commertial apps have options to run apps at logins... Is there any cross-platform way to do so in python or other languages?

2298
35
2299
138
2300
37

The evolution of software development over the past decade has been very frustrating. Little of it seems to makes sense, even to those of us who are right in the middle of it. My theory is fairly straightforward:

The long-term popularity of any given tool for software development is proportional to how much labour arbitrage it enables.

The more effective it is at enabling labour arbitrage, the more funding and adoption it gets from management.

view more: ‹ prev next ›

Programming

28322 readers
775 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!

Rules

Rules

  • 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

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 3 years ago
MODERATORS