5
submitted 1 week 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.

0
submitted 1 week ago* (last edited 1 week 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.

4
submitted 4 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?
1
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.

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

Shameless plug: I am the author.

30
submitted 1 year ago by bahmanm@lemmy.ml to c/lemmy@lemmy.ml

lemmy-synapse is a light-weight observability and monitoring stack for Lemmy servers.


Using Prometheus and Grafana, it allows the admins to visualise and query the stats of their instance. v1.0.0 comes out of the box with 3 detailed dashboards:

  • Host stats (CPU, RAM, disk, network, ...)
  • PostgreSQL stats (connections, locks, transations, queries, ...)
  • Docker stats (container CPU, RAM, disk, network, OOM signals, ...)

It runs as Docker compose cluster alongside the Lemmy cluster and does not require any changes to it in most cases. Uninstalling lemmy-synapse is as easy as tearing down its cluster and deleting its installation directory.


Got questions/feedback? Pray drop a line:

2
submitted 1 year ago by bahmanm@lemmy.ml to c/chess@lemmy.ml

I'm interested in registering for the tournament but I've got no clue as to where to begin? Where can I find the list of teams? How can I request to join a team?

I'd appreciate any help/hint 🙏

33
submitted 1 year ago* (last edited 1 year ago) by bahmanm@lemmy.ml to c/main@sh.itjust.works

Follow up on a previous post: [DISCUSS] Recent momentary outages


I've been working on a simple opt-in solution, primarily for Lemmy end users like me (but also helpful for admins), to easily check the status/health of their favourite instance.

🌎 lemmy-meter.info

You can find the details of the implementation in lemmy-meter github repo.


❓ @admins: would you be interested in adding your instance to lemmy-meter?

You don't need to do anything except confirming - I'll handle the rest. It should only take a few minutes for your instance to show up in lemmy-meter.

Out of the box it will send only 4 HTTP GET requests per minute to your instance. However that is totally configurable if it sounds too much or too little.


PS: I wasn't sure how to reach out to the admins short of messaging them individually.

8
submitted 1 year ago by bahmanm@lemmy.ml to c/meta@lemm.ee

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

Follow up on a previous post: [DISCUSS] Recent momentary outages


I've been working on a simple opt-in solution, primarily for Lemmy end users like me (but also helpful for admins), to easily check the status/health of their favourite instance.

🌎 lemmy-meter.info

You can find the details of the implementation in lemmy-meter github repo.


❓ @admins: would you be interested in adding your instance to lemmy-meter?

You don't need to do anything except confirming - I'll handle the rest. It should only take a few minutes for your instance to show up in lemmy-meter.

Out of the box it will send only 4 HTTP GET requests per minute to your instance. However that is totally configurable if it sounds too much or too little.


PS: I wasn't sure how to reach out to the admins short of messaging them individually.

11
submitted 1 year ago* (last edited 1 year ago) by bahmanm@lemmy.ml to c/lemmy_support@lemmy.ml

I'm working on lemmy-meter which is a simple observability solution for Lemmy end-users like me, to be able to check the health of a few endpoints of their favourite instance in a visually pleasing way.

👉 You can check out a screenshot of the pre-release landing page.


💡 Currently, lemmy-meter sends 33 HTTP GET requests per minute to a given instance.

For a few reasons, I don't wish lemmy-meter to cause any unwanted extra load on Lemmy instances.
As such I'd like it be an opt-in solution, ie a given instance's admin(s) should decide whether they want their instance to be included in lemmy-meter's reports.

❓ Now, assuming I've got a list of instances to begin w/, what's the best way to reach out to the admins wrt lemmy-meter?


PS: The idea occurred to me after a discussion RE momentary outages.

6
submitted 1 year ago* (last edited 1 year ago) by bahmanm@lemmy.ml to c/technology@lemmy.ml

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

A few days DHH (from 37signals) wrote about how they moved off the cloud and how that has helped reduce their costs by a good measure.

Well, earlier today, he announced the first bit of tooling that they used as part of their cloud exit move: Kamal - which is already at version 1.0 and, according to DHH, stable.


I took a quick look at the documentation and it looks to me like an augmented and feature-rich Docker Compose which is, to no surprise, rather opinionated.

I think anyone who's had experience with the simplicity of Docker Swarm compared to K8s would appreciate Kamal's way. Hopefully it will turn out to be more reliable than Swarm though.

I found it quite a pragmatic approach to containerising an application suite with the aim of covering a good portion of a the use-cases and requriements of smaller teams.


PS: I may actually try it out in an ongoing personal project instead of Compose or K8s. If I do, I'll make sure to keep this post, well, posted.

[-] 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 37 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 41 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