somegeek

joined 3 years ago
[–] somegeek@programming.dev 1 points 4 days ago

Losing your virginity

[–] somegeek@programming.dev 1 points 6 days ago (1 children)

90% of the time when I want to do one of these things there's a better tool nearby. A box cutter, a bottle opener etc. Maybe it's the fact that I spend 90% of my time in an office :d

[–] somegeek@programming.dev 1 points 1 week ago (3 children)

can you share some of your common uses? For me it's wierd that I almost never have any use for my knives.

[–] somegeek@programming.dev 3 points 1 week ago

Ooof this is nice. I'm a huge Metro fan

[–] somegeek@programming.dev 1 points 1 week ago

Nur means light in Persian and Nura means something like "Shining" or "The one who brings light"

[–] somegeek@programming.dev 3 points 1 week ago

The polish notation is the simplest thing to wrap you head around. Instead of operations being special syntax exceptions, they're just functions! Functions that take parameters.

the only syntax of lisps are (myfun p1 p2 p3)

Mathematical operations are no exception (unlike otger languages). To make it simpler, think of it like this: + is just an alias (macro) for a function named plus which does addition. (plus 1 2 4 5) is the same as (+ 1 2 4 5). We don't use infix notation because then that would be a syntactic exepction (like other languages) while this is the only syntax we have in lisp, for everything it's really simple.

and also, how is (1 + 2 + 4 + 5) (15 chars) better than (+ 1 2 4 5) (11 chars)? It's a conceptual shift and once you make it, it makes so much more sense.

[–] somegeek@programming.dev 1 points 1 week ago

i read the first paragraph

in the age of AI and agentic development

React won

not really worth reading further.

[–] somegeek@programming.dev 1 points 1 week ago

But I'm sure you get the gist

[–] somegeek@programming.dev 1 points 1 week ago (4 children)

Will it calculate traffic somehow and choose best route?

[–] somegeek@programming.dev 5 points 1 week ago

But the usage heavily overlaps

[–] somegeek@programming.dev 3 points 1 week ago (3 children)

Explain how it works or what it is?

It's just a feed you can follow (think of following someone on IG or twitter). You'll get notified about the new content on that feed.

You can subscribe to all the feeds that are interesting to you and now you have a place to read the all and get notified when something new is out.

[–] somegeek@programming.dev 1 points 1 week ago

What have we gotten into

 

Hi. I want to get my little cousins into computers, and since they're kids, making games are really fun for them. I made a game with them with Love2D and they had a blast (I put their faces on the characters) but I think Love2d is a bit too hard for them.

My main motive for them is to make something and be creative. Programming is just a tool for that.
So something simpler with less code and mental load that let's them create stuff more simply is good.

What do you guys suggest?

 

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

A local Māzandarāni music band playing for their friends and families.

I personally really like this image. I think it looks like a painting with so much going on.

Edited in Darktable

https://alavi.me/gallery/2025-04-02-2/

11
submitted 1 month ago* (last edited 1 month ago) by somegeek@programming.dev to c/foss@beehaw.org
 

The basics about types of open-source software licenses, their differences, how to choose a license etc.

 

The basics about types of open-source software licenses, their differences, how to choose a license etc.

I see a lot of programmers that really don't know much about licensing and just default to MIT.
To be fair to them, it's a pretty boring and headache enducing topic, but I tried to distill it here.

Hope it helps.

 

This is my bulgarian bag. I feel like the handles won't last that long like this. Will wrapping duct tape or something around them increase their lifespan? Any other tips?

 

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

Hi people. I'm creating a system using HTMX
It's a server using clj-kit, which renders "components" using hiccup and HTMX based on the requests.
A component generator basically. But it also has some JSON APIs which return pure data.

The details don't matter. It just exposes REST APIs, user calls REST API with their own custom params and get their custom component.

The goal is so this can be used for progressive rewrite and enhancement of legacy systems, and the components to be usable in multiple systems, reducing work.
In order for the user of the system to be able to use these components, they should also add HTMX to their client, and call the service. for example

<div hx-get="https://component.service/componentx?data-url=https%3A%2F%2Fdata.source%2Fdata" hx-trigger="load">

This is the architecture I thought of. Is this ok? This HTMX article on security says it's not ok to call HTMX with external sources. So what is the best way you suggest to create such system?

I'm halfway through it already, but I would like to hear what others have to say and your suggestions. Maybe HTMX isn't the right choice at all? I felt like it is.

Thank you.

 

Hi people. I'm creating a system using HTMX
It's a server using clj-kit, which renders "components" using hiccup and HTMX based on the requests.
A component generator basically. But it also has some JSON APIs which return pure data.

The details don't matter. It just exposes REST APIs, user calls REST API with their own custom params and get their custom component.

The goal is so this can be used for progressive rewrite and enhancement of legacy systems, and the components to be usable in multiple systems, reducing work.
In order for the user of the system to be able to use these components, they should also add HTMX to their client, and call the service. for example

<div hx-get="https://component.service/componentx?data-url=https%3A%2F%2Fdata.source%2Fdata" hx-trigger="load">

This is the architecture I thought of. Is this ok? This HTMX article on security says it's not ok to call HTMX with external sources. So what is the best way you suggest to create such system?

I'm halfway through it already, but I would like to hear what others have to say and your suggestions. Maybe HTMX isn't the right choice at all? I felt like it is.

Thank you.

 

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

Hi!

I've never read any of Uncle Bob's books. But I have taken interest in "Clean Architecture" as it seems like a good solution to make mid to large sized projects simple to understand and maintain.

I think MVC gets too much coupling and fails at larger projects, same with n-tier. But I'm not sure about anything right now (software design is a very complicated problem after all).

So I was wondering if you friends who have used Clean Architecture in production can share your knowledge and experience with me about this design?

Is it actually good and worth investing in?

Footnote:

I'm especially weighing this architecture because Uncle Bob's writings are really hit and miss. I don't see him as a master or guru so I take everything he says with a grain of salt.

 

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

Hi!

I've never read any of Uncle Bob's books. But I have taken interest in "Clean Architecture" as it seems like a good solution to make mid to large sized projects simple to understand and maintain.

I think MVC gets too much coupling and fails at larger projects, same with n-tier. But I'm not sure about anything right now (software design is a very complicated problem after all).

So I was wondering if you friends who have used Clean Architecture in production can share your knowledge and experience with me about this design?

Is it actually good and worth investing in?

Footnote:

I'm especially weighing this architecture because Uncle Bob's writings are really hit and miss. I don't see him as a master or guru so I take everything he says with a grain of salt.

view more: next ›