Marco Pallante
mpallante.bsky.social
Marco Pallante
@mpallante.bsky.social
🇮🇹 Programmatore
🎞️ Fotodilettante chimico
Whom, however, got their knowledge from World of Tanks encyclopedia and stats 😂

By the way, my non-computer related big interest is film photography
July 1, 2025 at 6:42 AM
Well, just discussing online about the Hammond could qualify as an hobby by itself 😂
June 30, 2025 at 7:56 PM
… inside a branch, just edit the same “creational” migration until it has a good looking shape (I usually refactor DB schema too), and having just one merge with one migration only.
How would you manage those situations without feature branches? Probably I am missing something
June 30, 2025 at 11:38 AM
… base. We apply changes to the DB with the migrations facilities of our web framework, but if the changes are spread over many days (and usually they are) I’d end up with so many migrations just for a single table.
I find in these case feature branch as a viable solution: isolate those changes…
June 30, 2025 at 11:38 AM
Let me ask a question from real scenario. I work on a non-saas web product that has one installation per client.
Often I need to create a new feature that also involves some changes to the DB schema, eg a new table.
When the feature is not small, I’m usually not ready to push to main on a daily…
June 30, 2025 at 11:38 AM
Do you also play it 😅?
June 30, 2025 at 11:11 AM
a solution. I then discovered git and a git-svn integration to use git locally and svn as remote. It worked and never switched back to anything else.
Btw changelog in source files was then normal even when using a source control. I did that and always found a pain 😅
June 22, 2025 at 7:39 AM
In my first programming job, we barely used a version control system. Btw it was subversion. Then it came the 2009 L’Aquila earthquake and I wandered remotely for some months with intermittent internet connection. I wasn’t able to connect to SVN server every time I needed to, so I searched for
June 22, 2025 at 7:39 AM
I had the same computer! It was my first one, but it came with color display. I should recover it from y my parent’s attic
February 8, 2025 at 9:31 PM
With some improvements, I was able to cut the function calls and went from 2.9 seconds to just 1.5 for part 2.

Part 1 solver was basically unaffected, going from 0.09 to 0.07 seconds.
December 10, 2024 at 9:13 AM
What’s wrong with C# arrays? Never learnt the language, but cannot imagine.
December 7, 2024 at 6:04 PM
So, if you have

function x() { a = 321 }
a = 123
x()
print a
=> 321

"a" is changed from inside x() because the var inside and outside x() are the same. But:

function y(a) { a = 666 }
a = 123
y()
print a
=> 123

"a" in y() is a local var, so it shadows the original "a" and don't change its value
December 4, 2024 at 6:07 AM
One thing I found about awk is that if a function uses a "local" variable BUT that var name already exists in the calling scope, the two vars are SHARED.

To make sure a variable is not shared, you have to declare all the local variables as function parameters.
December 4, 2024 at 6:07 AM
👍
November 20, 2024 at 3:38 PM
Just a question to a more experienced like you: did you found some country-based differences? I think here in Italy unwillingness to delegate to software is more pronounced
November 20, 2024 at 1:53 PM