link1107 / DonationExecutor

Плагин для ру-стримеров, генерирующий события на сервере Minecraft (Spigot/Paper) на основании донатов с "Donation Alerts"
GNU Affero General Public License v3.0
218 stars 22 forks source link

Solid principles #2

Open Xaxage opened 2 years ago

Xaxage commented 2 years ago

Refactor this code towards S.O.L.I.D. principles.

bonenaut7 commented 2 years ago

absolute checz code

Xaxage commented 2 years ago

Exactly 🤣

link1107 commented 2 years ago

Unfortunately, at my current programming skill level, the only SOLID i know is Solid Snake from MGS.

wlevchenko commented 2 years ago

@link1107 why cohesion in your code is so high and coupling too low???

link1107 commented 2 years ago

@link1107 why cohesion in your code is so high and coupling too low???

Я не совсем понял вопрос, если честно.

wlevchenko commented 2 years ago

@link1107 why cohesion in your code is so high and coupling too low???

Я не совсем понял вопрос, если честно.

https://habr.com/ru/company/otus/blog/505852/

Portunis commented 2 years ago

it's very cool that you started to learn programming, I wish you good luck. I hope you will soon write a plug-in for a scooter so that he will return home when it is stolen

wlevchenko commented 2 years ago

it's very cool that you started to learn programming, I wish you good luck. I hope you will soon write a plug-in for a scooter so that he will return home when it is stolen

Also, it should handling the case when with scooter returning some "marsik"

SomeRandomGithubUserXd commented 2 years ago

Просто ебать спасибо нахуй. Рефакторни код. А примеры плохого кода, пример исправленного - нахуй, да?

seigtm commented 2 years ago

Охуенная Issue. А главное - по делу, с конкретикой, пулл реквестом и корректным описанием (😬)

Xaxage commented 2 years ago

Главное Link понял о чем я. Eсли вы не видите ,то учите SOLID.

SomeRandomGithubUserXd commented 2 years ago

Главное Link понял о чем я. Eсли вы не видите ,то учите SOLID.

Дык Линк не умеет кодить и не скрывает. А ты не умеешь и пытаешься умного строить. Солид, солид, блять. Небось, принципов других-то и не знаешь. А наизусть солид точно не расшифруешь. Давай, напиши еще раз солид.

Xaxage commented 2 years ago

Главное Link понял о чем я. Eсли вы не видите ,то учите SOLID.

Дык Линк не умеет кодить и не скрывает. А ты не умеешь и пытаешься умного строить. Солид, солид, блять. Небось, принципов других-то и не знаешь. А наизусть солид точно не расшифруешь. Давай, напиши еще раз солид.

Ок. Удачи

VavilovAlex commented 2 years ago

Критикуешь чужое, предлагай свое

Главное Link понял о чем я. Eсли вы не видите ,то учите SOLID.

Дык Линк не умеет кодить и не скрывает. А ты не умеешь и пытаешься умного строить. Солид, солид, блять. Небось, принципов других-то и не знаешь. А наизусть солид точно не расшифруешь. Давай, напиши еще раз солид.

Ок. Удачи

Критикуешь, предлагай как исправить

ENDrain commented 2 years ago

Refactor this code towards S.O.L.I.D. principles.

You got me there for a moment.

For a moment I beleived that this was a genuine commentary from an English-speaker with a request-suggestion for code improvement. But then you posted "learn SOLID", in Russian.

I've been an amateur programmer for more than 10 years now and have spent countless hours on StackExchange, reading tips for C++, Python, Java, JS, PHP, HTML, Lua, whatnot. People on StackExchange and English-speaking web in general are always extremely helpful, if sometimes toxic when it comes to touchy subjects.

But I remember how once I ventured into coding in 1C proprietary language for 1C platform. I attempted the usual, google the question and read forums. What does it matter 1C is a Russian platform, surely programmers in Russia are as friendly and helpful as everywhere else, right?

Wrong.

On Russian 1C coding "helpdesks", I found you. The likes of you. People who just boasted that they know more and can do better. People who entered a topic with some specific question just to write: "learn the basics" ("учи матчасть").

Your input is useless. You are not being helpful. Nobody is impressed by your proficiency. Unless, you do so in a respectful, non-consescending, humble manner. Unless you aim to share, not to boast.

@wlevchenko same applies to you.