#πŸͺ…-progaming

1 messages Β· Page 102 of 1

valid jetty
normal spruce
#

h

frosty skiff
#

hatsune miku speedometer

#

she will spin depending on how fast u go

ornate quiver
#

send I need

frosty skiff
ornate quiver
#

oki

frosty skiff
#

when i mena improvements

ornate quiver
#

we need some heart particles

frosty skiff
#

i need more wacky ideas for aprilhack

frosty skiff
#

idk i didn't wanna do stuff that's like

#

somewhat easily doable with a resource pack

#

unless u mean

ornate quiver
#

oh this is a mod?

frosty skiff
#

yes

#

how u think i did the

#

miku speedometer

#

😭

ornate quiver
#

oh I didn't see that 😭

supple whale
#

its legit just bootstrap all over again

ornate quiver
#

tailwind haters smh

#

I love tailwind

frosty skiff
#

i hate tailwind

#

i hate webdev

valid jetty
#

what’s next, cascading styles applied via tailwind?

supple whale
#

styless components

#

theres a lib for that

#

were u just use the html tags without any classes

#

and they are default styled

valid jetty
#

bootstrap??

supple whale
#

unironically respectable

#

nooo

#

bootstrap still requires classes

valid jetty
#

oh right

supple whale
#

in that one u just do <button></button>

#

1 sec

lavish frigate
#

ITS REAL omfg

supple whale
#

this

lavish frigate
supple whale
#

its not amazing, but its great for people that dont care and want something done quick

#

the tailwind attacks are crazy on dis1 doe

spark tiger
dawn ledge
#

i have used tailwind in the past and i dont like it

#

its bad and bad

#

its bad while editing and its bad while debugging

#

i advocate for writing css by hand

#

its not even that hard

lavish frigate
#

how bad are you at css that you have to debug it

#

😭

dawn ledge
#

you should be asking what the fuck is wrong with me to be debugging css

lavish frigate
#

that is what im asking

#

😭 😭 😭

supple whale
#

and i actively use tailwind and its by far the least cancer solution for custom UI i've ever used

#

and ive even built my own css frameworks in the apst

dawn ledge
#

but no its not that im bad at css its that if i have a certain reference material (that uses tw) the classes are all over and its fucking torture to see how they got this one fucking component to work

dawn ledge
lavish frigate
#

tailwind is just faster

supple whale
#

the bloat my css only apps had because i kept redeclaring the same shit

#

its unfunny

#

my css alone was almost a megabyte

lavish frigate
#

what are a few lines with css is a couple letters in tailwind

supple whale
#

for simple websites sure

#

not for complex custom apps

dawn ledge
#

chole when she realizes youre gonna a bigger bundle with the "few letters" in talwind

lavish frigate
#

who gaf

dawn ledge
#

because you have 50 class names and their definition

supple whale
#

sir

#

cssnano?

#

sir?

lavish frigate
#

the more you use tailwind the less it impacts bundle size because you reuse the same shit a lot

dawn ledge
lavish frigate
#

thats the entire point behind classes

dawn ledge
#

im not trying to be an asshole here
but
have you considered, writing better css/getting good?

fleet cedar
#

The entire point behind classes is decoupling style from structure

#

Whether it succeeds is up to debate

supple whale
lavish frigate
dawn ledge
supple whale
#

but my UI alone is almost 20k loc

#

manual styles dont scale well

#

thats UI ONLY

dawn ledge
lavish frigate
#

because every new framework now uses scoped css

#

which fucks with the bundle size a LOT

dawn ledge
#

:global() my beloved ❀️

lavish frigate
#

and then you get into the issue that scoped css tries to solve in the first place

#

and then you realise those couple letters in tailwind are actually much better for your bundle size & speed

dawn ledge
#

scoped css in astro hasnt bothered me much
i just reuse my components wisely

winged mantle
#

why isn't tailwind implemented in the build process

lavish frigate
dawn ledge
#

although im in the 2~3k lines ranger as opposed to unknown's 20k

winged mantle
dawn ledge
#

yeah no one would use tw if it wasnt build

lavish frigate
#

thats like

#

the whole point

lavish frigate
#

of tailwind

dawn ledge
#

lol

supple whale
winged mantle
#

so it doesn't declare every single possibility in a css file

dawn ledge
lavish frigate
#

you put the tailwind classes in your html, tailwind goes over your html, picks out the classes, generates the appropriate css and then you put that into your app

winged mantle
#

which is 5gb

lavish frigate
dawn ledge
#

it only includes what you use (or whatever you use that it could detect)

lavish frigate
dawn ledge
#

i recently stumbled upon unocss or something that was literally tailwind but you had to define the rules on your own

winged mantle
#

whgy would you do that

#

style="padding: 1000px"

lavish frigate
#

i was giving an example

dawn ledge
#

rini you dont do much frontend do you

winged mantle
#

i'm not rini

#

i'm an impostor

dawn ledge
#

kode

#

the toad

lavish frigate
#

thecodetoad

#

thetoadcode

winged mantle
#

when i do frontend i just write css

lavish frigate
dawn ledge
#

anyway i get the argument about tw being faster to prototype/work with but i also think it contributes to code debt and, for the deranged few like me, makes it harder to read element styles

lavish frigate
#

sucks

#

use a real code editor

#

with tailwind support

dawn ledge
#

yeah sucks to be me

dawn ledge
lavish frigate
#

arent you one of the "weird" "ones" that dont use vscode

dawn ledge
#

i do "use" vscode along side nvim

winged mantle
#

neovim user

lavish frigate
#

i hope you can recover ❀️

winged mantle
#

knew it...

dawn ledge
#

in fact i use vscode for frontend most of the time

#

not that im a fan of frontend

winged mantle
#

i prefer using qt to html

dawn ledge
#

can we ban kode

lavish frigate
#

get the one extension that automatically hides tailwind styles its less visual noise

winged mantle
#

qt can run on the web

#

why don't all webapps just use qt

crude star
#

qt can run the web

dawn ledge
#

java can run the web too

crude star
#

qtwebview

lavish frigate
#

the one time i used qt i got 15 segfaults in a row, a bluescreen and then my pc ddos'd someone as part of the botnet and sent a signal down the wire causing my nearest power station to blow up

supple whale
dawn ledge
lavish frigate
#

qt did segfault on me

#

that is the serious part about the message

supple whale
dawn ledge
#

fwiw there is a prettier plugin (i believe?) for sorting tw classes

supple whale
#

its not a flawless solution, but it beats everything else i tried so far

crude star
supple whale
#

just use eslint like a human being

lavish frigate
#

since when can eslint format my code

#

you still need a code formatter 😭 just set your prettier up to actually look good

crude star
#

forever

dawn ledge
#

i use biome but im stuck with prettier for a while because biome doesnt support astro yet

crude star
#

vencord uses eslint to format

#

well it's stylelint now

dawn ledge
#

and i have never had luck with getting my eslint configs working cope ik skill issue, i cba

winged mantle
#

stylelint is just for css

#

don't you want an all in one packlage

#

that does everything equally badly

crude star
#

what was it then

winged mantle
#

honestly auto code formatting is overrated just do it yourself

dawn ledge
#

js and its 500000000000 different tooling

crude star
#

eslint style rules were deprecated

lavish frigate
#

eslint doesnt format nearly as much as prettier, the autofix is far from perfect, the things it does are good sure but for deeper code formatting you need prettier

dawn ledge
lavish frigate
crude star
#

prettier sucks tho https://dprint.dev/ is a lot better

winged mantle
#

i almost always type code formatted anyway

crude star
#

i type my code minified and let the formatter expand it

lavish frigate
#

written in rust !!! rust wins again

dawn ledge
#

this is very negative advice btw, you should not be thinking of styling manually
it hinders development
i am of the opinion that when youre writing code you shouldnt have to be conscious of such irrelevant things

lavish frigate
#

styling is very important what are you talking about 😭

crude star
#

you don't have to be conscious about code style to just write formatted code

winged mantle
#

sometimes they're not great though and manual formatting works well enough for me

supple whale
lavish frigate
supple whale
#

eslint for everything

winged mantle
#

even if i'm using a formatter i stillw rite things correctly to begin with normally

supple whale
#

import a single config and all of ur everything is formatted and linted

dawn ledge
crude star
#

eslint-parser-rust

lavish frigate
winged mantle
#

i like doing alignment of things

lavish frigate
#

nobody wants to work on a shitty codebase

winged mantle
#

i love doing //formatter:off

dawn ledge
#

I AM NOT SAYING ITS NOT IMPORTANT

dawn ledge
winged mantle
#

i don't worry about it though

supple whale
#

my eslint runs as my test system

winged mantle
#

i do it automatically

supple whale
#

i legit use eslint for static analysis

#

alongside tsc itself

crude star
#

pnpm add @winged mantle
@winged mantle fmt

winged mantle
#

like when you type an if do you do if(thing){doThing();}

lavish frigate
#

even cargo fmt looks ugly sometimes... wtf is this...

winged mantle
#

also yea

crude star
#

its because rust is ugly

winged mantle
#

formatters are essential for working in a team though

lavish frigate
shrewd canopy
crude star
#

im pretty and cute

lavish frigate
#

proof?

winged mantle
#

tbh i don't like rust formatting that much overall

dawn ledge
crude star
#

kissable, as at least 5 people say

lavish frigate
winged mantle
#

it splits things like discord users

#

hi btw

#

i was working

#

on a project

#

in rust

lavish frigate
fleet cedar
#

Better to write that as if let Some(t) = stream.peek() && t.kind == ... imo

lavish frigate
#

this was written in a time of pre-let-chaining

fleet cedar
#

Fair

dawn ledge
winged mantle
#

i don't think about it

#

i always write if statements nicely formatted without much thought

dawn ledge
#

we have a natural formatter here
a fine specimen of natural selection
how cute

winged mantle
#

do most people not write if like this

#

wait for me to rec screen

crude star
#

if im not using a formatter i do it naturally as well

#

usually in C

dawn ledge
#

i do format my code but thats when im not thinking much
when im locked in idgaf

crude star
#

clang format is a pain to configure how i like

dawn ledge
#

i'll legit write all my code on a single line and press ctrl+s to auto format

supple whale
#

i autoformat on save :DDD

crude star
#

i type ,f

supple whale
#

and autosave on lost focus or idle

winged mantle
#

i was being slightly silly when i said formatters are overrated

crude star
#

i cant stop using vim because i keep typing :w ,f

winged mantle
#

they do have a legitimate purpose but i think it's also relialistic to achieve nice formatting on a personal project without using a formatter

crude star
#

vimcord when

winged mantle
#

same way it's easy to keep variable names consistent even without special tooling

crude star
#

@haughty socket work on vimcord

winged mantle
#

and would find it harder to stop doing that

crude star
winged mantle
#

horror

#

intellij comment checking

lavish frigate
#
  11 | let willExplode = 1
           ^^^^^^^^^^^ Invalid variable name. "explode" is not on word list 
dawn ledge
winged mantle
#

don't you want to be able to see your code properly before you save

crude star
dawn ledge
lavish frigate
#

so fun fact at my old workplace before we were allowed to use ai i installed an ai extension and then my supervisor came over one day and was coding on my computer to show me something and it auto suggested comments and he then went like "oh damn look webstorm is so smart it can write comments for you now"

winged mantle
#

when i write rust and go i still put parens in if statements

#

actually i don't think i did it much in go

dawn ledge
winged mantle
#

maybe because i actaully learnt go properly

#

with rust i just dived into rust projects

crude star
#

i find js nicer without semicolons but ive been programmed to use them

#

and i cant change my style now

lavish frigate
#

i just like how semicolons look that why i use them

crude star
#

on languages without semicolons i dont do it tho

winged mantle
#

a problem i have with no parens is it confuses me in cases like this

if thing && (other_thing || thing) {
}
#

idk how

lavish frigate
#

stop having complicated if conditions then smh

dawn ledge
#

one day that very semicolon will save your ass
becase

const a = foo

(xyz as blah or some expression).bar

is not 2 different statements but a call expression without the semicolon

winged mantle
#

i love complex expressions

lavish frigate
#
let isFoo = other_thing | thing;
if thing && isFoo {
  // do something
}

comes with the included benefit of being 1000x more readable and looks nicer

crude star
dawn ledge
#

i should really stop doing frontend given i hate it so much

winged mantle
lavish frigate
#

this is somewhere in my code base

#

cmd is a &Box<dyn Fn(Vec<String>)>

winged mantle
supple whale
#

so ;(stuff as uwu).test

winged mantle
#

this is in grust++

#

elements of go rust and c++

lavish frigate
#

i cant read it otherwise

crude star
#

no parens

supple whale
crude star
#

you can just use the c preprocessor in rust btw no one will stop you

supple whale
#

so you cant even commit stuff that doesnt pass gql schema

lavish frigate
#

i will drive to your house

#

and beat you up

supple whale
#

and lord forbid the api you use changes the schema as youre trying to add smth random

#

everything stops until the code is schema compliant again XD

crude star
supple whale
#

i love eslint

winged mantle
#

/run

public class Main {
    public static void main(String[] args) {
        fmt.Println("Hello world");
        for (int i = 0; i < 10; ++i) {
            fmt.Printf("i = %d\n", i);
        }
    }
    static class fmt{public static void Println(String s){System.out.println(s);}public static void Printf(String s, Object... o) {System.out.printf(s, o);}}

}
rugged berryBOT
#

Here is your java(15.0.2) output @winged mantle

Hello world
i = 0
i = 1
i = 2
i = 3
i = 4
i = 5
i = 6
i = 7
i = 8
i = 9
crude star
lavish frigate
#

horror

winged mantle
#

combination of my favourite languages

#

java and go

#

ok what is this formatting

shrewd canopy
#

Seems pretty normal

lavish frigate
#

Seems pretty normal

winged mantle
#

ugly

#

eugh

lavish frigate
#

go dev talking about ugly code πŸ˜‚πŸ˜‚πŸ˜‚πŸ˜‚πŸ˜‚πŸ€£πŸ€£πŸ€£πŸ€£πŸ€£πŸ€£πŸ€£πŸ€£πŸ€£πŸ€£πŸ€£

crude star
#

my favourite thing about rust is that this doesn't compile ```rs
fn move(self, dx: isize, dy: isize) {
self.x += dx;
self.y += dy;
}

winged mantle
#

if err != nil {
return err
}

crude star
#

yes

winged mantle
#

what if numeric types were implicitly borrowed

#

rust 2.0

crude star
#

rust should replace usize with python's int

winged mantle
#

memory renting

winged mantle
#

i think an ideal type system would be

#

smallint
int
bigint

#

then real and getreal

lavish frigate
night moth
lavish frigate
crude star
#

this will run out of memory instead of overflowing

i = 2
while True:
  i **= i
winged mantle
#

wait

crude star
winged mantle
#

small small int, small int, int, big int, and big big int

lavish frigate
#

r#move

crude star
#

long short int

#

If you'd read the IAQ (Infrequently Asked Questions) list, you'd know that auto is useful primarily to define or declare a vehicle:

auto my_car;

A vehicle that's consistently parked outdoors:

extern auto my_car;
winged mantle
#

how do you pronounce clang

#

like slang, klang or see lang

crude star
#

like the metal pipe noise

winged mantle
#

how do you make that noise

gilded surge
#

you just do

#

very simple

shrewd canopy
haughty socket
crude star
woven mesa
#

@native spruce kinda nice webview thing i wrote (since i dont have new webkit apis on macos 26)

supple whale
#

i see android is not the only place where interacting with webviews is fucking cancer XD

supple whale
#

god webviews make me boil with hatered

#

its nuts

#

it got to the point where i just threw money at the problem and hired external devs to do webview wrapping on android for me

#

"i dont care how, get it done"

shrewd canopy
#

I have to use webview for solving dumb captchas in a native desktop client unfortunately

supple whale
#

that not that bad

#

i have a webview

#

which does window.open(url)

#

like you know, normal open website?

#

right?

#

wrong, most cancer thing to get done ever

#

GOD forbid your webview based app wants to do oauth via JS

shrewd canopy
supple whale
#

but why... the JS code is perfectly functional in browser

#

like why are webviews so neutered

#

so you want insets?

#

oh, just use css's env(safe-area-inset-top)

#

HAH, you fucking wish that worked in webviews

#

works in all browsers tho!

#

here you go, 300 lines of garbage java code, just to inject insanely laggy js so you can have css variables for insets

#

whhy webviews, whyyyy

#

welp at least you can read that data on android, god forbid you want to know how big the keyboard is in an iOS webview, hahahahah good joke!

shrewd canopy
supple whale
#

welp at least on iOS you wont brick your OS on a text input when u click left, which both navigates to the left, and moves the text cursor to the left, depending on which is done, your OS will hold down left infinitely for some reason, in EVERY app, all across the entire system

#

and the only way to fix it is a hard reset, because yes, you cant bring up the power screen, because you're holding left!

#

and these tauri mfw go "yeah just use webviews, they are so gooood"

#

man, whenever i see that i consider if the manslaugher im about to comit is worth the 20 years in prison

eternal wigeon
frosty obsidian
#

i have to use webviews in my github client just for markdown

nimble bone
#

@frosty obsidian Gloom non web view markdown renderer

frosty obsidian
#

gfm includes inline html

nimble bone
#

write Html parser

#

it can’t be that bad

frosty obsidian
#

thats what a webview is

jade stone
dense sand
#

am i having skill issue or this glob:

"!(templates)/*.{js,jsx,ts,tsx,json,css,md,vue,yaml,yml}": [
  "pnpm run format",
  "pnpm run lint:fix --"
]

doesnt do what i want? I need to apply the fix for anything besides files in the templates/ directory - note that it doesnt have to be in the root dir

frosty obsidian
jade stone
#

Idk

#

I need to render html in my project

frosty obsidian
#

I've tried other markdown renderers but none of them match

jade stone
#

And don’t want to include a whole ass web view dep for it

frosty obsidian
#

oh webview isn't a dependency on android

jade stone
#

But shrug

jade stone
frosty obsidian
#

the desktop webview compose thing i know about is cef

jade stone
#

CEF fear

frosty obsidian
#

jcef specifically

jade stone
#

Yeah

#

Cef fills me with rage

runic sundial
#

i think games should ship with 200x frame gen (off by default, no way to turn off)

#

and run at 1 fps

#

to save the planet

jade stone
crude star
#

a cate

frosty obsidian
#

interesting programming related gifs

valid jetty
runic sundial
#

@frosty obsidian are you publicly licenced?

frosty obsidian
#

nop

runic sundial
pseudo sierra
#

@frosty obsidian can I licence zooter under the WPL-3

dawn ledge
austere idol
supple whale
#

it finally happened, i finally wrote JS which was so laggy it froze the main thread for 1 hour

#

i love n^3 complexity

#
const filtered = Object.fromEntries(Object.entries(episodesRes?.episodes ?? {}).filter(([_, ep]) => !episodeList.some(e => {
  if (ep.anidbEid != null && e.anidbEid === ep.anidbEid) return true
  if (ep.airdate != null && new Date(ep.airdate) < new Date(e.airdate ?? Date.now())) return true
  return false
})))
#

ah yes

supple whale
#

maps and precomputation to the win

tired vigil
supple whale
#

by... using the devtools?

#

just run a profile and it shows simply

tired vigil
valid jetty
#

@hoary sluice i wrote a shunting yard in elle

#

this is a valid program now

ι–’ζ•°γ€€γƒ—γƒͺγƒ³γƒˆζ•΄ζ•°οΌˆζ•΄ζ•°γ€€xοΌ‰γ€Ž
    γƒ—γƒͺγƒ³γƒˆοΌˆγ€Œ%d\n」、x)。
』

ι–’ζ•°γ€€γƒ‘γ‚€γƒ³οΌˆοΌ‰γ€Ž
    ζ•΄ζ•°γ€€x = 1οΌ‹2*3γƒΌ4。
    γƒ—γƒͺγƒ³γƒˆζ•΄ζ•°οΌˆx*3γƒΌ4・3οΌ…7)。
』
#

well its not quite fully done yet because i need to implement parenthesis

valid jetty
#

we call them bots now

valid jetty
#

nop

#

i will try to backport plain syntax later, some things work some don’t

#

for example you can only use the fullwidth parenthesis, comma, etc

#

but you can use the half width operators, plain variable names, etc

#

it’s just a case of adding the ascii ones to the lexer

#

i do want keywords to be jp only tho

hoary sluice
valid jetty
#

an algorithm for operator precedence parsing

#

you convert infix notation into postfix so you can evaluate it as RPN into a correct astnode

#

shunting yard is the process of transforming infix into postfix

hoary sluice
#

oh i think i used that in aoc

#

or in icypeas

valid jetty
#

probably icypeas

hoary sluice
#

aoc had a precedence parsing problem too

#

few years ago

valid jetty
#

hmmm

#

idk the alternative is pratt parsing which is a recursive descent thing

#

but i wrote shunting yard because it uses a stack and queue and i get more marks on the project for using abstract data structures

#

i just have to swap out those arrays for an implementation of a stack and deque that i haven’t written yet

hoary sluice
#

ok i used it in oc

#

aoc

valid jetty
#

what does icypeas use

hoary sluice
#

i use pratt for icypeas but not sure if thats only for expressions or only for statements

#

i forgot

valid jetty
#

ah

hoary sluice
#

you can check

valid jetty
#

true but i’m lazy

#

(and on mobile)

hoary sluice
#

pratt parser is a match statement right?

valid jetty
#

uhh wdym

#

pratt parsing is where you call the parsing function for highest precedence first and then lower ones inside etc

hoary sluice
#

ok thats what i do for statements

valid jetty
#

typically it’s recursive with the current precedence as an argument

#

i see

hoary sluice
#

line 288

#

idk how to put it in url

#

thats expression parser

valid jetty
#

#L288

#

you can also do #L288-L506 or whatever

hoary sluice
#

ok

valid jetty
#

yeah i think this is pratt

hoary sluice
#

expression not sure

#

its in order of precedence

#

i think it is technically pratt

#

but not with functions

lavish frigate
#

linus slowly going over to the rust side because of annoying as fuck c devs is really really funny

hoary sluice
lavish frigate
#

then shut up & let the grown ups discuss

hoary sluice
#

ok

shrewd canopy
hoary sluice
shrewd canopy
#

C won't be abandoned ever

lavish frigate
frail turtle
#

is there a better way to do this

[indent="0"] {
        box-shadow: inset -1px 0 #bd93f9
    }
    [indent="1"] {
        box-shadow: inset -1px 0 #1897ff
    }
    [indent="2"] {
        box-shadow: inset -1px 0 #8be9fd
    }
    [indent="3"] {
        box-shadow: inset -1px 0 #8be9fd
    }
    [indent="4"] {
        box-shadow: inset -1px 0 #8be9fd
    }
    [indent="5"] {
        box-shadow: inset -1px 0 #8be9fd
    }
    [indent="5"] {
        box-shadow: inset -1px 0 #8be9fd
    }
    [indent="6"] {
        box-shadow: inset -1px 0 #8be9fd
    }
    [indent="7"] {
        box-shadow: inset -1px 0 #8be9fd
    }
    [indent="8"] {
        box-shadow: inset -1px 0 #8be9fd
    }
    [indent="9"] {
        box-shadow: inset -1px 0 #8be9fd
    }
    [indent="10"] {
        box-shadow: inset -1px 0 #8be9fd
    }
    [indent="11"] {
        box-shadow: inset -1px 0 #8be9fd
    }
    [indent="12"] {
        box-shadow: inset -1px 0 #8be9fd
    }
    [indent="13"] {
        box-shadow: inset -1px 0 #8be9fd
    }
    [indent="14"] {
        box-shadow: inset -1px 0 #8be9fd
    }
    [indent="15"] {
        box-shadow: inset -1px 0 #8be9fd
    }```
tired vigil
#

Just use a selector like [indent] to specify default values
And then use more specific selectors to override individual styles

frail turtle
#

oh that is actually way easier than what I'm doing haha thank you

#

what if I wanted a gradient from #bd93f9 to #8be9fd as the indent increased? would I have to do all 15 manually then or is there some other way to do that?

#

I only have css too, no js or stuff

supple whale
#

you could use @property

#

or w/e its called

#

but its giga new and experiemntal

frail turtle
#

I'll check that out thx

supple whale
#

this

#

so you take that, extract the indent value via attr(indent)

#

and color blend it

#

between 2 base values

#

so just a lot of calc() color-mix() hsl() etc

dawn ledge
#

when did attr start working out of ::before/::after and stop being only data-*

solemn ravine
dawn ledge
#

fancy

solemn ravine
#

blur transition

#

been working on a new site these past few days

supple whale
#

teach me

#

you have any resources or anything for view transitions people made?

royal nymph
#

Astro so nice

supple whale
royal nymph
#

hey it's better than nothing

#

do you want these 2010 ass powerpoint transitions

solemn ravine
#

thats kinemaster.

supple whale
#

no i simply want standard view transitions that are used in native apps

#

like android view transitions etc

solemn ravine
#

shrug

supple whale
#

shit that's already established and adopted widely

solemn ravine
#

I likey

supple whale
#

yeah i dont get view transitions

#

it works, but it works when it shouldnt

#

and doesnt work when it should

#

i dont understand it rly

#

but then, i dont even have a view transition targetting page

#

BUT IT STILL WORKS AND FADES?

#

i asume because it targets EVERY element on the page

#

and then this, just never is able to target any selector at all?

#

wanted to do this, but it just doesnt work LOL?

#

there's a lot of potential for cool shit here, but i just dont get it

#

it has fallbacks for selectors it should never trigger and shit

#

idfk

royal nymph
#

LMAOO

#

these are so bad

#

can't wait to see these unironically used

supple whale
#

xDDD

supple whale
#

but keep in mind u can use this for individual components

#

like a button or smth

#

some of these are hillarious tho

supple whale
#

yeah its slow to show it

#

u can ofc speed it up

#

but yeah, view animations have INSANE potential

native spruce
#

my phone shows no transitions in those pages

supple whale
#

just implementing them is cancer

#

because its unintuitive and poorly documented and explained

supple whale
#

LAUGH AT THIS MAN

native spruce
#

No I use a normal browser

#

(safari)

supple whale
#

thats actually worse

#

well just about

#

both are about as dogshit

native spruce
#

I shall not discriminate based on browser choice

#

I started rewriting my site so I can have an easier time writing blogs without worrying about the codebase being horrible

#

got around 5 things I wanna write because I find them interesting

paper scroll
#

should just start publicly shaming people

lost cosmos
#

why about browsers tho πŸ˜”
they all suck in their own unique way <3

wild coral
#

how bout that

#

<3

supple whale
#

i wont do it in firefox

#

because it doesnt work!

valid jetty
#

@hoary sluice i wrote a bnf for ichigo and its so funny

#

i have this tool that lets me basically walk through a bnf and generate an example grammar out of it

#

like this

#

theres no limit though

#

lmfaooooo

#

if you just get lucky you can generate some insane statements

lavish frigate
#

reposting to here for the nerds

dawn ledge
lavish frigate
dawn ledge
#

it may seem like a nice way to write less but its fucking horrible when you're the one reading/code reviewing it

lavish frigate
#

if you dont know what .direction(::Horizontal) does thats on you i think

dawn ledge
#

what is Horizontal? where does it come from? what type it is?

lavish frigate
#

its a fucking enum

dawn ledge
#

no shit

lavish frigate
dawn ledge
#

i could tell because you had a better example Direction::Horizontal

dawn ledge
native spruce
lavish frigate
valid jetty
lavish frigate
#

but if there is only one enum that can go into the argument than i shouldnt need to type out the enums name

valid jetty
#

.{ .Foo, 1, }

shrewd canopy
lavish frigate
valid jetty
#

yes

#

.{} is a struct initializer to whatever struct it needs to be

royal nymph
lavish frigate
#

it should at least be used for enums only because . for member access is very ambiguous while :: isnt

solemn ravine
#

imo it makes it more readable, but I guess its just me being used to the API's available to me

valid jetty
#

why is typing the enum name that hard lol

#

your lsp should be able to autocomplete if you’re really so lazy you don’t wanna type the full name

lavish frigate
solemn ravine
#

what a beauty

lavish frigate
valid jetty
#

now what enums are those values from

#

you have to check the function signature

#

are they the same enum?

#

are they different ones? do they serve different meanings?

solemn ravine
#

I think they can be good if they're labeled properly

lavish frigate
#

where have you ever seen a function take in 3 separate enums

#

sure its possible in that one shitty codebase from 9 years ago but like

solemn ravine
#

probably none

lavish frigate
#

be real

dense sand
#

just ✨ jdk things

solemn ravine
#

are you able to just type :: to see the available options

valid jetty
valid jetty
#

if i call it as foo(::Operator, ::Operator) isn’t the meaning just ambiguous asf

solemn ravine
#

hmmm not sure if thats good then if you cant see something you would want

#

I think if a language does this there should be something that makes it easy to know what you can use in that scenario, otherwise it could be unreadable and unmaintable

crude star
valid jetty
#

^

crude star
#

uses are scoped anyway

lavish frigate
#

the problem with that is that it pollutes the scope & enums would conflict

#

::* is extremely different from ::Something

valid jetty
#

idk but either way zig code is unreadable for me because they fucking love to do this

crude star
#

closest scope takes precedence im pretty sure

solemn ravine
valid jetty
#

implicit struct and enum initializers everywhere and i have no idea what anything’s type is

#

jai has this problem too but not as bad

lavish frigate
#

i can imagine implicit struct initializers being horror but i dont see much of a problem with enums
swift code is very readable to me

crude star
#

like you can

fn parse(parser: Thingy) {
  use Token::*;

  // ...
}
dawn ledge
lavish frigate
valid jetty
#

core.pushEvent(.{ .window_open = .{ .window_id = window_id } }); can you tell me what the type of anything is here

#

or here

switch (core.state) {
        .running => {},
        .exiting => {
            core.state = .deinitializing;
            core_mod.run(core.on_exit.?);
            core_mod.call(.deinit);
        },
        .deinitializing => {},
        .exited => @panic("application not running"),
    }
dawn ledge
#

no and it sucks

solemn ravine
#

I mean obv you're not going to know the type, in xcode just alt click

#

makes no difference to me

valid jetty
#

makes a difference if you’re reviewing someone’s code though

royal nymph
#

if you need an IDE to understand the code, it's not good code

valid jetty
#

suddenly you need to dig for the header of the function you’re calling or the struct

#

if you’re just doing core.state = .deinitialized good luck finding what enum that’s talking about without lsp support

solemn ravine
#

🀷

lavish frigate
#

Nvm you do

dawn ledge
#

hehe

lavish frigate
#

You are the one force pushing into main

frosty obsidian
#

i made these exact points a long time ago

valid jetty
#

the point is that it’s not readable without lsp support

lavish frigate
frosty obsidian
#

i think this feature is awesome when you're writing it but not great when someone has to read it

royal nymph
valid jetty
#

yeah kotlin code is unreadable

royal nymph
#

it's super fun to write kotlin and spam .run, .apply, etc

#

but then when someone else tries reading that same code it's pain

valid jetty
#

i tried to understand eagely’s aoc solutions and failed miserably because wtf am i reading

frosty obsidian
#

eagely is not the average kotlin user

#

you can't read it because hes a professional competitive programmer

#

not a normal programmer

dawn ledge
#

i actually dont like it when im reading some java code on github for reference and its nested in java/main/fooo/bar/baz or whatever

valid jetty
#

but i mean i beat him and yet i can’t read his code

solemn ravine
#

you will love the code I write, I use it everywhere

valid jetty
#

it’s pretty funny

lavish frigate
# lavish frigate no

Okay different idea Rust analyzer should use 1% of its 90% cpu and ram usage (used to build my project on every keystroke) for making this possible then

frosty obsidian
#

eagely has like his own standard library just for competitions

valid jetty
#

my code is VERY readable

royal nymph
#

u dont have to but everything is made with it in mind

lavish frigate
#

My code readability depends on my mood

royal nymph
#

and once you start adding different namespaces it's needed

frosty obsidian
#

the organization makes a lot of sense when you get into it

valid jetty
#

look so readable

from collections import deque
import sys

DIRS = [(-1, 0), (1, 0), (0, -1), (0, 1)]
P1, P2 = 2, 20

def parse(c):
    grid = [list(line) for line in c.strip().split('\n')]
    start = end = None
    ws = set()

    for y in range(len(grid)):
        for x in range(len(grid[0])):
            if grid[y][x] == 'S':
                start = (y, x)
                grid[y][x] = '.'
            elif grid[y][x] == 'E':
                end = (y, x)
                grid[y][x] = '.'
            elif grid[y][x] == '#':
                ws.add((y, x))

    return grid, start, end, ws

def dists(grid, sy, sx, ws):
    rows, cols = len(grid), len(grid[0])
    queue = deque([(0, sy, sx)])
    v = set()
    ds = {}

    while queue:
        d, y, x = queue.popleft()
        if (y, x) in v:
            continue

        v.add((y, x))
        ds[(y, x)] = d

        for dx, dy in DIRS:
            ny, nx = (y + dx, x + dy)
            if 0 <= ny < rows and 0 <= nx < cols and (ny, nx) not in ws and (ny, nx) not in v:
                queue.append((d + 1, ny, nx))
    return ds
winged mantle
#

java might use reverse domains but github will cut through the dirs in one click

valid jetty
#

it’s not hard to write readable code

def get_ss(grid, sdists, edists, ws, btime):
    rows, cols = len(grid), len(grid[0])
    s1 = s2 = 0

    for sy in range(rows):
        for sx in range(cols):
            if (sy, sx) in ws or (sy, sx) not in sdists:
                continue

            queue = deque([(sy, sx, 0)])
            v = set()

            while queue:
                y, x, steps = queue.popleft()

                if steps > P2:
                    continue

                if (y, x) not in ws and (y, x) in edists:
                    total = sdists[(sy, sx)] + steps + edists[(y, x)]

                    if total < btime:
                        s = btime - total

                        if s >= 100:
                            if steps <= P1:
                                s1 += 1
                            if steps <= P2:
                                s2 += 1

                for dy, dx in DIRS:
                    ny, nx = y + dy, x + dx
                    if 0 <= ny < rows and 0 <= nx < cols and (ny, nx) not in v:
                        v.add((ny, nx))
                        queue.append((ny, nx, steps + 1))

    return s1, s2
frosty obsidian
#

java only really really adds like a couple folders before you get to anything meaningful

#

super easy to click through

dawn ledge
#

as i said, i dont hate it, i slightly dislike it

royal nymph
#

i prefer the C# folder structure over the java one

frosty obsidian
#

could see it being annoying still depending on what you're navigating the structure with

winged mantle
#

go does everything best

royal nymph
solemn ravine
#

any type of weird forced folder structure πŸ‘Ž

winged mantle
valid jetty
#

i prefer

src
L foo
    L a.le
    L b.le
L main.le
Makefile
``` pls you don’t need more it’s just bloat
royal nymph
#

the java folder structure makes more sense once you start getting a proper project

winged mantle
#

also how could that work 😭

solemn ravine
#

but im different depending on language tho..

winged mantle
#

why don't file browsers do the same thing of combining dirs

frosty obsidian
#

@royal nymph after you originally made a few critiques on extension functions i started moving some to like an .ext package as an indicator

solemn ravine
#

good question

winged mantle
#

like if src only contains main you click on src/main

valid jetty
winged mantle
#

why do you not have that in dolphin

#

or nautilus

valid jetty
#

uhhh

winged mantle
#

maybe with plugins idk

valid jetty
#

because you may want to go to an intermediate directory to put more files into it

solemn ravine
#

though it could get annoying honestly

#

I know it annoys me sometimes

frosty obsidian
#

bc not everything is designed around programmers

winged mantle
#

isn't that how vscode handles it

solemn ravine
#

ye

winged mantle
#

soo good

valid jetty
#

no iirc vscode treats the whole path as one single entity and files go into the final dir

#

maybe it’s a zed thing then hmm

frosty obsidian
#

keep in mind those file browsers are designed around common users

valid jetty
#

i remember being annoyed by that

frosty obsidian
#

they need to be user friendly and more general purpose

royal nymph
solemn ravine
winged mantle
#

each segment can be right clciked on

royal nymph
#

personally i dislike that feature in vscode tho

solemn ravine
#

for example

winged mantle
solemn ravine
#

its good for readability but I find it a bit annoying to use

#

sometimes I put the file in the wrong folder

winged mantle
#

i would love

royal nymph
frosty obsidian
#

yeah

royal nymph
#

i do this all the fucking time 😭

frosty obsidian
#

I've been annoyed by that before

winged mantle
crude star
#

when is ven going back to nvim

royal nymph
#

never...

frosty obsidian
royal nymph
#

why is coffee pudding so goated

#

tastes like tiramisu almost

winged mantle
crude star
#

steal my config im pretty sure i used yours and been modifying it lol

frosty obsidian
#

the ones you listed are

solemn ravine
#

ive dealt with people who freak out at the idea of dealing with file managers so idk about that

winged mantle
#

taking what i say seriously...

solemn ravine
#

could just put it behind some settings

frosty obsidian
#

yeah as mentioned previously a plugin would work

#

or a setting

winged mantle
#

dolphin does have some pretty advanced features

solemn ravine
#

what r ur thoughts on nested files

winged mantle
#

i don't need any answer why nautilus doesn't have

winged mantle
#

hybrid node on fs which is both file and folder

royal nymph
#

hop off npm

#

wait

#

why are there both package lock and pnpm lock

#

truly evil

shrewd canopy
solemn ravine
#

was or is

shrewd canopy
winged mantle
#

imagine if you wrote a whole app in gradle

frosty obsidian
#

wdym

solemn ravine
#

it gets rid of the useless bloatware in my file viewer

winged mantle
#

where the whole app is in the build scripts

solemn ravine
nimble bone
frosty obsidian
#

i mean gradle can just use kotlin

winged mantle
#

using groovy

frosty obsidian
#

so its not impossible

royal nymph
frosty obsidian
royal nymph
#

groups files that belong together

winged mantle
#

nested files as an actual filesystem feature πŸ‘

solemn ravine
winged mantle
#

as an IDE feature πŸ‘Ž

solemn ravine
#

so much fluff

nimble bone
royal nymph
#

why would you ever look at the lock file

winged mantle
#

if it's an IDE feature it 's confuysing because i will think i am using a filesystem which supports nested files

royal nymph
#

malware

frosty obsidian
#

i haven't seen that in webstorm

winged mantle
#

when is vencordinstaller being reworked

frosty obsidian
#

is it a setting or something?

royal nymph
#

well it's enabled by default in goland

#

thats all i know

solemn ravine
winged mantle
nimble bone
#

vencord installer in swiftcrossui

frosty obsidian
#

vencord installer in cef when

winged mantle
nimble bone
#

wait i should try making

crude star
#

liquid glass for vencordinstaller

royal nymph
#

i love ai

frosty obsidian
#

i disabled

royal nymph
#

why is it greyed out

#

do i need to add ai api key

winged mantle
#

vencord installer in java swing

frosty obsidian
#

maybe you aren't stupid enough

winged mantle
#

you must install java for vencord to work

solemn ravine
royal nymph
#

oh you need an ai license lmao

frosty obsidian
#

so bad

solemn ravine
royal nymph
#

wait it's free

frosty obsidian
#

guh

shrewd canopy
solemn ravine
#

I wanna try wxwidgets more but c++ package management is genuinely disgusting

nimble bone
#

much cleaner

crude star
#

hop on meson wraps

solemn ravine
#

bro made a nested gitignore

#

what could that possibly contain

nimble bone
#

has editorconfig and gitattrs

#

readme has coc license and contributing

crude star
#

what does editorconfig have to do with gitignore

nimble bone
#

nothing

#

it just had nowhere to go ykyk

crude star
#

truly amazing

#

this is my file tree

frosty obsidian
#

i like how jb ides just let you create custom layouts and stuff

solemn ravine
frosty obsidian
#

the android plugin only shows gradle modules for instance

nimble bone
#

not to be a shill but swift package management is good

frosty obsidian
#

cuts out a lot of the junk

nimble bone
#

Qt Creator separates .hpp and .cpp files but doesn't maintain the directory structure so that is ass

frosty obsidian
#

it also centralizes all the configs

solemn ravine
frosty obsidian
#

would say gradle but compared to some languages we have it pretty good

solemn ravine
#

one thing I found annoying is that vscode doesn't create another header file along with the cpp file i created

#

might just be me

#

xcode is spoiling me

frosty obsidian
#

xcode sounds so good i wish it was real

solemn ravine
#

do u seperate ur headers in another dir

#

or is it just me..

nimble bone
#

i don't

frosty obsidian
#

from what I've seen most projects keep them together

#

probably easier to switch between the files that way

solemn ravine
#

I tried using a include folder but it was so annoying to manage both of those

#

idk how projects do it

crude star
#

include is supposed to be for public headers

#

something that you would distribute

#

otherwise having them on the same directory is common practice

dawn ledge
crude star
dawn ledge
#

i cant type for the life of me

solemn ravine
crude star
#

C++ modules please become real

frosty obsidian
#

cpp programmers will continue to ask for their language to become bearable forever and they will never be heard

solemn ravine
#

the more useless files the more overwhelmed I am to the things I wouldnt need to look at

dawn ledge
#

ngl he cooked with that quote

valid jetty
#

omg i honestly forgot about this

nimble bone
#

Roie

valid jetty
#

roise

solemn ravine
#

awful

shrewd canopy
valid jetty
#

also TIL this feature comes for free in elle

"hello {}".format(TypeInfo::type_of<string>().wrapping()).format("world");
``` would be formatted as `hello "world"`
#

double format call looks kinda silly

#

but the .wrapping call returns a new fmt string depending on what the type is

#

then the second format call formats with that new format string

#

so it becomes "hello \"{}\"".format("world");

winged mantle
dawn ledge
#

many c projects have a separate includes dir

solemn ravine
#

it could just be by choice

#

many projects i know that isn't a c library do that

lavish frigate
#

ya

austere idol
crude star
#

what

hoary sluice
#

@valid jetty you fell off

valid jetty
#

i hacked together a few features i needed in it lmao

valid jetty
#

all my activity now is stuff i work on in my break days

#

and my school project thing

#

anyway elle 70 stars !!!! n

valid jetty
#

i got 81% on my last physics test which was on thermal physics and simple harmonic motion

#

my physics grades went from 20% to 80%

#

it’s crazy that my grades are actually good when i do even a tiny bit of studying

#

because throughout the last year i did almost no revision for any content

placid cape
hoary sluice
hoary sluice
#

im gonna do a bachelor in informatics at a remote uni and just stack all subjects that i already know into the first semester

valid jetty
#

i’m planning to spend the whole summer studying

hoary sluice
#

for exams next summer??

valid jetty
#

yes

#

i have mocks in september i need to bring my predicted grades up so i can apply for uni

hoary sluice
#

idk what kind of exams you guys have but i started studying 2 weeks before my maths/hardware

valid jetty
#

difficult exams

#

i have a D in physics right now

hoary sluice
#

good enough

valid jetty
#

i need a B even to go to japan but i’m aiming for an A

hoary sluice
#

who told you you need a b

valid jetty
#

the uni application website

hoary sluice
#

what uni

valid jetty
#

i need a B or higher in physics and maths

#

kyushu

hoary sluice
#

are u gonna study in japanese

#

or in english

#

informatics?

valid jetty
#

my current goal is to go to edinburgh though

#

for which i need A*AA

#

i get a year abroad there so i can just go to japan during that course

hoary sluice
#

wtf is A*AA

valid jetty
hoary sluice
#

britain try to use a normal grading system challenge

valid jetty
#

A* in computer science, A in maths A in physics

hoary sluice
#

is A* just A+

valid jetty
#

yes

hoary sluice
#

do yuo have that

#

in cs

#

do either kyushu or edinburgh cost money

valid jetty
#

i don’t but i can easily get that if i show i’m working at an A* level on my ichigo project thing

#

i’ve held almost 100% on every programming test in the last year

valid jetty
hoary sluice
#

yuo had 100% on every test but dont have a A*??

valid jetty
#

and i have an A in maths already

hoary sluice
valid jetty
hoary sluice
#

lol

valid jetty
#

not per year

hoary sluice
#

scam

valid jetty
#

the entire course

hoary sluice
#

per year would be america levels of scam

valid jetty
#

lmao

valid jetty
#

how tf am i supposed to know what baud rate is

#

well i know now but i didn’t then

hoary sluice
valid jetty
#

i have a B in cs atm

valid jetty
hoary sluice
#

so the data transfer rate

#

its a synonym of Hz

#

a stupid one

valid jetty
#

idk

#

out of sight out of mind

hoary sluice
#

9600 baud is faster than 4800 baud

#

i initially wanted to go to a uni of applied sciences, which is more like school with a fixed time table and they let you skip 2 semesters if you went to a technical high school

#

paid 250 euro deposit that i cant refund anymore

valid jetty
#

and they gave us this really horrible boolean algebra question that everyone did horribly on

hoary sluice
#

going to a uni in germany now

#

theyre almost fully remote

valid jetty
#

i was one of the few people to get 3/4 on that question

hoary sluice
#

how can you fail a boolean algebra question

hoary sluice
#

what did u get wrong

valid jetty
#

hold on

hoary sluice
valid jetty
hoary sluice
#

hold on

#

lemme remember whats +and whats *

#
  • means 1 + x = 1
#
  • means 1*0 = 0 i think
#

so its not w and x and z or w and z or x and y and not z or not w and x and y and 1

valid jetty
#
  • is OR, * is AND
hoary sluice
#

yes thats what i said

valid jetty
#

yea ok

hoary sluice
#

the 1 can be omitted

valid jetty
#

the answer

hoary sluice
#

you can drop the not w at the start because its repeated in another and expression at the end

valid jetty
#

i don’t think you can, you’re supposed to factorize and then apply absorption rules and stuff

hoary sluice
#

this is my answer