Execution of return code when finally has its own return.

Execution of return code when finally has its own return.

I have watched the below tutorial and I get that finally's return "shadows" try's or catch returns, but is their return ever run? Suppose a function returns a class instance, it doesn't throw any error, and both try and finally have a return with of an instance via new operator. Even though I understand that finally's return instance is the one returned, the question is how many instances will be created? 2 (of try + finally) or 1 (of finally)?

Final vs Finally vs Finalize in Java (one is deprecated)

u/Bofact — 9 days ago
▲ 5 r/ITIL

What does this slide mean?

I am watching the below video and I am puzzled by the below slide. What they mean by "Goods: ownership is transferred to customer"? If I sell a videogame and I give the customer a license to use it (moreso that I can freely disable that license), am I not respecting ITIL principles?

ITIL® 4 Foundation Exam Preparation Training | Key-Concepts and Definitions 2 (eLearning)

https://preview.redd.it/stg79zj7pvsh1.png?width=1313&format=png&auto=webp&s=03198b940dabb1746c04226b0d8a9cf6fb836a56

reddit.com
u/Bofact — 14 days ago

Is YouTube messing with me?

There is this channel which posts cutscenes on a game (AQW Cutscenes - YouTube). Both on mobile and on computer, if his videos are sorted via Newest/ Latest, YouTube hides few of them (for example 1731, 1740, etc.).

How to make YouTube not do that?

And to be in tone with this subreddit theme, developers should stop breaking what is not broken.

Edit: If I search for 1736, sometimes it tells me there isn't such content on that channel, but other times it finds it.

u/Bofact — 23 days ago

Faulty transivity violating example?

I am following Effective Java: Programming Language Guide, by Joshua Boch, and when showing an example of breking transivity relation in equals contract, the very first example of it says it is violating transivity (more exactly symmetry) because it doesn't work when comparing a Point to ColorPoint and viceversa. "No way" I am thinking. "We compare instances of different classes, then we are surprised it doesn't work."

I read in continuation, and the transivity problem is solved, by how I understand, by basically saying "just don't compare instances of different types, even if they have inheritance". I see no diferrence between the very first example and its "solved" variant with ColorPoint and Point having composition relation, not inheritance.

reddit.com
u/Bofact — 29 days ago

Why if I view a video on social media, when it finishes it loops around to the beginning?

It wasn't like that until last year, or even this year.

reddit.com
u/Bofact — 1 month ago
▲ 2 r/AQW

How to defeat Mors in four harbingers?

AM doesn't work, csh and pcm doesn't work because of counter attack, vdk doesn't work, and LR (with Revitalize Elixir, Penitence, Pneuma, Elysium and Wizard) doesn't work. Sometimes with LR I can not fully heal after I get to 1 HP. And sometimes More attacks right after you go to 1 HP, because why not.

reddit.com
u/Bofact — 1 month ago

De ce la farmacii ți se cere buletinul dacă cumperi ultimele medicamente de pe stoc?

Am fost la o farmacie cu o rețetă, iar farmacista a spus că întrucât mai sunt două bucăți pe stoc din medicamentul pe care-l vreau, are nevoie de buletinul meu.

De ce a fost nevoie să-l prezint?

Și pentru filtrul impecabil, nu, nu cer sfat medical sau interpretare.

reddit.com
u/Bofact — 1 month ago

Small reminder: view details on a selected trial is lying.

Currently it seems that when a trial is selected and you press Y, the details about Invasion and Join in Progress are reversed: Join in Progress displays the value of Invasion; not sure if Invasion shows what is was selected for Join in Progress. This is a display issue; the options selected still work as intended.

Why does that matter? If you want to play invasion, the team leader selects a trial (via Genesis or Experimental therapy), and you press Y to verify if you are still playing Invasion, you would see that Invasion is disabled, while Join in Progress is allowed. So you leave, because the team leader baited you into playing other game mode. In reality, the Invasion is allowed and you can still be invaded.

Something (else) to note is that this bug was already reported. So don't send Red Barrels's support duplicates.

reddit.com
u/Bofact — 1 month ago

How is Invasion in Stay Together?

I imagine it is abysmal for Reagents to a level compared to Invasion in Nostophobia.

reddit.com
u/Bofact — 1 month ago

How to share a video post to someone that doesn't have X, such that they can hear the audio and select where in time the video plays?

Like how it was before recently.

reddit.com
u/Bofact — 1 month ago

Cerere inexistentă de ingineri de reglare în cercetare

Nu doresc să descurajeze pe alții să urmeze această profesie, dar cum? La un institut de cercetare de la Măgurele se cercetează lucruri care au bine mersi nevoie de ingineri de reglare de la IS, dar nu, ei nu au niciun folos, nici pentru acele proiecte, nici pentru altele. (Și nu, nu cred că am permisiunea să specific la ce proiecte mă refer mai exact.)

Mă mai liniștesc gândind că inginerii de reglare care sunt acolo, dacă or fi, n-au motiv să-și părăsească postul, și vor fi posturi vacante doar când se pensionează ăia.

Cât despre angajare la companii de specialitate, nu cred că are rost să specific. E aceeași situație ca la programare.

reddit.com
u/Bofact — 2 months ago

Citing articles that you didn't bought

If in professional setting, you are "exposed" if you are caught using pirated software(s), are you "exposed" if you cite an article which you pirated (and didn't bought)?

reddit.com
u/Bofact — 2 months ago

Citing removed web pages.

Suppose an article is written and cites few web pages to make a conclusion. Years later, those web pages are no longer accesible, not even via waybackmachine.

In these conditions, does the conclusion hold any scientific value? Because now the presumptions from those web pages can no longer be verified (since those pages are inaccesible).

And as a last question, if the web pages aren't accesbile via waybackmachine, but screenshots of those pages exist, along with the content referenced in the article, does the conclusion have a scientific value? What if those screenshots are fake?

reddit.com
u/Bofact — 2 months ago

Poți fi dat în judecată pentru încălcarea GDPR-ului dacă ai în posesie date cu caracter personal în format steganografic?

Adică ai acele date, dar nu ști că-s acolo (de exemplu ai o poză, dar adresa de domiciliu al celui care a făcut poza este ascuns în valorile RGB din pixelii aferenți zonei care prezintă cer senin).

reddit.com
u/Bofact — 2 months ago

Engineers in r/matlab not different than redditors

While not the best example, this still illustrates Reddit's behaviour.

Context: The one wasting OP's time is upvoted, the one calling they out for wasting both's time and other behaviours is the mean one, while the waster of time behaviours are not re-evaluated. The mysterious down voting is in the third image.

And if I broke a rule, all I can write is these rules cannot be viewed on mobile, no matter what I press.

u/Bofact — 2 months ago
▲ 6 r/matlab

Printing a hexadecimal value prefixed with 0x

I have to print in hexadecimal with big letters value variable of type uint8. I am using fprintf(1, '%#X', value), but the 0x prefix is in upper case, while I want it to be lowercase. How do I achieve that?

I know I can write instead fprintf(1, '0x%X', value), but I want to do it by only modifying the formatting operators. And using fprintf(1, '%#x', value) doesn't print value in uppercase.

reddit.com
u/Bofact — 2 months ago
▲ 1 r/matlab

Writing to the wrong file

I have the following Matlab program:

syms t positive;

Z=laplace(exp(A*t))

ccode(Z,'file','cCodeTest.c')

I want to write the Z function to cCodeTest.c. The problem is that code is written to ccodetest.c, created before.

How to write Z to the cCodeTest.c and not ccodetest.c?

reddit.com
u/Bofact — 2 months ago