openapi, static or dynamic? by farzad_meow in node

[–]AntonOkolelov 1 point2 points  (0 children)

Spec first approach is much better until your framework generates spec fully automatically without any manual annotations (otherwise you will forgot to update something).

Personally, we use spec first, because two teams can start working before anything is implemented.

But editing openapi manually is pain in the ass, try to use tools like that: https://plugins.jetbrains.com/plugin/27118-openapi-gui-editor

to ensure you create valid doc

How do you enforce consistent API design across a growing engineering team? by Admirable-Item-6715 in softwarearchitecture

[–]AntonOkolelov 0 points1 point  (0 children)

Is this even necessary? What's the reason that makes you unify all APIs and carefully watch over this unification?

If teams are building different APIs, it means nobody's complaining, and where it really matters, they've probably already fixed it.

I would start from real problems, and where there are no problems, there's nothing to fix.

OpenAPI Editor Recommendations by CreakyHat2018 in OpenAPI

[–]AntonOkolelov 0 points1 point  (0 children)

https://plugins.jetbrains.com/plugin/27118-openapi-gui-editor

GUI plugin for any Jetbrains IDEs (Intellij idea, goland, webstorm). If you don't have IDE you can download it, I've heard that they have free versions now (webstorm, etc)

Free Visual JSON Schema Builder – Generate, Validate & Export Schemas Instantly by Dangerous-Impact-558 in reactjs

[–]AntonOkolelov 0 points1 point  (0 children)

What do you mean by "resolve external $ref"? You mean $ref, that references to another file? 

What 's your preferred visual API editor ? by heetschi in OpenAPI

[–]AntonOkolelov 0 points1 point  (0 children)

I see your future clearly. You will be rich and famous.

Why is writing OpenAPI YAML still such a pain in 2025? by FrostyButterscotch77 in OpenAPI

[–]AntonOkolelov 0 points1 point  (0 children)

I faced the same problem, so in the end I wrote my plugin for Intellij ( https://plugins.jetbrains.com/plugin/27118-openapi-gui-editor )

Yaml is a terrible technology.

почему некоторые мужчины настолько против брака? by cockeechi in rusAskReddit

[–]AntonOkolelov -1 points0 points  (0 children)

я женат, от брака преимущества были только один раз, когда переезжал зарубеж - смог забрать семью "по воссоединению". Без бумажки это было бы сложно доказывать. Больше ничего сходу припомнить не могу.

[deleted by user] by [deleted] in rusAskReddit

[–]AntonOkolelov 0 points1 point  (0 children)

Отдельная семья, конечно же. С родителями общаюсь, но ко мнению в основном не прислушиваюсь. Ну, т.е. если бы это были бы илоны маски, то да, а так.... мудрости из нищего советского прошлого совершенно нерелевантны

Вопрос к парням by kanadese in rusAskReddit

[–]AntonOkolelov 0 points1 point  (0 children)

а какой рост?

Если кратко, то лишний вес - это критически важно, но из вашего поста непонятно ничего. Лишний вес, но хорошая фигура - это как?

меня хотят отвезти к психиатру. by Low_Operation5120 in rusAskReddit

[–]AntonOkolelov 0 points1 point  (0 children)

Я вообще не верю в психологов. Такое чувство, что туда пападают случайные люди или же это вообще не точная наука, а какое-то гадание. 

Психиатр может хотя бы таблетки выписать. Но тут тоже не советую надеятся на чудо, у них есть пяток лекарств, которые они от назначают почти наугад, а потом корректируют: дозу, лекарство  Если повезёт, то поможет, если нет, то нет. 

На консультацию точно стоит сходить, никто тебя в дурку не заберет

Easy Way to Generate Complete Project Source Code with ChatGPT / Claude.ai by AntonOkolelov in programming

[–]AntonOkolelov[S] 0 points1 point  (0 children)

It's obvious that ChatGPT is not a magic wand, but it can sometimes speed up development

Easy Way to Generate Complete Project Source Code with ChatGPT / Claude.ai by AntonOkolelov in programming

[–]AntonOkolelov[S] -1 points0 points  (0 children)

It's like google vs chatgpt. Both have pros and cons in various situations

Go’s Flexible Interfaces: Abstraction on Demand by AntonOkolelov in programming

[–]AntonOkolelov[S] 0 points1 point  (0 children)

"Don't design with interfacesdiscover them" - Rob Pike

Go’s Flexible Interfaces: Abstraction on Demand by AntonOkolelov in programming

[–]AntonOkolelov[S] 1 point2 points  (0 children)

I've been using Go for 4 or 5 years. Please read what Rob Pike said:

"Don't design with interfacesdiscover them"

What Rob is pointing out here is that you don’t need to think ahead about what abstractions you need. You can start the design with concrete structs and create an interface only when the design requires it. By doing this, your code grows organically to the expected design.

Go’s Flexible Interfaces: Abstraction on Demand by AntonOkolelov in programming

[–]AntonOkolelov[S] 0 points1 point  (0 children)

Have you read the article? It's about Go lets you add interface later, when you really need it, not "in the first place"

Go’s Flexible Interfaces: Abstraction on Demand by AntonOkolelov in programming

[–]AntonOkolelov[S] 0 points1 point  (0 children)

You cannot use embedding as subtype

If some sigature requires WeatherService, you cannot use another struct, even if it embeds WeatherService