26
-56

Have you performed simple arithmetic operations like 0.1 + 0.2? You might have gotten something strange: 0.1 + 0.2 = 0.30000000000000004.

27
29
Sidekick (github.com)

This looks pretty cool for quick deployment of hobby projects. Production grade and easy to use is always a win in my book.

28
174
29
569

Git cheat sheets are a dime-a-dozen but I think this one is awfully concise for its scope.

  • Visually covers branching (WITH the commands -- rebasing the current branch can be confusing for the unfamiliar)
  • Covers reflog
  • Literally almost identical to how I use git (most sheets are either Too Much or Too Little)
30
84
31
86

You can now inspect the DOM tree, view styles, evaluate JavaScript, and read console messages in Servo!

32
4

I have a .Net Core (ver 8.0) multiproject solution which uses a native library on linux (.so).

When I start the project with debugger on, the program exits with code 0 and without any messages when hitting the line which loads the library.
Without the debugger, it runs without issues.

So does somebody know how I can get debugging to work?

33
67

Hey all, I'm still a junior dev with years of experience in IT. One of the things I've noticed since making the switch is that (at least where I work) documentation is inconsistent.

Things I encounter include incomplete documentation, outdated documentation and written process details that have assumed knowledge which makes it difficult for junior Devs to pick up.

I've had a search and a lot of what is out there talks more about product and how to document that SDLC rather than best practice in writing and organising documents against the actual software engineering and its processes.

Does anyone have any good sources or suggestions on how I could look to try and begin to improve documentation within my team?

34
34

I figured out how to remove most of the safeguards from some AI models. I don't feel comfortable sharing that information with anyone. I have come across a few layers of obfuscation to make this type of alteration more difficult to find and sort out. This caused me to realize, a lot of you are likely faced with similar dilemmas of responsibility, gatekeeping, and manipulating others for ethical reasons. How do you feel about this?

35
51
36
174
37
204

The really interesting part is IMO this one:

38
75

Sorry for the somewhat noob question, but how do you pick a library for making a GUI for your apps? My background is in physics, so most of my programming is perfectly find with a CLI that outputs a graph as a ps file or some csv. I am looking to learn about making some neat little GUIs. I was thinking it would be a good idea to try and build my GUI out of the browser so that my app can be as portable as possible, but does this mean it has to be in Javascript or can the backend be done in anything else?

I am not really sure what I am asking, but wanted to get a feel for how people approach front ends.

Thanks :)

39
11

cross-posted from: https://lemmy.world/post/19949534

Interesting distribution of OSes from Stack Overflow.

40
15

https://positive-intentions.com/blog/dim-functional-webcomponents/

im investigating an idea i have about functional webcomponents after some experience with Lit.

Lit is a nice lightweight UI framework, but i didnt like that it was using class-based components.

Vue has a nice approach but i like working with the syntax that React used and i wondered if with webcomponents i could create a functional UI framework that didnt need to be transpiled.

i think the article is already quite long, so i think i will create a separate one as a tutorial for it.

note: im not trying to push "yet another ui framework", this is an investigation to see what is possible. this article is intended as educational.

41
89

Hello! I’m looking for book recommendations for learning programming fundamentals.

To be clear, I’m not necessarily looking for a book on learning language(s), but rather, programming, theory I guess you might call it?

For example, I’ve been playing around a lot in my terminal writing bash scripts, and I just implemented my first function. Another example, I know the phrase “Object Oriented programming”, but have no idea what it means.

I learn well by doing, and I’ve learned a lot just writing scripts and reading about bash scripting, but I also realize there’s a lot about programming at a higher level that I know nothing about.

42
44
43
58
submitted 2 weeks ago* (last edited 2 weeks ago) by mesamunefire@lemmy.world to c/programming@programming.dev

For the last 5(?) years or so I have been using GitKraken as my daily git driver for a while. I use it at my job mostly and love the functionality. I still use git via command line but jumping into git bash is nice no matter what os I am currently using.

I mainly use it:

  1. To see what branches have been modified (same as git tree but updates itself).
  2. Hooks into other git hosting like codeberg/gitea/forgeo without any real work. Login is also super easy and built in. Oauth is built in.
  3. Git amend is a one click interface.

There is other niceties like issue tracking, easy auto-creation of branches, etc... that I personally don't use all that much, but I can see the appeal.

The only real issue is the price. It used to be 30$ a year but now it's over 100+. I would happily pay 30 a year or pay one time for a license...but over 100 is too much in my opinion. I may go back to using all command line if the price keeps going up.

Is there any open source tools that do something similar it's the same look/feel?

44
19

A great introduction to what traces and spans are, how they work, and the OpenTelemetry Protocol

45
17

When managing a database, speed and efficiency are crucial. As applications handle more data and become more complex, the performance of database queries plays a big role in keeping everything running smoothly. One of the best ways to make queries faster is by using indexes. Similar to a book’s index that helps you quickly find a topic, database indexes allow you to find specific data without searching through the entire database. This article explains the basics of indexing, how it improves query performance, and some simple tips for using indexes effectively. Whether your database is small or large, understanding how to use indexes can help keep your application fast and responsive.

46
63
Announcing Swift 6 (www.swift.org)
submitted 2 weeks ago* (last edited 2 weeks ago) by popcar2@programming.dev to c/programming@programming.dev

The big thing about this release is it is a huge leap forward to making Swift a cross-platform language, and not something only built for Mac/iOS

Swift 6 unifies the implementation of Foundation across all platforms. The modern, portable Swift implementation provides consistency across platforms, it’s more robust, and it’s open source. macOS and iOS started using the Swift implementation of Foundation alongside Swift 5.9, and Swift 6 brings these improvements to Linux and Windows.

Swift is designed to support development and execution on all major operating systems, and platform consistency and expansion underpins Swift’s ability to reach new programming domains. Swift 6 brings major improvements to Linux and Windows across the board, including support for more Linux distributions and Windows architectures. Toolchains for all of the following platforms are available for download from Swift.org/install.

47
24
48
297

This article makes for an interesting read. Here follow two early paragraphs for context:

Oracle controls the JavaScript trademark because in 2009 it acquired Sun Microsystems, which applied to trademark the name with the US Patent and Trademark Office back in 1995. The trademark was granted in 2000.

While the database giant does not use the name for any commercial products, its ownership of the trademark has led JavaScript-oriented organizations such as events biz JSConf to adopt branding that avoids the term. As the signatories to the letter observe, the world's most popular programming language therefore can't have a conference that mentions what it's about.

Toward the end, the article mentions an initiative to legally pursue Oracle for trademark abandonment.

49
43

Hi ! I've been working on this article for the past few days. It would mean a lot to me if you could provide some feedback.

It is about implementing a physico-chemical simulation as my first attempt to write a shader. The code is surprisingly simple and short (less than 100 lines). The "Prerequisite" and "Update rules" sections, however, may need some adjustments to make them clearer.

Thanks for reading

50
-5

https://chat-to.dev/view_trend?id=651 #ProgrammersDay #programmer #Engineering #programming

view more: ‹ prev next ›

Programming

17117 readers
72 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 1 year ago
MODERATORS