Searching txt.sour.is

Twts matching #shorts
Sort by: Newest, Oldest, Most Relevant
In-reply-to » This document is the result of a series of discussions between Robert "Uncle Bob" Martin and John Ousterhout, held between September 2024 and February 2025. The text addresses three main topics: method length, comments, and Test Driven Development (TDD). https://github.com/johnousterhout/aposd-vs-clean-code/blob/main/README.md This is something to read and reflect on for days.

Amd of course, TDD! I tried that, but it doesn’t work all that great for me in its strict form. I have the feeling that coming up with a single new failing test, making it pass, maybe some refactoring, rinse and repeat wastes significantly more time than doing it in – what they call – the “bundle” approach. Coming up with several tests in advance and then writing the code or vise versa is usually much quicker. I do find that more enjoyable, it also helps me to reduce smaller context switches. I can focus on either the tests or the production code.

As for the potentially reduced code coverage with a non-TDD approach, I can easily see which parts are lacking tests and hand them in later. So, that’s largely a specious argument. Granted, I can forget to check the coverage or simply ignore it.

I agree with John, TDD results in less elegant code or requires more refactoring to tidy it up. Sometimes, it’s also not entirely clear at the beginning how the API should really look like. It doesn’t happen often, but it does happen. Especially when experimenting or trying out different approaches. With TDD, I then also have to refactor the tests which is not only annoying, but also involves the danger of accidentally breaking them.

TDD only works really well, if you have super tiny functions. But we already established that I typically don’t like tiny methods just for the purpose of them being extremely short.

When fixing a bug, I usually come up with a failing test case first to verify that my repaired code later actually resolves the problem. For new code, it depends, sometimes tests first, sometimes the productive code first. Starting off with the tests requires the API to be well defined beforehand.

⤋ Read More
In-reply-to » This document is the result of a series of discussions between Robert "Uncle Bob" Martin and John Ousterhout, held between September 2024 and February 2025. The text addresses three main topics: method length, comments, and Test Driven Development (TDD). https://github.com/johnousterhout/aposd-vs-clean-code/blob/main/README.md This is something to read and reflect on for days.

@andros@twtxt.andros.dev Just before the pandemic, we watched Uncle Bob videos once a week in the lunch break. While almost all of my old teammates agreed with his views, I partially found them to be very odd and even counterproductive.

I didn’t come across John Ousterhout or any of his work before, at least not deliberately. So, this document is my first contact.

I only finished the chapter on comments and I totally agree with John so far. This document just manifests to me how weird Bob’s view is on certain subjects.

I always disagreed with the concept of a maximum method length. Sure, generally, shorter functions are probably better, but it always depends. And I’ve certainly seen super short methods that just made the code flow even worse to follow. While “one function should only do one thing” is a nice general rule, I’m 100% in team John with the shown examples. There are cases, where this doesn’t help readability at all. Not even close.

To me, a function always has to justify its existence. Either by reusing it at least at another place or by coming up with dedicated tests for it. But if it is just called once and there are no tests, I almost always decide against it. Personally, I don’t mind longer methods. We just recently had a discussion about that and I lost against two other workmates who are more in Uncle Bob’s camp, they refactored one medium sized method into three very short ones. Luckily, we agree on most other topics.

Lol, what!? The shorter the method, the longer the variables inside? I first thought I misread or the writeup mixed it up. I’ll always do it the other way around.

I’ve been also bitten badly by outdated comments in the past, but Bob must have worked on really terrible projects to end up with such an attitude to dislike comments. Oh well. No doubt, I’ve come across by several orders of magnitude more useless comments, in my experience (autogenerated) JavaDocs fall in the category more frequently than not. So, I know that there are different types of comments. A comment doesn’t automatically mean that it is good and justified.

But I also partially agree with Bob and John and think that a good name has a proper chance to save a comment. Though, when in doubt, I go John’s route and use a shorter name with a comment rather than use a kilometer long identifier. Writing good comments typically takes some time, sometimes much longer than writing the code. It regularly takes me several minutes. It’s a hard art.

I perhaps should read up on John’s work. He seems to be more reasonable and likeminded. :-) Let me continue to complete this document.

⤋ Read More

Short summary of Project2025 and Trump’s plans for the US:

  • Abolish the Federal Reserve
    Why? To end what is seen as an unelected, centralized body that exerts too much influence over the economy and monetary policy, replacing it with a more transparent, market-driven approach.

  • Implement a national consumption tax
    Why? To replace the current federal income tax system, simplify taxation, and increase government revenue through a broader base that includes all consumers.

  • Lower corporate tax rates
    Why? To promote business growth, increase investment, and stimulate job creation by reducing the financial burden on companies.

  • Deregulate environmental policies
    Why? To reduce government intervention in the economy, particularly in energy and natural resources sectors, and to foster a more business-friendly environment.

  • Restrict abortion access
    Why? To align with conservative pro-life values and overturn or limit abortion rights, seeking to restrict the practice at a federal level.

  • Dismantle LGBTQ+ protections
    Why? To roll back protections viewed as promoting LGBTQ+ rights in areas like employment and education, in line with traditional family values.

  • Eliminate diversity, equity, and inclusion (DEI) programs
    Why? To end policies that are seen as divisive and to promote a merit-based system that prioritizes individual achievements over group identity.

  • Enforce stricter immigration policies, including mass deportations and detentions
    Why? To prioritize border security, reduce illegal immigration, and enforce existing laws more aggressively, as part of a broader strategy to safeguard U.S. sovereignty.

  • Eliminate the Department of Education
    Why? To reduce federal control over education and shift responsibilities back to local governments and private sectors, arguing that education decisions should be made closer to the community level.

  • Restructure the Department of Justice
    Why? To ensure the department aligns more closely with the administration’s priorities, potentially reducing its scope or focus on areas like civil rights in favor of law-and-order policies.

  • Appoint political loyalists to key federal positions
    Why? To ensure that government agencies are headed by individuals who are committed to advancing the administration’s policies, and to reduce the influence of career bureaucrats.

  • Develop training programs for appointees to execute reforms effectively
    Why? To ensure that political appointees are equipped with the knowledge and skills necessary to implement the proposed changes quickly and effectively.

  • Provide a 180-day transition plan with immediate executive orders
    Why? To ensure that the incoming administration can swiftly implement its agenda and make major changes early in its term without delay.

Do y’all agree with any/all/some of these poliices? Hmmm 🤔

#Project2025 #US #Trump

⤋ Read More

**Short summary of Project2025 and Trump’s plans for the US:

  • Abolish the Federal Reserve
    Why? To end what is seen as an unelect …**
    Short summary of Project2025 and Trump’s plans for the US:

  • Abolish the Federal Reserve

Why? To end what is seen as an unelected, centralized body that exerts too much influence over the economy and monetary policy, replacing it with a more transparent, market-driven approach.

  • Implement a national consumption tax

Why? To replace the current federal income tax system, s … ⌘ Read more

⤋ Read More

Some of the country’s most coveted voters are fed up with American democracy
John Sakellariadis,    -  Politico

_Stephan: This, I think, encapsulates where American voters stand in both parties. I think much of this is driven by the research paper on Humanity’s Precognition that I posted to SR a short while ago. If you haven;t read it I suggest you do (go to the SR archive). WHat I don’t understand is why the Democractic Party cannot seem to compreh … ⌘ Read more

⤋ Read More
In-reply-to » My take on the discussion to introduce an ? operator in Go 👈 No. For so many reasons.

@prologic@twtxt.net Which one? I don’t mind the ternary operator at all. In fact, I often find myself missing it in Go. I don’t find the two alternatives particularly elegant:

foo := "eggs"
if bar {
    foo = "spam"
}

Or:

var foo string
if bar {
    foo = "spam"
} else {
    foo = "eggs"
}

To my eye, this just would look a lot nicer:

foo := bar ? "spam" : "eggs"

Or at least as the Pythons do it:

foo = "spam" if bar else "eggs"

The ternary operator especially shines with relatively short expressions.

⤋ Read More

KCD Austria 2024: a celebration of cloud native 🌐🎬
The lights dimmed, the screen lit up, and the atmosphere was nothing short of electric. KCD Austria 2024 took place in the heart of Vienna, transforming a classic cinema into a hub of cloud native innovation… ⌘ Read more

⤋ Read More

4000 km with my pedelec
Today, after a short evening shift in the old/new apartment, I reached 4000 km total distance with my Pedelec (the only legal option for an electric bicycle without insurance in Germany – up to 25 km/h is supported by a motor when pedaling). ⌘ Read more

⤋ Read More

Orbbec Unveils Gemini 215 Stereo 3D Camera and Pulsar SL450 at CES 2025
At CES 2025, Orbbec introduced the Gemini 215 Stereo 3D Camera and the Pulsar SL450 dToF Single-Line LiDAR. The Gemini 215, designed for high-precision scanning, features depth measurement accuracy of less than 0.5 millimeters, multi-camera synchronization, and a lightweight build, making it suitable for various short-range 3D scanning applications. The Gemini 215 is engineered for […] ⌘ Read more

⤋ Read More

10 Events from 2024 That’ll Be in History Textbooks One Day
We’re not entirely sure if they still have history books in school or if they just teach kids these days using TikTok videos and Instagram reels to account for their short and fractured attention spans. Okay, we’re kidding about that little quip… we hope. We’re pretty certain that textbooks are still a thing, whether in […]

The post [10 Events from 2024 That’ll Be in History Textbooks One Day](https://listverse.com/ … ⌘ Read more

⤋ Read More

** Year in review, 2024 **
As a treat, I figured I could write a year in review kinda thing, too. In no particular order here are some reflections organized into some mostly sensical categories.

Health

Since recovering from my brain bleed and the subsequent repair procedures, this year I’ve enjoyed getting back into a routine of exercising. I’ve never been one to track numbers, or reps, or distances — I mostly exercise because I enjoy doing it. This year I got back into going for regular short runs, very long walks (sorry aging d … ⌘ Read more

⤋ Read More
In-reply-to » For Example:

my 2 cents here…
I agree on displaying a short @nick.

We could hover on the nick to see the full detail which could be @nick@domain.tls or the full URL
Also it could be a display option in Preferences in case your account starts showing many collisions.

The disambiguation for collisions is the .txt URL and the nick inside it, right ?

⤋ Read More

4rkal submits CCS proposal to develop and release ‘dmvp2p’ v1
4rkal1 has submitted a CCS proposal2 looking to finish developing Donate Monero Via P2Pool (dmvp2p) 3 version 1, create project documentation and a step by step video:

dmvp2p short for Donate Monero Via P2Pool, is a simple GUI application that allows users to donate monero to their favorite creators/projects using p2pool. This project is a cross platform application that will enable micro-tipping via p2p … ⌘ Read more

⤋ Read More

[ANN] Serai’s status as 2024 wraps up

This is an update on where the Serai project is. While I wish I could keep this professional, parts of it will be fundamentally intertwined with my personal life. Apologies to anyone who just wants a short, professional brief. [..] I am happy and relieved to announce an anonymous donor has enabled Serai’s upcoming audits. The donations themselves have been facilitated by MAGIC Grants.

Links:

⤋ Read More

‘The Monero Moon’ newsletter makes comeback with Issue #75 after short hiatus
John Foss1 has published Issue #752 of The Monero Moon curated weekly newsletter after a ~3.5 month hiatus:

After a few months’ hiatus due to life commitments ( wedding bells), we’re back! Explore this week’s edition for an update on all the latest Monero (XMR) news, developments, and entertainment!

The publication includes news about:

  • Development, Releases, and Technology
  • General News
  • Eve … ⌘ Read more

⤋ Read More

Managing large-scale Redis clusters on Kubernetes with an operator – Kuaishou’s approach
Member post originally published on KubeBlocks by Yuxing Liu As a popular short-form video application, Kuaishou relies heavily on Redis to deliver low-latency responses to its users. Operating on private cloud infrastructure, automating the management of… ⌘ Read more

⤋ Read More

[LTT] GBP>XMR - FMD

Exiled localcrypro to localmonero p2p trader here, offering my service to those who feel lost with the reccent news. I can offer GBP>XMR with a short simple KYC for bank deposits. Or, if you prefer No KYC with myself, I also accept Volet or Paysend, plus a few other crypto options such as USDT or LTC. Please feel free to send me a message if you think I can help you :)

Link: XMPP

… ⌘ Read more

⤋ Read More

A short winter bike tour
Yesterday, I watched some cycling videos and that somehow gave me some motivation to do at least one more short bike tour this year. Today, I did a short round around the city and saw some new places. With 5° Celsius and some sun, the temperature wasn’t the best, but at least it didn’t rain. To keep the motivation high, I listened to some music with my new headphones. ⌘ Read more

⤋ Read More

What to Expect From Apple’s Powerbeats Pro 2 Next Year
A few months ago, Apple shared a short teaser video in which it revealed that it will be releasing new Powerbeats Pro 2 next year. The video showed MLB superstar Shohei Ohtani wearing the upcoming version of the earbuds, which appear to have some slight design changes compared to the original Powerbeats Pro from 2019.

![](https://images.macrumors.com/article-new/2024/0 … ⌘ Read more

⤋ Read More

The last week I’ve been playing around with https://github.com/comfyanonymous/ComfyUI , dang good tool for testing ai models and such. I really like the node based workflow.
And makes it super easy to test any AI model.
Only thing I miss now - is one of those image to video setup’s, that’s what I’m working on fixing now. So that I can generate images, and then automatically make them into short videos as well.
Fun to play around with.

⤋ Read More

The Fediverse Is Getting Its Own TikTok Competitor Called Loops
An anonymous reader quotes a report from TechCrunch: Similar to how Mastodon offers an open source, distributed version of X, the fediverse is getting its own TikTok competitor. This week, an app called Loops began accepting signups on its new platform for sharing short, looping videos. Still in the early stages, Loops is not yet open sourced, nor … ⌘ Read more

⤋ Read More

Getmonero.org to switch to Astro with fresh design by rehrar
The Monero community has apparently finally reached consensus1 in today’s Monero Website Workgroup meeting2 to migrate the official Getmonero.org website from Jekyll to Astro3 and task rehrar 4 with creating the new design:

In short, unless there are EXTREMELY compelling reasons given now or after the fact (and they should be very very very compelling, not just “I wasn’t there”, we are now, d … ⌘ Read more

⤋ Read More

[ANN] Movie featuring Monero playing in the San Francisco Bay Area this Sunday

If you haven’t seen Límite yet and live close to San Jose, you can check it out this Sunday in the 2:30pm block (ALL THE WORLD’S A STAGE) of the San Jose International Short Film Festival. Or come down to Mexico City on November 14 where we’ll have our Mexican premiere during Monerotopia!

Links:

  • https://sjsff.com/
  • [/george-nicholas-ccs-proposal-release-mark-of-distinction-independent-film/](/george-nicholas-ccs-proposal-relea … ⌘ Read more

⤋ Read More

More thoughts about changes to twtxt (as if we haven’t had enough thoughts):

  1. There are lots of great ideas here! Is there a benefit to putting them all into one document? Seems to me this could more easily be a bunch of separate efforts that can progress at their own pace:

1a. Better and longer hashes.

1b. New possibly-controversial ideas like edit: and delete: and location-based references as an alternative to hashes.

1c. Best practices, e.g. Content-Type: text/plain; charset=utf-8

1d. Stuff already described at dev.twtxt.net that doesn’t need any changes.

  1. We won’t know what will and won’t work until we try them. So I’m inclined to think of this as a bunch of draft ideas. Maybe later when we’ve seen it play out it could make sense to define a group of recommended twtxt extensions and give them a name.

  2. Another reason for 1 (above) is: I like the current situation where all you need to get started is these two short and simple documents:
    https://twtxt.readthedocs.io/en/latest/user/twtxtfile.html
    https://twtxt.readthedocs.io/en/latest/user/discoverability.html
    and everything else is an extension for anyone interested. (Deprecating non-UTC times seems reasonable to me, though.) Having a big long “twtxt v2” document seems less inviting to people looking for something simple. (@prologic@twtxt.net you mentioned an anonymous comment “you’ve ruined twtxt” and while I don’t completely agree with that commenter’s sentiment, I would feel like twtxt had lost something if it moved away from having a super-simple core.)

  3. All that being said, these are just my opinions, and I’m not doing the work of writing software or drafting proposals. Maybe I will at some point, but until then, if you’re actually implementing things, you’re in charge of what you decide to make, and I’m grateful for the work.

⤋ Read More

On removing content
I recently read this short post by Kev Quirk. It’s about removing content from the web. While Manuel Moreale is against deleting content from the web, Kev thinks he would probably delete things if he feels bad about them. ⌘ Read more

⤋ Read More

Where the Eder flows into the Fulda
Just in time before it gets cold and rainy again next week, I took advantage of today to go for a short bike ride. Upstream along the Fulda, over to the Eder and then to where the Eder flows into the Fulda. This was the short (49 km) of the two versions I had planned for this. The longer version is almost 90 kilometers long. Let’s see if I can still do it this year… ⌘ Read more

⤋ Read More

Apple Pulls Latest Ad After Criticism Over Depiction of Thailand
Apple today issued an apology to Thailand for the way the country was portrayed in a July “The Underdogs” short film, and the video has also been removed from Apple’s YouTube channel. In the ad that was released on July 18, the underdogs design team traveled to Bangkok and Rayong, Thailand for a project and were depicted traveling in a tuk-tuk and staying … ⌘ Read more

⤋ Read More
In-reply-to » @bender Hmmmm I'm not sure about this... 🧐 Does anyone have any other opinions that know this web/session security better than me?

Could you perhaps just have a check box to do the opposite, like “Don’t remember me”? I’ve seen that a couple of places I think. Sort of an opt in short lived login, if you’re at a public library or something etc.

⤋ Read More

Apple Teases June 25 Beats Pill Unveiling
Apple appears to be planning to unveil its new Beats Pill speaker on Tuesday, June 25, according to a teaser shared on social media site X (formerly Twitter) today.

Image

The Beats by Dre account posted a short video starring LeBron James and featuring the Beats Pill speaker, with the text “6/25,” which seemingly hints at the debut date of the device.

Signs of a … ⌘ Read more

⤋ Read More

Watch the Full WWDC 2024 Keynote Video, or Short Clips
Apple’s WWDC 2024 keynote was aired on the morning of June 10, and tons of things were announced and covered over the course of a nearly two hour long marathon event presentation. Apple Intelligence. iOS 18 with new customizations to the Home Screen and Control Center. iPadOS 18 gets that too, plus a Calculator app. … Read MoreRead more

⤋ Read More

sysmond on Mac Using High CPU? Here’s the Likely Reason & How to Fix It
sysmond, which as you may have surmised from the process name, is short for System Monitor Daemon, is part of Activity Monitor. Thus, if you use Activity Monitor to keep a watch on your Mac system resources, processes, CPU usage, Energy use, Disk, Network, and critical to our discussion here – Memory usage, you may … Read MoreRead more

⤋ Read More

What should I do with my new domain?
I recently complained about domain registrars. But I also recently registered a new domain: j7s.me. A numeronym of my first name. And the .me TLD to show that I am a person. (And it is a short domain that was available.) ⌘ Read more

⤋ Read More

Deals: Get Apple Watch Series 9 for $329, Series 8 for $249, Ultra for $730, Before Sales Ban Starts
If you’re shopping for an Apple Watch this holiday season, you’re running short on time. Not only is Christmas fast approaching, but a new twist has developed where Apple must stop selling Apple Watch models due to an ongoing patent issue. Apple will stop selling Apple Watch due to a patent dispute, starting on December … [Read More](https:/ … ⌘ Read more

⤋ Read More

It is a pleasure to work with the help system of Borland’s Turbo C++ 3.0 on DOS. The descriptions are clear and concise. There are short and simple examples. Pretty much every help page is cross-refenced and those links can be clicked.

⤋ Read More

Catching COVID-19
So far, I had been spared from COVID-19. “Had,” focusing on the past, because now it has affected me, or us, after all. We had to cut short our vacation, which I used to share little glimpses of here on the blog. We quickly went back home, wearing masks the whole time and hoping not to infect more people. ⌘ Read more

⤋ Read More

Ignite Realtime Blog: Certificate Manager plugin for Openfire release 1.1.1
The Ignite Realtime community is happy to announce a new release of the Certificate Manager plugin for Openfire.

This plugin allows you to automate TLS certificate management tasks. This is particularly helpful when your certificates are short-lived, like the ones issued by Let’s Encrypt.

This release is a maintenance release. It adds translations. More details are available in the [changelog] … ⌘ Read more

⤋ Read More
In-reply-to » @darch I think having a way to layer on features so those who can support/desire them can. It would be best for the community to be able to layer on (or off) the features.

@xuu@txt.sour.is @prologic@twtxt.net Yarn.social without threading (as it would be the case in a “truncated” feed) does not make sense to me.

Put another way: Yarn.social is not twtxt. The content that we all have in our feeds really is much closer to a web forum or usenet or whatever. It’s threaded conversations. twtxt, as I believe it was originally intended, are short little status updates – that’s it. The formats of Yarn.social and twtxt might be very similar, but the content is vastly different and, in a way, incompatible. (As such, I think I understand very well that the original twtxt crowd is disgruntled.)

That proposed truncated feed doesn’t really provide any value, if you ask me. 🤔 It’d just be chaotic.

⤋ Read More
In-reply-to » Posting from c++, fltk GUI.

A lot of more work needs to be done, but at least now I got the basic timeline stuff done, took a good while to figure out how to solve it, but now I know. The reason why the statuses are cut short on some is because of html tags and stuff like that - c++ is a bit picky with strings and stuff like that. but I’ll get that sorted as well.
At least I can show the first screenshot. Keep in mind the GUI is not at all finished, I’m working on the basics first, implement all the features, then I work on finishing touches.

Image

⤋ Read More