What is Hackers' Pub?

Hackers' Pub is a place for software engineers to share their knowledge and experience with each other. It's also an ActivityPub-enabled social network, so you can follow your favorite hackers in the fediverse and get their latest posts in your feed.

0

When someone says „Scientists do not want you to know“ you can dismiss everything from there on. Scientists want you to know. They are desperate that you know. They can’t shut up about what they found out and want you to know.

0
40
0
1
0
0
1
0
0
0
0

RE: social.vivaldi.net/@TonyVivald

For the last two months, our mascot Tony has been trying to persuade people to leave Big Tech behind as their new year resolution for 2026. We're already in March, so it's time to put an end to this campaign, but we hope you'll let us keep walking with you on this journey towards digital sovereignity.

Here's some mantras for you to repeat in front of the mirror every morning:

"I can make choices."
"My data is mine to control."
"I'm done being used and abused by big corporations."

We've got this!

0
1
0
0
2
3
0
0
0
0
0
0
0
0
0
0
0
0

🕐 2026-03-03 12:00 UTC

📰 Async React時代の宣言的UI: デバウンスの例 (👍 67)

🇬🇧 Explores declarative UI in async React, showing how to handle debouncing declaratively instead of imperatively for cleaner code
🇰🇷 비동기 React의 선언적 UI 탐구, 디바운싱을 명령형 대신 선언적으로 처리해 깔끔한 코드 작성하는 방법 소개

🔗 zenn.dev/uhyo/articles/async-r

0
0
0
0
0
0

RE: freesewing.social/@Kholud1972/

If you have the means to help Kamala and Kholud, please donate to their campaign. They are suffering the incredibly harsh realities of life in the midst of a genocide and need our help and compassion.

chuffed.org/project/152941-hel

0
0
0

RE: social.vivaldi.net/@TonyVivald

For the last two months, our mascot Tony has been trying to persuade people to leave Big Tech behind as their new year resolution for 2026. We're already in March, so it's time to put an end to this campaign, but we hope you'll let us keep walking with you on this journey towards digital sovereignity.

Here's some mantras for you to repeat in front of the mirror every morning:

"I can make choices."
"My data is mine to control."
"I'm done being used and abused by big corporations."

We've got this!

0
0
0
1

I have a question about Python libraries and testing scope.

If I'm importing 'serial' in my library, and use it like the following to create a connection to a sensor:

--- start code ---

import serial

class Sensor:
def __init__(self, serial_device):

self.__serial_device = serial_device

try:
self.__connection = serial.Serial(
port=serial_device,
baudrate=9600,
bytesize=serial.EIGHTBITS,
parity=serial.PARITY_NONE,
stopbits=serial.STOPBITS_ONE,
)

except serial.SerialException:
print("Could not establish serial connection to sensor")

--- end code ---

how much testing should I do around the serial connection? Just mock up a few buffers (byte streams), and see how my class handles unexpected input?

One the one hand, I want to make the library as solid as possible. On the other hand, I don't want to run tests on code I don't control (the library module). I know of the 'mock-serial' utility, but haven't used it.

The aim is to make a Python version of my Arduino library for the CozIR Ambient CO2 sensor:

codeberg.org/mjack/ambientCO2/

0
0
0
2

I have a question about Python libraries and testing scope.

If I'm importing 'serial' in my library, and use it like the following to create a connection to a sensor:

--- start code ---

import serial

class Sensor:
def __init__(self, serial_device):

self.__serial_device = serial_device

try:
self.__connection = serial.Serial(
port=serial_device,
baudrate=9600,
bytesize=serial.EIGHTBITS,
parity=serial.PARITY_NONE,
stopbits=serial.STOPBITS_ONE,
)

except serial.SerialException:
print("Could not establish serial connection to sensor")

--- end code ---

how much testing should I do around the serial connection? Just mock up a few buffers (byte streams), and see how my class handles unexpected input?

One the one hand, I want to make the library as solid as possible. On the other hand, I don't want to run tests on code I don't control (the library module). I know of the 'mock-serial' utility, but haven't used it.

The aim is to make a Python version of my Arduino library for the CozIR Ambient CO2 sensor:

codeberg.org/mjack/ambientCO2/

0
1
0

Introducing TestFlight version of my latest app: Changelogs. It's an app that lets you track releases of other applications. Quickly add your favorites and receive notifications when new versions are available.

Started this one almost 4 years ago and finally decided to release to public. Looking for testers to find any issues before release to App Store.

testflight.apple.com/join/J849
changelogs.thanel.me

Screenshot of the main screen in the app. An unread queue that lists new releases in a card stack. You swipe right to mark release as read or left to keep it unread for later.Screenshot of timeline listing tracked application's releases in chronological order.Screenshot of the tracked applications list.Screenshot of the share extension showing new app being tracked.
0
0