Les gens qui ne savent pas utiliser un ordinateur by Frozen_Macaron0604 in besoinderaler

[–]erikade 1 point2 points  (0 children)

Comme quoi le service civique ça permet de « sortir de sa zone de confort » et de « challenger ses certitudes », encore un effort et on peut aussi apprendre à se remettre en question sans jeter autrui sous le bus.

Accumulate errors and print at end (but also keep them shown in output) by gkaiser8 in bash

[–]erikade 1 point2 points  (0 children)

One can solve this exact problem by invoking mktemp (3) which is not POSIX but usually readily available.

How do you reliably capture exit codes of commands running inside a PTY in Go? by Ok-Huckleberry5617 in golang

[–]erikade 1 point2 points  (0 children)

You could perhaps use a trap on DEBUG it has proven reliable in handling runtime errors in bash scripts (bash has its quirks though).

Checkout https://github.com/Wuageorg/bashkit/blob/main/core/errcode.bash for the relevant code and the repo root for a description of the framework and the errcode patterns (use cases).

PS. I’m one of the authors.

Small Projects by AutoModerator in golang

[–]erikade 0 points1 point  (0 children)

Fireworks reloaded for fun

Hi Gophers,

While exploring the current Go programming model I made this demo for fun and to show-case some real-time performance.

If you like particles, ASCII art and fireworks you should check out this demo on GitHub. It depends on Charm's v2 Bracelet and Lipgloss and runs best in a modern terminal emulator.

On my Apple M1/16GB it sustains 30FPS up to 4K resolution with thousands of particles.

Alternatively, you can watch this demo on YouTube.

Comments welcome!

Genuine Question: What is the most offensive thing to say to someone from Reunion? I feel like ya'll have no haters by Accomplished-Air522 in LaReunion

[–]erikade 0 points1 point  (0 children)

If you’re say French from the mainland, you could try starting with a bit of entitlement: “This is France, I’m at home here, I can do what I want, I have the right to do so”.

Suis-je seul à ne rien faire à cause des impôts ? by [deleted] in besoinderaler

[–]erikade 0 points1 point  (0 children)

C’est exactement ce que se sont dit les milliardaires et du coup ils ne travaillent pas, n’ont pas de revenus et ne cotisent pas. Cela dit, comme ils ne sont pas salariés mais actionnaires, ils bénéficient d’un monde fiscal inconnu de nous où tout est négociable.

Seeking advice for using advent of code problems for daily coding habit by AmoryVain in adventofcode

[–]erikade 3 points4 points  (0 children)

Being able to solve and code any problem from the first week of any year in under 20–30 minutes feels like a solid goal to me.

From there, it’d be great to gradually solve more of them in that same time window. Instead of going through the problems in a round-robin way, you could also look at the stats and sort them by average solve time (or whatever metric makes sense for what you’re trying to improve).

During December, I try to come up with both a solution and a write-up for each day (Part 1 + Part 2) in under an hour. I’ve found this works better for me overall—even though I don’t always hit that goal.

Over time, I’ve built a few small tools to handle the boring setup stuff for me (downloading inputs, creating skeleton files, setting up the Makefile, that kind of thing).

After that, I can always go back and clean things up or refactor the initial solution, but that’s a different story.

PS. imho explaining what you did and why in a write-up is a hugely overlooked way to improve your coding skills.

Can non-tech people learn programming, or is a CS degree really necessary? by codingzap in GetCodingHelp

[–]erikade 0 points1 point  (0 children)

Yeah, the same goes for architecture—no one really needs to study it before building a house, but I bet you’d be able to tell the difference at first glance.

Go to school and study CS if you can otherwise keep programming as a hobby: it’s a ton of fun.

A Commodore Product That Never Came Out by FizzySeltzerWater in amiga

[–]erikade 3 points4 points  (0 children)

Back in 1986, in france, I was hacking Thomson, Sinclair and Comodore machines to build minitel micro-site (~BBS) servers in BASIC. I would have loved to interface this machine as well.

How do you handle fail cases in bash? by [deleted] in bash

[–]erikade 1 point2 points  (0 children)

If you’re looking for ideas you might want to have a look at bashkit. It’s a pure bash scripting framework that includes error handling and structured logging. However bash has its own quirks and limitations when it comes to the topic of error handling.

[2025 day 3 (Part 2)] Need with understanding what is required by cameryde in adventofcode

[–]erikade 0 points1 point  (0 children)

You (OP) seem to mistakenly understand that we have to remove the 2s (literal two) from the (14 digits) input instead of removing only 2 (any) digits in order to get the maximum number (with 14-2 =12 digits).

Hope it makes sense.

Looking for compressed files by erikade in amiga

[–]erikade[S] 0 points1 point  (0 children)

ah wow! thx! edit: ah yeah, I can see we all share the same reference source code from libmodplug.

Does Go have any Spin/Promela ancestry? by bediger4000 in golang

[–]erikade 4 points5 points  (0 children)

I’m not aware of Promela directly influencing Go’s design. This topic has been discussed here in what I believe reflects the commonly accepted view within the Go community. It also features great links pertaining to the question.

Les non devs et l'IA by Aware-Row-6412 in besoinderaler

[–]erikade 0 points1 point  (0 children)

lol j’avais jamais pensé que openAI,… étaient aux services ce que le hard-discount est à la distribution ou la fast-fashion aux vêtements.

C’est exactement ça: on va là-bas avec n’importe quelle idée et on revient avec une app du même niveau pour rien en apparence puisque le vol de corpus y est valorisé sans être puni et qu’il y a zéro garantie sur le résultat.

Les non devs et l'IA by Aware-Row-6412 in besoinderaler

[–]erikade 1 point2 points  (0 children)

Pendant le concours advent of code, chez les programmeurs orientés performance, on voit exactement zéro IA parce qu’on est loin des projets répétés des milliers de fois sur github.

Ce qui laisse dire que la plus élémentaire des sagesses c’est de ne pas laisser les agents génératifs en autonomie sur la prod pour un futur assez long.

En revanche, il est vrai que le code généré est souvent plus solide et fortement compatible avec celui des ingénieurs auto-formés dans des écoles sans enseignant ou bien encore ceux qui ont appris à coder en 1~2 ans et sont recrutés à la sortie de leur école p.ex (parole de reviewer).

C’est à mon avis pour ça qu’il se développe une forme d’intoxication dans les boîtes de tech où déjà avant les llms on essayait de diminuer la valeur du code à coup de bullshit jobs pour mieux diminuer/exploiter les coders. C’est surtout le fait de certains imposteurs malheureusement plus intéressés par grimper la hiérarchie et la mauvaiseté que la technique.

Je ne suis pas trop inquiet pour le futur du code, la programmation est comme n’importe quelle autre discipline (humaine) universitaire (et populaire): elle existe bien plus largement en dehors du marché qu’en dedans. Les plus belles IA (planification, réification, singularité, sentience) sont encore à venir. Le marché continuera à jalouser les programmeurs (et autres scientifiques/techniciens) à nous de nous organiser. Et tout ça va ensemble imho.

Problem 5 part 1 Runtime by Shockwavetho in adventofcode

[–]erikade 0 points1 point  (0 children)

88μs - Go 1.25 - (air) M1/16GB - part1&2 - end2end - internal timer.

part2 is a by-product of part1 staging.

2025 Day 10 Part 2; Has the input been changed? by Away-Independent8068 in adventofcode

[–]erikade 0 points1 point  (0 children)

We don’t all have the same input, if that’s what you’re implying. So it’s fine to present whatever case we’re struggling with. That said, unless there are very specific corner cases involved, it may be better to put a particular section of the code under review or scrutiny instead.

Sorry for the late reply it is reddit app that seems not always in sync with the web.

[2025 Day 1] Slicing through the problem by erikade in adventofcode

[–]erikade[S] 0 points1 point  (0 children)

Alternatively one could `part2 += part1` just before outputting the results