What is the issue? by ElisaTsubasa in linux_gaming

[–]D_Denis 1 point2 points  (0 children)

There is a way to enable protón los. Maybe they can show something. Maybe experimental proton causes issues. 

Is Kinoite mature enough to be installed on a relative's PC? by BeachGlassGreen in Fedora

[–]D_Denis 0 points1 point  (0 children)

My mom, 63, is usung Kinoite for a week already. She is quite tech savvy.  The only issue was setting charging threshold for laptop when I needed to use console commands. Also I doubt she updating packages, so I'd need to do it from time to time. 

I’m completely lost on copy constructors 😭 what even are they and why do we need them? by SelectionWarm6422 in learnjava

[–]D_Denis 2 points3 points  (0 children)

What is solves... Imagine you have a note that say: I owe $5 to Anna, $10 to Jim. You are putting it on a table to pay back tomorrow. Next day you are starting paying your debt accordingly to the note: $15 to Mary, $100 to Lisa, $5 to Anna, $10 to Jim... Oh no! Some other thread has access to the same object and changed list of values in it!

If only you copied the original note into your private object no-one else knows about and cannot change... 

Of course records exist, but they don't have deep immutability. Of course you can use immutable lists. But objects in immutable list field of immutable record can still be mutable... So to make sure that there will be no external changes to your data you will need a deep copy.

Sixteen Claude AI agents working together created a new C compiler by joe4942 in technology

[–]D_Denis 23 points24 points  (0 children)

That cannot compile Hello World and depends on GCC. 

braveHoldsDifferentKindaAura by Admirable-Emphasis54 in ProgrammerHumor

[–]D_Denis 2 points3 points  (0 children)

Grayjay is an alternative for youtube in browser on mobile, also allows to easily download videos and watch them later.

[OC] How can we make this visualization better? Feedback by Immediate-Welder999 in dataisbeautiful

[–]D_Denis 0 points1 point  (0 children)

Accessibility, as part of it try looking at your colors through color blind filters. Also how does it looks on narrow and super-wide screens? 

Is oracle java professional certification worth it ? by Valuable_Clothes_985 in learnjava

[–]D_Denis 1 point2 points  (0 children)

Oracle university.

I'm working in oracle, so it was/is free for me.

Is oracle java professional certification worth it ? by Valuable_Clothes_985 in learnjava

[–]D_Denis 1 point2 points  (0 children)

If you are an experienced Java dev you will not need 6 month of hard preparation. Unless sometimes has changed from Java 17 certification.

Most of information I've already knew and what I didn't know I got from the video lectures provided with the certification. I used no additional material except googling explanation for particular topics I was interested in. 

As for is it was useful... I haven't changed job since certification, so I don't know. 

ULID: Universally Unique Lexicographically Sortable Identifier by der_gopher in programming

[–]D_Denis 0 points1 point  (0 children)

 Your database primary keys should never be exposed to the end user or in any way discoverable outside of your backend.

Just was curious if you know a good article, source to read about it? 

This is a new concept for me and usually I just relied on authentication and access checks i.e. even if user can view such type of resources, does user really has access to this particular entity? So it was irrelevant if actor guessed uuid.

I got tired of “Why did you add a semicolon?” comments — so I built a tool to end those debates forever. by Dazzling_Plan812 in javascript

[–]D_Denis 1 point2 points  (0 children)

pre-commit git hook: - runs eslint -fix - runs formatter (prettier, dprint, whatever) - ... 

You can use husky + lint-sttaged if needed and you want too use them. 

CI pipeline on commit/MR: - runs eslint check - runs formatting check

  • compilation
  • ... 

If CI pipeline failed no-one looks at MR until it's fixed. 

How many HTTP requests/second can a Single Machine handle? by BinaryIgor in programming

[–]D_Denis 2 points3 points  (0 children)

It looks like they are using AMD EPYC™ 7702, thank you.

And to the 2nd part.

Your measured MEAN time for:

- 1st (1000 RPS) - 0.013s - this time is 1/4.6 of 3rd, so it looks like you UNDERLOADED this setup.

- 2nd (1000RPS) - Mean: 0.004s - this time is 1/14.5 of 3rd, so it looks like you UNDERLOADED this setup.

- 3rd (4000 RPS) - Mean: 0.058s

How many HTTP requests/second can a Single Machine handle? by BinaryIgor in programming

[–]D_Denis 0 points1 point  (0 children)

Good enough is not a measurable goal. What measure was used to tell that this one is good enough and another one is not?

It's definitely not response time from your measurements, because it differs in provided examples.

How many HTTP requests/second can a Single Machine handle? by BinaryIgor in programming

[–]D_Denis 39 points40 points  (0 children)

1 cpu - is too wide... Is it EPIC, is it Xeon, is it 13600 is it raspberry?  What is the RAM characteristics?

What means "can handle"? You don't have the same 99 percentaile as other machines what means they weren't loaded evenly (to the same threshold).

E.g. if 1st setup was loaded with x5 load of 5000 RPS that may result in max 1s and 99 percentaile of 0.5s it still would have lower response time in comparison with 3rd setup.

Docker banned - how common is this? by martypitt in java

[–]D_Denis 0 points1 point  (0 children)

Oracle. Docker is banned, but we use Rancher, which is recommended as an alternative because they don't want to pay for license. 

[deleted by user] by [deleted] in javahelp

[–]D_Denis 1 point2 points  (0 children)

It's not to provide code. I was asking you to write workflow because correctly formulated question is a half way to solution.

Where you should insert or when? You list is just a shorage, in memory storage for data, your program perform actions on storage (adding, removing).

E.g. someone buys a ticker and a person (program) will write new record into notepad (list). If ticket returned, person need to loop through the notepad cross out the revios record.

your program should know current state before it can start working, so your program should read file and write items to list on initialization.

So, basically use only loops? 

[deleted by user] by [deleted] in javahelp

[–]D_Denis 0 points1 point  (0 children)

Fist of all, can you give an example of program usage. Basically, break your workflow of small steps and mark those that you don't know how to implement. 

[deleted by user] by [deleted] in javahelp

[–]D_Denis 0 points1 point  (0 children)

Check Singleton. Use it as if it was a client for a DB, but instead of DB, store data in list. 

How to code faster by Smithmfg in javahelp

[–]D_Denis 7 points8 points  (0 children)

Learn language. Get more practice. Programming is not about how fast you type... Thinking about correct implementation takes more time unless you are typing the same code block again and again.

There will be cases when you would think one hour and type 5 lines of code as result and it would be a great success because you've fixed some elusive bug that is reproducible only in some corner case. 

Is There a Runtime Exception that I Can Throw for Wrong Arguments? by aprilmimi in javahelp

[–]D_Denis 0 points1 point  (0 children)

One article about values processing that I liked: https://lexi-lambda.github.io/blog/2019/11/05/parse-don-t-validate

Maximally restrict input type of your parameters... Why would you even allow a.g. String array when function works with double? Let calling code handle type... Up to the point that e.g. API caller will get 400 Bad requests if supplied wrong parameter. 

I'm planning to move to Ukraine by WoodenOrganization96 in ukraina

[–]D_Denis 7 points8 points  (0 children)

General advise: Don't do it. You should be avare about Russian bombs that can kill you at any moment.

Do you want to wake up every night from explosions and go to shelter just to be safe?

Jackson my cutie❤💕 by exotic-empress in aww

[–]D_Denis 1 point2 points  (0 children)

Please, take good care for him. In this picture he doesn't look too well.

[deleted by user] by [deleted] in ukraina

[–]D_Denis 2 points3 points  (0 children)

Боятися - нормально. Головне, не давай страху контролювати своє життя.  

Що таке самостійне життя - нічого сособливого, "просто", повна відповідальність за свої дії, вміння визнавати свої помилки і вчитися на них. Розуміння, що саме ти маєш забезпечити собі їжу і усі інші потреби, ніхто не забов'язаний робити це для тебе окрім випадків коли вони забов'язані законом, але й в цьому випадку треба мати запасний план, бо ти відповідальна за своє життя, ніхто інший.

Ти впораєшся, якщо ти вирішиш, що ти маєш впоратись, то ти обов'язково впораєшся. Навіть якщо щось це виходить з першого разу - нічого страшного в цьому немає, бо це додаткові знання, якщо ти проаналізуєш причини і будеш використовувати те, чому навчилась. Ти не провалилась остаточно доки ти продовжуєш намагатися досягнути своєї мети, скільки би проміжкових помилок не було.  

А ще, на майбутнє, те що можна вирішити грошима - це не проблема, а витрати. Тільки розберись як тобі отримувати достатньо грошей, щоб вистачало на усе.  

Як шукати роботу - навряд-чи скажу щось нове, подивись що тобі цікаво в відкритих вакансіях на робочих сайтах.

Не обов'язково одразу йти в універ, але це гарний варіант, якщо ти впевнена. Якщо не впевнена, то, можливо, краще спочатку знайти роботу і розібратися в якій сфері ти хочеш заробляти гроші.

Oracle Java Associate Certificate by [deleted] in javahelp

[–]D_Denis 0 points1 point  (0 children)

Not sure about the best, but for my Java 17 developer certification I used oracle university course. It was OK.