0
submitted 16 hours ago by bahmanm@lemmy.ml to c/devops@programming.dev

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

bmakelib (which is a minimalist standard library for GNU Make) v0.8.0 was released last week.

The highlight of the release is the ability to use maps/dictionaries in your makefiles!

Here's the example from the release page:

$(call bmakelib.dict.define,THIS_BUILD)
$(call bmakelib.dict.put,THIS_BUILD,arch,x86_64)
$(call bmakelib.dict.put,THIS_BUILD,dir,/tmp/my-app/build)

some-target :
	@echo BUILD.arch = $(call bmakelib.dict.get,BUILD,arch)  # x86_64
	@echo BUILD.arch = $(call bmakelib.dict.get,BUILD,dir)   # /tmp/my-app/build
1
submitted 16 hours ago by bahmanm@lemmy.ml to c/programming@lemmy.ml

bmakelib (which is a minimalist standard library for GNU Make) v0.8.0 was released last week.

The highlight of the release is the ability to use maps/dictionaries in your makefiles!

Here's the example from the release page:

$(call bmakelib.dict.define,THIS_BUILD)
$(call bmakelib.dict.put,THIS_BUILD,arch,x86_64)
$(call bmakelib.dict.put,THIS_BUILD,dir,/tmp/my-app/build)

some-target :
	@echo BUILD.arch = $(call bmakelib.dict.get,BUILD,arch)  # x86_64
	@echo BUILD.arch = $(call bmakelib.dict.get,BUILD,dir)   # /tmp/my-app/build
4
submitted 16 hours ago by bahmanm@lemmy.ml to c/java@programming.dev

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

If there was one reason I liked coding in Java, it'd be AssertJ and its brilliant extensibility.

The image is an example of it from bjForth

The ability to create custom assertions makes the test code concise and read naturally.

2
submitted 16 hours ago* (last edited 16 hours ago) by bahmanm@lemmy.ml to c/programming@lemmy.ml

If there was one reason I liked coding in Java, it'd be AssertJ and its brilliant extensibility.

The image is an example of it from bjForth

The ability to create custom assertions makes the test code concise and read naturally.

5
submitted 3 months ago by bahmanm@lemmy.ml to c/lemmy_meter@lemmy.ml

I've been recently thinking about the future of lemmy-meter and where should we go next from where we stand today.

It quickly became obvious to me that I've got no clue where do we stand today. I've been too caught up with my life (and possibly too lazy and distracted) that I never ran a survey to gather any sort of feedback.

Since many of you have been using lemmy-meter for more than a month already, I'd like to redirect the following important questions to you:

Strengths

What do you think lemmy-meter does right?
What are its strength?
In other words, what makes you enjoy using lemmy-meter (if at all)?

Weaknesses

Where do you think lemmy-meter falls short?
What are the things that make unsatisfied or even disappointed?

Potentials

Do you see any areas to explore that we haven't touched yet?
Do you think lemmy-meter can expand to cover new realms?
What could be the ideas that would take lemmy-meter to next level?

Thank you, Your friendly neighbourhood observability enthusiast

3
submitted 3 months ago by bahmanm@lemmy.ml to c/chess@lemmy.ml

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

I wanted to share a personal experience that might resonate with some of you. I've been diagnosed with ADD and major depressive syndrome, and for a long time, I struggled to enjoy over-the-board chess.

The fast pace and constant need for focus left me feeling drained and frustrated – blaming myself for not being able to concentrate.

Then, I discovered correspondence chess! This format allows for a much slower pace, giving me the time I need to analyze positions and make thoughtful moves. It's been a game-changer. No more pressure, just the joy of strategic thinking without the stress.

Do you ever feel like traditional chess isn't quite the right fit?

If you struggle with focus or find the fast pace overwhelming, correspondence chess could be for you! Here are a couple of options to get you started:

  • ICCF.com (International Correspondence Chess Federation): This is the official platform for serious correspondence chess with tournaments and rankings.

  • Daily Chess on chess.com: This is a more casual option where you can play correspondence games at your own pace.

Let me know in the comments if you've tried correspondence chess, or if you're interested in giving it a go!

4
submitted 4 months ago* (last edited 4 months ago) by bahmanm@lemmy.ml to c/chess@lemmy.ml

I stumbled upon Opening Master the other day and am quite tempted to buy the Golem subscription and use it with Scid.

Have you ever used their databases? If yes, can you share your thoughts please?

In particular:

  • How is the quality of the compilation?
  • Are there any annotated games in the database (like ChessBase)?
  • Is it as large as they claim it to be?
  • Does it receive proper regular updates?
10
submitted 4 months ago by bahmanm@lemmy.ml to c/programming@lemmy.ml

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

Shameless plug: I am the author.

275
submitted 4 months ago by bahmanm@lemmy.ml to c/linux@lemmy.ml

Shameless plug: I am the author.

14
submitted 6 months ago by bahmanm@lemmy.ml to c/programming@lemmy.ml

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

Just wanted to share some (exciting) news about my Common Lisp project, euler-cl. I finally got the time to sit down and integrate it with Codecov! This means a couple of cool things:

  • 📈 Test Coverage Tracking: I can now see how well my code is tested over time, giving valuable insights into code quality.
  • 🏅 Codecov Badge: euler-cl now sports a snazzy Codecov badge to show off!
  • 📦 Reusable Setup: The code and setup process should be simple enough to be used as a reference to integrate Codecov (and potentially other services) into your own Common Lisp projects!

If you're interested this commit is almost all you need: https://github.com/bahmanm/euler-cl/commit/855b014

Let me know in the comments if you have any questions or want to chat about integrating Codecov into your own projects!

4
submitted 8 months ago by bahmanm@lemmy.ml to c/programming@lemmy.ml

If you've found yourself manually crafting complex Docker images or repeatedly installing tools, I've got something for you 😁

Check out "fusions" in bdockerimg project (https://github.com/bahmanm/bdockerimg).


With fusions, you merge base images into powerful composite images.

Currently there are:

  • sdkman.bmakelib
  • quicklisp.bmakelib

Let me know what other fusions would make your Docker life easier 🙏

9
submitted 8 months ago by bahmanm@lemmy.ml to c/programming@lemmy.ml

I've been working on a small project called bdockerimg.

It's a collection of pre-built Docker images for some less common development tools (currently bmakelib, QuickLisp, and SDKMAN).

The idea is to streamline setup, especially for CI/CD pipelines, where I found myself repeating the same Dockerfile steps a lot. Basic functionality tests are included for a bit of extra peace of mind.


👀 Here's the repo if you're interested: https://github.com/bahmanm/bdockerimg
🗣 And here's the the Matrix room: https://matrix.to/#/#bdockerimg:matrix.org


I'm curious:

  • Does this seem like something you might find useful?
  • Are there any specific tools you'd love to see as easy-to-use Docker images?

This project is still in its early stages, so any feedback or contributions are much appreciated 🙏

[-] bahmanm@lemmy.ml 22 points 1 year ago

This is quite intriguing. But DHH has left so many details out (at least in that post) as pointed out by @breadsmasher@lemmy.world - it makes it difficult to relate to.

On the other hand, like DHH said, one's mileage may vary: it's, in many ways, a case-by-case analysis that companies should do.

I know many businesses shrink the OPs team and hire less experienced OPs people to save $$$. But just to forward those saved $$$ to cloud providers. I can only assume DDH's team is comprised of a bunch of experienced well-payed OPs people who can pull such feats off.

Nonetheless, looking forward to, hopefully, a follow up post that lays out some more details. Pray share if you come across it 🙏

[-] bahmanm@lemmy.ml 42 points 1 year ago

When i read the title, my immediate thought was "Mojolicious project renamed? To a name w/ an emoji!?" 😂


We plan to open-source Mojo progressively over time

Yea, right! I can't believe that there are people who prefer to work on/with a closed source programming language in 2023 (as if it's the 80's.)

... can move faster than a community effort, so we will continue to incubate it within Modular until it's more complete.

Apparently it was "complete" enough to ask the same "community" for feedback.

I genuinely wonder how they managed to convince enthusiasts to give them free feedback/testing (on github/discord) for something they didn't have access to the source code.


PS: I didn't downvote. I simply got upset to see this happening in 2023.

[-] bahmanm@lemmy.ml 33 points 1 year ago

If the controversies, allegations, rumors and gossips are about firefox though it definitely is important.
...
the huge chunks of money firefox gets from their biggest competitor

I think we're confusing things here 🙂

Examples of topics relevant to Firefox
  • [Hypothetical] Firefox collects user data w/o consent.
  • [Hypothetical] Researchers found government backdoors X, Y and Z in Firefox code base.
  • [Hypothetical] Firefox to disable Javascript by default.

Examples of topics NOT relevant to Firefox
  • Mozilla's contract w/ Google
  • Mozilla's political campaign
  • Mozilla's CEO allegedly being a selfish a-hole

Finally let's not forget that Firefox is an open source project, the result of the collaboration of hundreds, if not thousands, of people over the past 2 decades. Despite Mozilla's important role, there's way more to Firefox and its potential future than the usual corporate gossip/controversies.

My humble 2 cents 🙂

[-] bahmanm@lemmy.ml 73 points 1 year ago* (last edited 1 year ago)

I'd rather keep this community about Firefox the product and what it (doesn't) brings to the table. That's what I am, personally, interested in.

It'd be great if we could keep all the other things such as controversies, allegations, rumours, gossips, ... contained in a "mozilla" community and tried our best to maintain the separation.

[-] bahmanm@lemmy.ml 27 points 1 year ago

Interestingly "Bazzi" means "game" in Farsi 🤷‍♂️

[-] bahmanm@lemmy.ml 21 points 1 year ago

Tell me something I don't know already 😂 The challenge is helping non-techies understand why they should wean themselves off of FB 🤷‍♂️

[-] bahmanm@lemmy.ml 35 points 1 year ago

The GNU GPL is not Mr. Nice Guy. It says no to some of the things that people sometimes want to do. There are users who say that this is a bad thing—that the GPL “excludes” some proprietary software developers who “need to be brought into the free software community.”

But we are not excluding them from our community; they are choosing not to enter. Their decision to make software proprietary is a decision to stay out of our community. Being in our community means joining in cooperation with us; we cannot “bring them into our community” if they don't want to join.

[-] bahmanm@lemmy.ml 27 points 1 year ago

"Do you not know my son, with how little wisdom the world is governed?" 🤷‍♂️

[-] bahmanm@lemmy.ml 82 points 1 year ago* (last edited 1 year ago)

I wonder what would that mean for openSUSE, given that, apparently, an equity firm is making decisions on behalf of the SUSE board 😞

[-] bahmanm@lemmy.ml 48 points 1 year ago* (last edited 1 year ago)

This is the 2nd of such moves this year to my knowledge; first there was #Lightbend and #Akka and now this. What a year for #FOSS 😕

I know for a fact that so many organisations use #hashicorp products for commercial purposes w/o ever contributing back. And I understand how this may feel for hashicorp in these harsh economic times. Though this still is, IMHO, a cheap move: they used an OSS license for a very long time which resulted in a massive user base and a "soft" vendor lock-in, and now they decided to milk that user base.

Looking forwards to solid community-driven forks of their products 💪

[-] bahmanm@lemmy.ml 42 points 1 year ago

I'm a software engineer by profession and passion and have been writing programs for well over 20 years now. I believe your experience is totally natural - at least I share the same feelings:

  1. Large code bases take time getting to know and understand: most definitely true. It takes time and effort and is an investment you need to make before being able to feel confident. You don't need to fully comprehend every aspect of the project before you can contribute but you sure need to have a decent enough idea of how to build, test, run and deploy a particular feature. See point (2).

  2. Don't let the size of the project intimidate you. Start small and expand your knowledge base as you go. Usually one good starting point is simply building the project, running tests and deploying it (if applicable.) Then try to take on simple tasks (eg from the project's issue tracker) and deliver on those (even things like fixing the installation docs, typos, ...) That'll have the additional impact of making you feel good about the work that you're doing and what you're learning. I'm sure at this stage you will "know" when you're confident enough to work on tasks which are a bit bigger.

  3. During (1) and (2), please please do NOT be tempted to just blindly copy-paste stuff at the first sign of trouble. Instead invest some time and try to understand things, what is failing and why it is so. Once you do, it's totally fine to copy-paste.

After all, there's no clear cut formula. Each project is a living and breathing creature and "not one of them is like another." The only general guideline is patience, curiosity and incremental work.

view more: next ›

bahmanm

joined 1 year ago
MODERATOR OF