choOSE THE bEst caSE AvailablE nOw !
Find a file
2022-11-16 20:32:00 +01:00
src feat: add random case function 2022-11-16 20:31:43 +01:00
.gitignore feat: add random case function 2022-11-16 20:31:43 +01:00
Cargo.lock feat: add random case function 2022-11-16 20:31:43 +01:00
Cargo.toml feat: add random case function 2022-11-16 20:31:43 +01:00
default.nix feat: add random case function 2022-11-16 20:31:43 +01:00
flake.lock feat: add random case function 2022-11-16 20:31:43 +01:00
flake.nix feat: add random case function 2022-11-16 20:31:43 +01:00
README.md feat: add readme to explain why to use this awesome tool 2022-11-16 20:32:00 +01:00
shell.nix feat: add random case function 2022-11-16 20:31:43 +01:00

Why trying to understand wether to use SHOUTING_CASE, snake_case , camlCase or PascalCase when you can use rANdoM_CAsE ?

Example

Why choose between those two SQL case ? (source: stackoverflow)

select
    this.Column1,
    case when this.Column2 is null then 0 else this.Column2 end
from dbo.SomeTable this
    inner join dbo.AnotherTable another on this.id = another.id
where
    this.Price > 100
SELECT
    this.Column1,
    CASE WHEN this.Column2 IS NULL THEN 0 ELSE this.Column2 END
FROM dbo.SomeTable this
    INNER JOIN dbo.AnotherTable another ON this.id = another.id
WHERE
    this.Price > 100

Just use raNDOmCasE:

SELect
    This.ColuMN1,
    CASE wheN ThiS.coLumn2 iS Null tHen 0 eLsE This.COlUmN2 enD
froM DBo.somEtaBle THIs
    InNER Join DBo.ANotHERTaBLe AnOtHER oN THis.iD = anOther.iD
WHeRe
    thiS.prICe > 100