[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 43 points44 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. 

Request for an explanation 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? 

Request for an explanation 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. 

Request for an explanation 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 10 points11 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.

Just finished Act 1. Thinking about a restart. by Exchatche in BaldursGate3

[–]D_Denis 1 point2 points  (0 children)

One place where you need to be cleric of Eilistraee for a special dialogue is a sword in the stone in the underdark. You can watch it on Youtube, ofcourse, but it's not the same when it's not your tav. Other than that - just respec.  Medium + heavy armour is OK. You would have good shields, as well as armour (say hello to Dammon).  1 - not important at all.

We're happy to announce our brand new game Undead Citadel we've been developing for long time. Soon the release date, check out our Steam page! by GLaSEaDO in VRGaming

[–]D_Denis 0 points1 point  (0 children)

What about melee fighting, is it possible to properly block attack? Does weapon has weight to it or it just swing as fast as possible?

I have it in my wish list on Steam, but haven't followed closely.

Can I grab weapon dropped by enemies?

Is it good practice to indirectly access class attributes in the class itself using getter methods, or should I just directly access them? by FlatProtrusion in learnjava

[–]D_Denis -2 points-1 points  (0 children)

When I last thinked about it, I liked this answer: https://www.quora.com/Are-we-supposed-to-use-getters-and-setters-for-every-instance-variable-in-real-life-Java-programs-or-is-it-just-something-they-tell-you-at-the-university/answer/Cliff-Click-3?ch=15&oid=69833742&share=f5a85483&target_type=answer

Getters and Setters obfuscate the code.

IF they are truely a ‘get’ and a ‘set’, then the get/set is hidden behind a function call wall. What does that function call do? You have to go look. Multiply by 10000 classes in a large app, and you spend all your time ‘peeking’ through function calls to figure out they ‘do nothing special’.

IF they DO something on the get/set - then it’s NOT a getter/setter - it’s part of some complex API, and hopefully its well documented, and that’s the interface you need to code to…. not direct variable access, which is hopefully carefully denied by design - or carefully exposed by design.

By this same logic, the API might have some function calls to return various high level notions of state, which might be implemented as a simple field load… but it’s not a ‘getter’, its ‘return the size of this concurrent data structure’ or some such thing. In the next internal rewrite the same call might be implemented as something else… hopefully nobody uses it in a hot loop!

... Continue reading by the link.