mirror of
https://codeberg.org/VnPower/PixivFE
synced 2024-12-06 19:16:23 +01:00
16 lines
566 B
Markdown
16 lines
566 B
Markdown
# Current Design Flaws
|
|
|
|
This section documents some bad/buggy designs in PixivFE's design, both frontend and backend.
|
|
|
|
## "Switchers"
|
|
|
|
Switchers should know what the current value is.
|
|
|
|
## Low Quality Go Module: net/url
|
|
|
|
`url.Path` is stored decoded (no %XX). `url.Scheme` is stored without `://` (mandated by RFC). Not sure why Go does that. Felt like this is bound to cause some nasty bug on decoding and encoding.
|
|
|
|
Current proxied URLs don't have weird characters in them. Hopefully it stays this way.
|
|
|
|
Solution: Replace "net/url" with a better third-party module
|