🎞️ Fotodilettante chimico
By the way, my non-computer related big interest is film photography
By the way, my non-computer related big interest is film photography
How would you manage those situations without feature branches? Probably I am missing something
How would you manage those situations without feature branches? Probably I am missing something
I find in these case feature branch as a viable solution: isolate those changes…
I find in these case feature branch as a viable solution: isolate those changes…
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…
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…
Btw changelog in source files was then normal even when using a source control. I did that and always found a pain 😅
Btw changelog in source files was then normal even when using a source control. I did that and always found a pain 😅
Part 1 solver was basically unaffected, going from 0.09 to 0.07 seconds.
Part 1 solver was basically unaffected, going from 0.09 to 0.07 seconds.
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
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
To make sure a variable is not shared, you have to declare all the local variables as function parameters.
To make sure a variable is not shared, you have to declare all the local variables as function parameters.