Sep. 3rd, 2023

juan_gandhi: (Default)

Я хотел глянуть насчет параметрических типов, и он предложил мне версию его ИИ, и вот какую он мне задвинул хуйню, малятки:

"Generic classes in Scala are classes that take a type as a parameter. This means that one class can be used with different types without having to write it multiple times. Generics are a powerful feature in Scala that allow you to create classes, traits, and functions that work with multiple types. 

When declaring a class in Scala, you can specify type parameters by surrounding them with square brackets. For example, you can declare class Foo[A]. The placeholder A can then be used in the body of the class to refer to the type. 
One convention is to use the letter A as type parameter identifier, though any parameter name may be used. The symbols used for a type parameter of a simple type is A, like List[A]. The symbols used for a type parameter of second, third, fourth, and so on, types in generic classes are respectively B, C, D, and so on. 
Думаю, этот ихний бот Го имеют в виду. Даже не Джаву.

Вот еще статейка на эту тему, как бота разоблачить.

dybr

Sep. 3rd, 2023 09:45 pm
juan_gandhi: (Default)

I know it's Sunday night. Just tried to satisfy my curiosity: what's wrong with running this proxy server if the code a) was not changed, and b) looks pretty neat (ok, I'd repair the structure, but later).

Wound up with a bigger puzzle. It fails in `run` mode, and passes in `debug` mode in IntelliJ.

If you think it's about delays and servers not being started properly before tests start - no! I did add a delay. No. The error reported is something like "and instance of this class cannot be cast to that class".

Puzzle,,eh? I even know where it happens, which line.  

See, every time I report shit like this, somewhere a young programmer decides to stay as far from Scala as he or she can.

Profile

juan_gandhi: (Default)
Juan-Carlos Gandhi

December 2025

S M T W T F S
  123456
78910111213
14151617181920
21222324252627
28293031   

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Dec. 3rd, 2025 06:18 am
Powered by Dreamwidth Studios