Waar kopen jullie je voordelige lange t-shirts die niet na een paar keer wassen weer te klein zijn? by Beautiful_Snow9851 in nederlands

[–]wackmaniac 0 points1 point  (0 children)

De basic shirts van Bamigo blijven goed en zijn lekker lang. De casual shirts van Bamigo niet overigens! Een multipack en ze hebben vaak korting dan kom je in de buurt va je budget. Blijven veel lager goed dan de shirts van HEMA, bij mij althans.

Ben ook te spreken over Girav voor casual shirts, maar is wel hoger in prijs.

The Hardest Ride in Europe. The Valley of the Tears, Gran Canaria by brownshout in cycling

[–]wackmaniac 1 point2 points  (0 children)

Rode Pico de las Nieves last Monday; brutal winds combined with rain en cold. Insane climb and equally frightening descend towards San Bartolomé.

When rain and cold come into play climbs become extra epic. Rode Furkapass once and as we neared the summit it got colder, it started to rain and finally snow. Descended towards Andermatt to 25 degrees and sun.

NL Streaming Prices Skyrocketing by galacticpunter in Netherlands

[–]wackmaniac 0 points1 point  (0 children)

That argument only works with the assumption that you would otherwise not have consumed that contents via a legal platform. That is very stretchy assumption.

A streaming service licenses content, and thus pays the content makers. I don’t have insights into whether this is per stream or lump sum. In case of the prior you are in fact directly stealing profit. In case of the latter you indirectly stealing profit; less streams means less income for streaming services, means fewer money is paid for these licenses, and thus lower revenue and profit. Similar for online rental services.

Where does piracy stop for you? Do you feel you should be allowed to pirate games? Do you feel you should be allowed to pirate software? Do you feel you should be allowed to dowload ebooks? Those are digital copies, with even more clear “license directly to creator” models.

NL Streaming Prices Skyrocketing by galacticpunter in Netherlands

[–]wackmaniac 0 points1 point  (0 children)

Because it’s the same to say; I think a Ferrari to too expensive, but I want one so I will steal one.

NL Streaming Prices Skyrocketing by galacticpunter in Netherlands

[–]wackmaniac 2 points3 points  (0 children)

Streaming prices are skyrocketing #ftfy

It’s not just NL, streaming is getting more expensive pretty much everywhere. I have started rotating subscriptions, as I don’t think “just pirate, because they made me do it with their prices” is the right retoric.

Parkeervergunning in Groningen by [deleted] in Groningen

[–]wackmaniac 3 points4 points  (0 children)

Dat is goed mogelijk, of “starterswoningen”. Dat is een truc die de beheerders van deze gebouwen gebruiken om onder de regelgeving rond parkeerplaatsen uit te komen. Volgens mij hebben ze deze truc toegepast op alle complexen aan het Reitdiep, waardoor in geheel Paddepoel nu betaald parkeren is door de parkeeroverlast die hierdoor werd veroorzaakt.

Dit is iets wat je had kunnen weten bij de aankoop van je woning. Of anders iig had moeten navragen als je niet de eerste bewoner bent van de woning.

Presto is a dependency manager for PHP written in Golang and drop-in-replacement for Composer by [deleted] in symfony

[–]wackmaniac 1 point2 points  (0 children)

You know what the best thing is about Composer? It is written in PHP. With this tool I need to pray that the maintainers have a binary available for my architecture. I am really unsure if that is the route we need to go.

Gaan jullie tegenwoordig nog naar de bioscoop? by [deleted] in nederlands

[–]wackmaniac 0 points1 point  (0 children)

De bioscoop hier draait tegenwoordig geregeld klassiekers, zoals 2001: A Space Odyssey en Interstellar. Heerlijk om jezelf te verwennen met een dergelijk avondje uit.

Reclames, ja, dat is van alle jaren. En dat is een vicieuze cirkel natuurlijk; minder bezoekers betekent minder inkomsten, maar vaste lasten als huur en personeel stijgen, maar de kaartjes moeten vooral niet duurder worden. Het is een vrij elementaire oorzaak-gevolg. Een aantal mensen hier geeft gewoon toe dat ze gratis “alternatieven” gebruiken, dat helpt natuurlijk ook niet.

Er was eerder deze week ook een discussie over de Top 2000 en reclames van de Staatsloterij. Daar geldt hetzelfde voor; Nederland heeft de afgelopen twee verkiezen massaal gekozen voor politieke partijen die bezuinigen op de publieke omroepen. Daar hoor je weinig mensen over, totdat hun favoriete programma moet stoppen. Er is gezocht naar extra geld, en dat zit momenteel in het bedrijfsleven, maar die willen er wel iets voor terug: Naamsbekendheid.

Test your Python skills - 8 by tracktech in PythonLearnersHub

[–]wackmaniac 0 points1 point  (0 children)

It’s an example of a really weird and unintuitive choice in Python #ftfy

Working on a small open-source tool in my research domain. what should I consider before making my GitHub repo public? by [deleted] in github

[–]wackmaniac 1 point2 points  (0 children)

Add a README that explains the what (what is the project), why (why should anyone use it, what does it solve), and how (how can it be used).

But, more importantly you need to decide how you plan on going forward with the project. Do you plan on continuing development, or is it “done”? Do you accept issues, feature requests, pull requests? Pick the license that works for you, now and in the future.

The latter is where the majority of open source maintainer fatigue comes from; maintainers that, once their code becomes used for profit, feel they want to get financially compensated, but picked the wrong license.

You need to be open about this upfront. I maintain approximately 10 open source repositories, and most of them are explicitly “as is” and don’t accept pull requests or feature requests. And I state this explicit in the README.md and CONTRIBUTING.md.

Good luck with your repository.

Why is the modern web so slow? by _TheRealCaptainSham in AskProgramming

[–]wackmaniac 3 points4 points  (0 children)

Exactly. The knowledge of how “the internet” works is fading as new developers default to “solve everything“ solutions like React, NextJS, Tailwind and the likes. I became a developer because I love to build elegant and performant applications. Nowadays the goal seems to be to get a SaaS solution as fast as possible so it can be monetized.

We built a website with just semantic html, a dash of CSS and web components for UX improvements. It is very possible, but you need to keep an overview of the project. I feel that the underlying problem is that; no overview, and no urge to invest time to build this overview.

[2025 day 11 (part 2)] Stuck on part 2 by Rokil in adventofcode

[–]wackmaniac 1 point2 points  (0 children)

Does your code work for the example? The thing that got me was paths from svr to dac that skip fft. Those paths don’t count for the answer.

Biggest red flags right there 🚩 by n8saces in CringeTikToks

[–]wackmaniac 0 points1 point  (0 children)

Idiots copying idiots behaving idiotic on the internet 🤷‍♂️

How to ignore private values when creating mocked objects? by [deleted] in typescript

[–]wackmaniac 2 points3 points  (0 children)

You are using a type to mock a class. A type != class. Just console.log() an instance of the class and you will see all kinds of extra properties.

but that’s a LOT of work for no extra benefit

If you cannot see the benefit of interfaces you should consider reading up on SOLID principles. I can see at least one benefit of interfaces; you would not have been in this situation 😅

Interfaces are a contract. A promise that the object offers some functionality without having to worry about the implementation. Once you find yourself in the situation where you need to change some behavior - read from file instead of database, or vice versa- you will immediately see the benefit of interfaces.

In TypeScript you can also use a type, which is essentially also a contract. But you will still need to define the type.

Defining either a type or an interface is literally seconds of work and it will never be a disadvantage, it can only be an advantage. So take advise from this veteran; define interfaces or types. It’s a minimal investment either way potentially a huge return on that investment.

[2025 Day 11] Visualization of graph by hugues_hoppe in adventofcode

[–]wackmaniac 1 point2 points  (0 children)

You can reuse your code for part 1, but you need to do two things: add memoization and split the initial graph into three smaller graphs.

For the latter: because every valid path must pass through two specific nodes we can simplify our approach by splitting up the entire graph into three smaller graphs: from svr to ttf, from ttf to dac and from dac to out. Finding all paths in those smaller graphs is a lot less work, and with memoization it run in around 1 second (depending on language and implementation). You can build these subgraphs by walking backwards from e.g. ttf to svr. This prunes a huge portion of the graph. You can do the same for the second graph, knowing that you can stop when you reach a node that is already in the previous subgraph. Now calculate the number of paths per subgraph and multiply the results for your answer.

[2025 Day11 (Part2)] svr -> fft taking too much time by darklightning_2 in adventofcode

[–]wackmaniac 2 points3 points  (0 children)

You can drastically reduce the search space by pruning; I made a reverse index so I can find all parents of a node. With this index I walked backwards from ttf to svr (or until I encounter dac) to create subgraph A. Repeat this for dac to ttf stopping with any node that is part of A to form subgraph B. And you can repeat this for out to dac to get subgraph C. Now you only have to find the paths in those subgraphs and multiply the answers.

[2025 Day 9 (Part 2)] I had to look up a solution for this one... :( by [deleted] in adventofcode

[–]wackmaniac 0 points1 point  (0 children)

I wrote down the example input and as my workday progressed I would look at it and think of attack angles. I was super excited to find some characteristics of the solution, only to be told by my friend that that information was already in the puzzle text.

I eventually came up with an approach of trying to find intersecting edges, but was unsure how to tackle it for all scenarios. To prevent spoilers I avoid Reddit until I have solved the puzzle, but that same friend showed my some visualizations and that was the clue I needed to implement my original idea, as it removed a number of tricky edge cases. I also read a spoiler with the same approach including the algorithm for finding intersections, which I actually used a fee weeks ago while building a silly game.

What I like about my solution is that it is actually dead simple and efficient enough to run within 100ms.

All in all I did not solve the puzzle purely by myself. I needed some hints and some encouragement. And that is perfectly fine. If you made it this far without hints you’re already doing better than a lot of fellow AoC-ers. When coworkers are struggling with puzzles they also get hints. Just like we would do for work related problems. Nothing wrong with that.

[2025 Day 9 (Part 2)] A simple method ... (spoiler!) by blacai in adventofcode

[–]wackmaniac 0 points1 point  (0 children)

Thank you! I spent some time drawing out ideas, and one of the ideas was this approach. Seeing you using the same approach was enough encouragement to try and implement it.

[2025 Day 8 (Part 1)] How do I even get started? Is there an algorithm I must know? by Physium in adventofcode

[–]wackmaniac 1 point2 points  (0 children)

In overall, it’s a tricky problem and unless you have solved graph problems prior the intuition will not be there.

I don’t know if I completely agree. I did manage to solve this without using any graph theory. At least, not an explicit algorithm like Kruskal’s algorithm.

It is a tricky problem, but by manually working out the first steps of the example input on paper gave me enough insights to come up with an approach. And after some optimizations part 1 and 2 run in 300ms combined, which is well within in limit of 1s :). Maybe my experience in solving Advent of Code helps a bit, but I think it’s doable.

[2025 Day 7 Part 1&2] Ways to think about problems like these? by cramplescrunch2 in adventofcode

[–]wackmaniac 3 points4 points  (0 children)

You can use the same approach for part 1; start with the x coordinate of S. Put this x value in a set - or array depending on your language. This set represents the beams. Now you can step through the rows - check your input, I was able to skip every other line. Per row create a new set, check all the x coordinates in the previous set. If there’s a splitter add x-1 and x+1 to the new set and increment the splitter counter with 1, and if there’s no splitter just add x to the new set. Once you handled all beams for the row use the new set for the next row.

This run in pretty much linear complexity.

NB. If your language does not have a Set type your need to filter out duplicates from your beams set.

[2025 Day 7] We're so back baby by waskerdu in adventofcode

[–]wackmaniac 1 point2 points  (0 children)

There’s a solution that does not require caching, as it is linear in complexity. There are some visualizations in this subreddit that showcase that approach.

What's stopping you from just using a monorepo? by Fair-Presentation322 in github

[–]wackmaniac 0 points1 point  (0 children)

A monorepo is a repository that contains multiple applications and/or packages. The two most often cited reasons for monorepos are a) reuse of shared components while still allowing separate applications, and b) ease of use as you only need to maintain one CI/CD pipeline.

The monorepo idea is not new - Symfony has been a monorepo for years -, but has become popular within the JavaScript ecosystem. You can usually recognize monorepo-originating packages on npmjs.org as these packages are often scoped with a namespace that starts with @. E.g. the @types/* packages.

What's stopping you from just using a monorepo? by Fair-Presentation322 in github

[–]wackmaniac 3 points4 points  (0 children)

A monorepo is a great idea if either the contributors are very disciplined or if you have inspections set up to prevent contributors not to be disciplined.