#Programming & Computers

1 messages · Page 3 of 1

undone thorn
#

you get what you pay for I guess...
VSCode will always have the advantage that it's free whereas for jetbrains' stuff you have to pay through the nose

worthy lintel
#

or just use eap versions forever

obtuse coral
#

frfr

#

i don't feel like any real programmer uses real debugging tools

#

unless you're trying to figure out why something segfaults in C

arctic lava
#

I used to code in an environment where debugging tools didn't exist

#

so

#

it was just prints

#

for days

obtuse coral
#

sometimes reading MC's code just makes me go chuuwat

#

what are these names, x, s, aa , w s and z

#

it's like they didn't even try to come up with good names for them

#

ffs mojang

worthy lintel
#

unless something has changed since i last used mcp, thats not mojangs naming convention

#

its decompiled code that the devs behind the tool to do so (used to be mcp back in the day) havent named

#

or else every class would be like il.b and every var would be string1 int2 etc

obtuse coral
#

hmm, but i used Mojang's official mappings

#

so that's the part that's just confusing

#

maybe they don't provide mappings for these specific variables but if they dont then that's just weird and dumb imo

worthy lintel
#

ah didnt know there was official mappings now

#

maybe they use the same kind of system idk, but to me aa stands out as a decompiled var name

obtuse coral
#

could definitely be why

#

they also use like l,j,k in for loops and stuff

worthy lintel
#

i mean

#

im guilty of doing that

worthy lintel
#

requests.map(r => someMappingHere)

#

lol

obtuse coral
#

yeah that's nto too bad but when your for loop is like

#

for (int l=j, l<k, l++)

#

it's just like

#

????

#

what

worthy lintel
#

lmfaoooooo

#

nah when you get nested loops for matrixes or whatever

obtuse coral
#

yeah that's acceptable

obtuse coral
worthy lintel
#

for (i) ...
for (j) ...
for (k) ...

#

acceptably unreadable

obtuse coral
#

i mean if you're doing coords or something it's okay

#

usually i just do like for plane in cube { for row in plane { for item in row

#

if im gonna go like that route

#

well i havent done cube... yet

#

bu i have done the inner 2

deft shadow
obtuse coral
#

using single letters in restraint is like, okay, though I'm not a fan of it

sick storm
#

i only use single letters for like one liner lambdas/closures/maps, or as the loop index

#

[lambda x: x.name for x in list] is pretty obvious i think

obtuse coral
#

what desktop do you use @sick storm?

sick storm
#

what desktop?

#

wdym

obtuse coral
#

like desktop environment

sick storm
#

oh

#

i don't

obtuse coral
#

how do u computer

sick storm
#

only window manager and whole bunch of bash scripts i wrote

obtuse coral
#

that is certainly a way

sick storm
#

custom fork of dwm to be exact

obtuse coral
#

tbh, i didnt' even know what a window manager was until i was looking at a DE on the arch wiki and it said you weren't able to change the wm for it

sick storm
#

lmao

#

well tbf it's not something you'd know about unless you want tl change it

obtuse coral
#

makes sense

#

at least i know the difference between distro and DE

#

which google sometimes doesn't hyunface

sick storm
#

yeahh

obtuse coral
#

googling good DEs to give a spin and it says "did you mean best linux distro"

#

tho if you dont have a desktop environment, does that mean you don't have a task bar and stuff?

sick storm
#

I like not having any de because I know exactly what happens at all times because I wrote everything myself

obtuse coral
#

ig thats fairly reasonable

sick storm
#

I have like a status bar that show battery and clock and other stuff

obtuse coral
#

ahh, you're on a laptop

sick storm
#

i use same setup on desktop too

obtuse coral
#

that's another decent reason to use no DE i guess

#

save battery

sick storm
#

i guess it helps

obtuse coral
#

though for my 7 year old laptop that i have that im not using rn, it probably wouldn't help that much anymore

#

that things battery lasts for ... 1h20m on windows

#

... idling

sick storm
#

💀

obtuse coral
#

the only good looking DEs i wanna try (after i switch from cinnamon in a week or so) is like budgie, or cosmic 2

sick storm
obtuse coral
#

and cosmic 2 isn't really in prod yet so hyunface

sick storm
#

this is somewhat up to date

obtuse coral
#

im a yay user personally

sick storm
#

I used yay before it's not bad

obtuse coral
#

what makes it bad tho

#

ohh

#

you meant those as different sentences

#

i thought you meant it became bad

sick storm
#

yes

#

imagine a comma there somewhere

obtuse coral
#

do you also experience the thing with flameshot where sometimes the window you're focusing disappears when you go to take a screenie?

sick storm
#

nope

obtuse coral
#

maybe this is just an nvidia thing tbh

#

i feel like i run into a lot of issues cause of nvidia

sick storm
#

could be

obtuse coral
#

that's why i'm gonna swap it with an amd one when the thing i ordered arrives

#

last part i'm upgrading

sick storm
#

what you getting

obtuse coral
#

amd RX 6700 XT

sick storm
#

noice

obtuse coral
#

it's slightly better than my old one

#

well, probably twice as good on linux

sick storm
#

it'll probably save you a lot of headache

obtuse coral
#

yeah

#

after i installed proprietary drivers and bricked my os, my decision was already made in my head

sick storm
#

haha

#

I'll show you my status bar tomorrow

obtuse coral
#

neat

#

im prob gonna stick to using DEs cause i like the feel of them

sick storm
#

de just works™️ if you don't feel like making everything from scratch

obtuse coral
#

yee

#

the other thing i'd be interested in is making my own DE, but that's a massive time sink i assume

sick storm
#

like there's not much point doing what I'm doing I just find it enjoyable

obtuse coral
#

that's reasonable

sick storm
#

well that's basically what I've done

obtuse coral
#

isn't it just a bit more spread out?

sick storm
#

DE is just a bundle of software and scripts made to work well with eachother

obtuse coral
#

true

#

cinnamon feels a bit like it doesn't all work together well sometimes

sick storm
obtuse coral
#

writing bash one liners to do stuff because you wont have clipboard access when you start reinstalling everything on your pc is fun

arctic lava
#

i have linux to look like windows 10

modest quiver
#

I wish I used Linux but my parents are paranoid and I can't do anything while I have an active warranty

#

missing kde plasma

#

proton was a bit of a pain tho so I'd have to dualboot

arctic lava
modest quiver
#

thinking of using fedora gnome this time tho

#

as apparently fedora kde isn't the best

sick storm
#

kde is definitely better than gnome

modest quiver
#

yeah I know that

#

but like apparently the kde experience isn't the best on fedora

#

or so I've heard

sick storm
#

@obtuse coral from left to right: workspace selector, current tiling mode, window title, bluetooth, wifi, ram, cpu, volume, brightness, battery, kb layout, date and time. Every block is a bash script much like the one i have open (for battery) ran in a loop

modest quiver
#

didn't use Linux in forever

#

leroy you use linux?

#

huh

#

TIL

#

ahhh that explains a lot

#

Linux is wizardry for old hardware honestly

#

my dad had an old af acer that I installed Linux mint on bc windows barely opened anything and it was like new

#

yeah when the warranty for my computer ends I'll dualboot as well

#

windows for games and Linux for general use

#

or well, at least I think I'll do that

#

I'm very lazy

#

yeah the only issue is games working worse on Linux in some cases

#

like valve games aren't an issue but stuff like say idk Destiny just plain doesn't work because Bungie is dumb

#

or games that rely on dosbox like the steam copy of tomb raider 1996

sick storm
#

anything with anticheat or drm usually doesnt work

modest quiver
#

lmao

modest quiver
#

apparently battleye works great

sick storm
#

some anticheat works

#

but many dont

modest quiver
#

mhm

sick storm
#

because it's hard to implement

#

since linux user has so much power over their system

modest quiver
#

aren't epic also weird about Linux though

#

when it comes to easy anticheat

sick storm
#

yea

modest quiver
#

like I remember tim sweeney admitting to just not trusting Linux users with EAC lmao

#

like outright admitting his product does not work

arctic lava
#

kde superiority

sick storm
#

its actually jetbrains mono

arctic lava
#

actually🤓🤓

undone thorn
#

i actually love jetbrains mono

#

such a good monospace font

sick storm
#

its quite nice

#

i've used a lot of fonts but cant find the perfect one

arctic lava
#

to be honest i think that we should never make general artificial intelligence

undone thorn
#

Honestly, safer that way. Altho taking all biased humans out of the mix kinda also sounds like a good idea...

arctic lava
#

i just think making anything smarter than us will innevitbly just lead to the destruction of the entire human race

#

sure

modest quiver
#

I for one welcome our new robot overlords

sick storm
deft shadow
#

very important question
1️⃣ compsci
2️⃣ comsci

wicked garnet
#

compsci >>>

#

who even says comsci

deft shadow
#

fuck am i in the minority

modest quiver
#

comsci sounds wrong

obtuse coral
#

at my school they say it like cmsc, bu they're weird

worthy lintel
#

highly recommend dusting and repasting

#

was idling at like 75 this morning

left aurora
undone thorn
#

Or 3️⃣ CS

deft shadow
#

who does 1️⃣

undone thorn
#

I do 🙃

sick storm
#

competitive skiing

arctic lava
#

spell it compsci pronounce it com-sigh

#

too lazy for p's

sick storm
undone thorn
#

ez fix, just be a mathematician too and have the greek keyboard enabled 😎

worthy lintel
#

ive never related to a tweet more in my life

undone thorn
#

Literally every day when I'm at home 🥲

#

"These are noise cancelling so you're gonna have to repeat your question" 🙄

sick storm
#

mood

raven mist
raven mist
obtuse coral
#

people really be writing CLIs in one file like c'mon

#

pls o r g a n i z e

eager swift
#

hello programmer here

obtuse coral
#

programmer where

modest quiver
#

programmer over there

eager swift
left aurora
obtuse coral
worthy lintel
#

why does setting up backups have to be so painful

obtuse coral
#

wdym

#

i just used backblaze and made a shell script use b2 sync on my config files etc

worthy lintel
#

ive got the backblaze personal client thing going

#

but to backup my wsl stuff ive got a script inside wsl to rsync my stuff over to windows, which runs once a day via the windows scheduler

#

no idea where all this stuff is coming from tbh

obtuse coral
#

can't you look on the web client?

worthy lintel
#

no i mean

#

i dont know why i have 400gb of stuff

#

i excluded all my local music files, shadowplay recordings lol

sick storm
#

wait you guys have backups

worthy lintel
#

figured i may as well start doing so now i have good internet

sick storm
#

i have a little sync server going to sync files between my laptop pc and phone but it doesnt really work as a backup since deleting something deletes it off every device

obtuse coral
obtuse coral
worthy lintel
#

yeah guess so

#

kinda dumb that its just all or noting

#

with an exclusion list

obtuse coral
#

if you include web browsers like discord etc it can already go into the tens of gigsbytes

worthy lintel
#

was expecting to just choose what folders to backup

obtuse coral
#

i like to use the command line b2 tool due to that

sick storm
#

I use syncthing

#

have you tried it

worthy lintel
#

b2 ends up more expensive than their personal backup service so i figured id just go with this

#

or am i dumb

obtuse coral
#

i just wrote my shell file like

b2 sync --delete ~/media b2://backup/media```
worthy lintel
#

i swear i saw something like $15 for 10gb

obtuse coral
#

I don't believe it's that expensive at all

worthy lintel
#

oh its $5 per tb per month

#

ok i am dumb and should just use b2

sick storm
#

per TB??

obtuse coral
worthy lintel
obtuse coral
#

the only downside of b2 as far as i can see compared to s3 from what I've been told by others is that the server is a bit slower when it's under stress

#

so you'll wanna backup at like... not midnight gmt0

sick storm
#

my 75gb volume is costing me 3e/month and the sync vps is another 3e

#

but the beauty of my syncthing solution is that the syncing is nearly realtime

#

I can take a pic on my phone and look at it on my pc few seconds later

obtuse coral
#

do you use android?

sick storm
#

yeah

worthy lintel
#

for the fab stuff on mega i just use megacmd to sync

#

its pretty cool

#

i should probably copy that into this backup stuff at some point

sick storm
#

normally syncthing is just peer to peer syncing, but having one of the peers be always online linux vps makes it almost like a cloud storage

#

And i can access the server's dashboard through my own domain

#

sharing is per-folder so for example I dont share my code to my phone because that would be useless

#

now If i wanted a real backup I could have nightly backups from this central sync server to backblaze though

#

which is probably something i should do

obtuse coral
deft shadow
#

i have to do 25 or so programming exercises in the next 26 or so hours

worthy lintel
#

25 different kinds of fizzbuzz

#

easy

deft shadow
#

you massively overestimate my skill

#

i also have to record a 5-10 min video about pointers because apparently i have to do this in a programming class

worthy lintel
#

youre in a programming class and cant do fizzbuzz?

deft shadow
#

i-i don't know what fizzbuzz is

worthy lintel
#

its a dumb little gotcha exercise that companies do

deft shadow
#

im in my first year of uni

worthy lintel
#

Fizz buzz is a group word game for children to teach them about division. Players take turns to count incrementally, replacing any number divisible by three with the word "fizz", and any number divisible by five with the word "buzz".

deft shadow
#

i am ready to consume the wrong amount of caffeine in my four year adventure

sick storm
#

fizzbuzz is like next level from hello world

undone thorn
#

Don't forget pop!

deft shadow
#

24h 52m before deadline

pointers seem like arcane magic

#

funny thing: my professor does not allow us to yoink code from the internet

#

which, and correct me if i am wrong, is exactly what actual programmers do?

worthy lintel
#

yes

left aurora
#

aha

worthy lintel
#

we literally wouldn't survive without stack overflow

deft shadow
#

it's such a stupid limitation

left aurora
#

they wont know hyunface

#

jus implement it ur own way

worthy lintel
#

there's even a vscode extension that does things for you

#

like chatgpt

left aurora
#

yeah that but its abit jank

worthy lintel
#

copilot is good for menial tasks like writing out enums

#

i use it

deft shadow
left aurora
#

hyunface if it works it works i wont touch the code

sick storm
deft shadow
#

fair enough

sick storm
#

plus you have to actually know what the code you're copying does lol

deft shadow
#

yeah

#

man i wish my prof actually taught us things

sick storm
#

this is what I get for promoting arch linux to my coworkers YEP

arctic lava
#

Hope you found time to relax. (I haven't)

obtuse coral
#

Mood

deft shadow
#

i love c (no i don't)

obtuse coral
#

i love c (rustc)

undone thorn
#

We are all so good at lying to ourselves 🤠

arctic lava
#

rewriting the specifications for my code 700 times till I find something I actually like:

worthy lintel
#

4 days later, it's almost done

arctic lava
#

backup once a day????

worthy lintel
#

may as well if its only gonna take a minute while my pc is on all night anyway

sick storm
#

I also set up nightly backups now

#

to backblaze b2

#

using restic

worthy lintel
#

i was gonna setup b2 and make my own scripts for it but figured i was already half way through this upload

#

try this out for a bit and if its meh then ill do b2

#

already dont like how it absolutely kills framerates when its transmitting while ingame

sick storm
#

what is that

#

ui looks like windows

worthy lintel
#

its the backblaze personal backup app

sick storm
#

ah

#

yeah i dont have it running on my local machine

worthy lintel
sick storm
#

how do you have 500gb of stuff to back up

worthy lintel
#

i genuinely have no idea where its all coming from

#

i excluded all my shadowplay, local music and assorted video folders

sick storm
#

are you backing up system files and such aswell

worthy lintel
#

yea it forces you to

sick storm
#

oh

#

interesting

worthy lintel
#

its not a system where you add folders

#

only exclude

sick storm
#

did you exclude steamapps lol

worthy lintel
#

pretty sure

#

yea whole games folder is excluded

sick storm
#

i think this personal backup thing is meant to be like one click solution so they dont have much configuration you can do

worthy lintel
#

yeah seems so

sick storm
#

I dont see much point in backing up system files personally I just backed up pictures/videos/documents/source code

#

which totals up to around 60gb

deft shadow
#

it's fun trying to figure out how to fix my code when i don't even know what the problem is to begin with

#

apparently i have a segmentation fault somewhere but i cant find it

worthy lintel
#

if/when you get a programming job you'll soon find its not fun at all

deft shadow
#

yeah i should rephrase that

#

i am not having fun, this exercise is due some nine hours from now and i cannot find where the segfault is coming from

worthy lintel
#

if in doubt, put console logging everywhere and youll see which ones dont trigger

#

if you dont have a debugger that can do breakpoints that is

deft shadow
#

...what's console logging

worthy lintel
#

what language are you using

#

just a function that logs to the console/stdout

#

console.log(), system.out.println(), print() and so on

deft shadow
worthy lintel
#

printf("logging to console")

deft shadow
#

so are you telling me to just put that in every other line of code

worthy lintel
#

thats what i do when i cant be bothered setting up breakpoints

#

just like printf(1), printf(2) and so on, then once it crashes you'll see where it got up to

deft shadow
#

it's like

#

this online compiler im using runs the code fine but the online judge where i have to submit the code to says RTE (segmentation fault)

worthy lintel
#

im not a c guy but maybe check the compiler versions

deft shadow
#

mmmmm

#

i highly suspect the problem is im using a deprecated function (gets)

worthy lintel
#

yeah that would make sense

#

should probably be using an ide configured for the right version too

#

that would pick it up before you even run anything

deft shadow
#

update: i did it

turns out the problem was that i didn't assign a value to a variable so the literal fix was
int x to int x = 0

obtuse coral
#

the fact that code compiled tells u the quality of C as a programming language YvesDed

#

and that there's 0 real error handling it's just segfault

sick storm
#

c moment

deft shadow
#

if i have to use c next sem i will cry

obtuse coral
#

i wonder if it's a valid strategy to write ur code in rust, compile it, and then decompile it into C

arctic lava
#

Do you guys actually work 8 hours a day?

#

like every single day?

worthy lintel
#

its 5:38pm and i havent done a single minute of work today

arctic lava
#

i feel like i don't put enough effort at work (wfh has made me lazy), and i see my friends coasting at thier jobs too, and idk that's just normal now

worthy lintel
#

yup, wfh does that

#

my first two positions were remote for about 3 years and had motivation issues

#

then moved into the office for 18 months, was pretty motivated

#

then back to remote for the last 18 months and never been lazier

arctic lava
#

im still in school, but have been interning at the same place for 6 months and now i start full time tomorrow and idk if they think im slacking or not

worthy lintel
#

if no one has pulled you up on anything then you're probably fine

#

idk what kind of company you're at but at mine it's more about the quality of output than quantity

#

like if i get a solid, productive 2 hours in, that's much preferred to a "typical" 8 hour day

arctic lava
#

that's almost like the same for me too, but i have a few seniors in my team that do insane amount of work and it makes me think im cheating

worthy lintel
#

since you're coming off an internship, you could always just ask a higher up for input on how you're doing

#

even at my most productive, i've never done a full balls to the wall 8 hour day

worthy lintel
#

i wouldn't worry too much. a few years in the industry and you'll very quickly realize that a full 8 hour day is simply unsustainable

#

otherwise you burn out way too quickly

#

and impostor syndrome is incredibly common

near shuttle
#

the king is back

worthy lintel
#

easily one of his best videos

near shuttle
#

yeah

#

for sure

#

when he suddenly cut to the entire contraption i was like what the fuck is this madness

wicked garnet
#

yo

obtuse coral
#

?

wicked garnet
#

damn cant even say yo

#

anyways

#

i have started learning python

#

pog language

undone thorn
#

It does make things very nice and readable which we like

wicked garnet
undone thorn
#

Tell that to something like js

worthy lintel
#

js/ts reads fine

#

its how it works internally that sucks

undone thorn
#

Yeah so what you read isn't what it does smh

worthy lintel
#

well, ts usually reads fine

undone thorn
#

This is truer

worthy lintel
#

just dont get yourself into type def hell

undone thorn
#

I like it there

wicked garnet
#

low-level language would be something like LDA181

#

Assembly language

undone thorn
#

01011001 01100101 01100001 01101000 00100000 01110011 01101111 00100000 01100010 01100001 01110011 01101001 01100011 01100001 01101100 01101100 01111001 00100000 01101110 01101111 01110100 00100000 01100001 01101100 01101100 00100000 00100111 01101000 01101001 01100111 01101000 00100000 01101100 01100101 01110110 01100101 01101100 00100111 00100000 01101100 01100001 01101110 01100111 01110101 01100001 01100111 01100101 01110011 00100000 01100001 01110010 01100101 00100000 01100011 01110010 01100101 01100001 01110100 01100101 01100100 00100000 01100101 01110001 01110101 01100001 01101100

#

(it's just text - it was funnier in my head)

obtuse coral
#

I'm loving Java :)

#

mixins are cool

obtuse coral
#

nah it definitely takes some getting used to

#

the fact you're not allowed to have unhandled errors can be inconvenient at times, but that feature is extra handy when you're doing something like making a Minecraft mod so you know you're never gonna crash the game unless you do cursed shit which people definitely do

obtuse coral
#

definitely

sick storm
#

arch users called out

obtuse coral
#

bruh

#

Ubuntu is for 👴

#

I'm sure Ubuntu users are having fun having to compile new Python versions everytime one releaseschuufac

sick storm
#

LMAO

obtuse coral
wicked garnet
#

nice

sick storm
#

im supposed to add logging to the user flow of an angular project but i've never touched angular in my life and this is extremely confusing

worthy lintel
#

what do you mean by logging

#

its a frontend app, what is there to log?

sick storm
#

metrics

worthy lintel
#

angular is just a reactive ui lib

#

if you want to add a metrics logger then you can but its not required

sick storm
#

we need user retention metrics

worthy lintel
#

so you have a service in mind already?

#

or are you building metrics in house

sick storm
#

in house

worthy lintel
#

you'd probably want to be hooking into the router so you can log page views

#

i havent done anything to do with angular but i believe vue has a way of hooking into the tab/page browsing away or closing, so you could hook into something like that to get an exit event

sick storm
#

maybe

#

if i can find the router files somewhere lmao

worthy lintel
#

god this looks horrific, no wonder ng is falling out of favor

#

looks like you'd want to use something like that to get info about the route and send it off to your service

deft shadow
#

sometimes i think about how my professor copied the questions of our exam from geeksforgeeks

worthy lintel
#

just getting you ready for the real world where you copy your work from stack overflow

deft shadow
#

its funny because some guy confronted our teacher about it, got the exam canceled and rescheduled, and then the prof just gave up and gave us full marks afterwards

sick storm
#

wtf

undone thorn
#

Incredible - are all CS departments the same?

deft shadow
#

drama

arctic lava
#

lmao

#

our test was just copied from a mock that they literally gave us beforehand

undone thorn
#

They had to send a threatening department-wide email within 2 hours of our online exam starting last year because they'd already found some ppl posting the questions online. 🤭

arctic lava
#

just realised I wasted the last 2-3 months on an idea that fundamentally was over complicated for what I actually needed to do

#

brainspark moment curse & blessing

#

anyway my code is half the size

#

just killed off half the "dead" code

#

and... it works the same

undone thorn
#

getting over sunk-cost fallacy actually huge 👏

arctic lava
#

sunk-cost fallacy is the worst in programming because its so real

#

like you could easily spend 6 months on an idea and then you realise that there was something easier all along

#

its like the most extreme sunk-cost fallacy time wise

#

I took a 1-2 week break due to exams

#

turns out thats what i needed

#

maybe also going to the gym has cleared my mind

arctic lava
#

i spent 2 weeks writing some middleware and then got rid of it and started from scratch again. my pr went from 4k+ loc (still failing tests) to 1.5k loc (this was my only huge pr ever) . Sometimes you have to let go, the sooner the better

arctic lava
#

its some pretty complex math stuff so its hard to know you're wrong until... you're wrong

tardy fulcrum
weak marsh
tardy fulcrum
sick storm
#

see if you can find a refurbished thinkpad somewhere

tardy fulcrum
#

Are you talking about Lenovo?

sick storm
#

yeah

tardy fulcrum
#

I've never seen one. And If I buy a refurbished one I want to see it irl to look how good/bad it is

sick storm
#

there are stores that sell used office supplies, usually laptops too

#

but if you want a new laptop i would go with a lenovo yoga or something

#

new thinkpads are too expensive

tardy fulcrum
#

Lenovo yoga are too expensive here in my country I can't afford one

worthy lintel
#

highly recommend looking up companies that handle liquidations for offices

#

was offered a herman miller for like $400 but i already had all my stuff freighted

sick storm
tardy fulcrum
#

Noted. I am going to looking for a store outside my town

arctic lava
#

something I have been working on

wicked garnet
#

fraser back so programming chat is now active

#

how many years did yall take to master your respective language?

left aurora
#

um

#

does anyone know how immediate value encoding in assembly works

#

they trying to encode a 32 bit number in 12 bits
which is impossible
so instead they use 4 bits to rotate? the remaining 8 bits
and thats all i understand,,,

#

for some reason hex 102 is an invalid number
idk why

worthy lintel
#

ask chatgpt

arctic lava
#

i'm not gonna lie it took me like 5/6 years to start to feel confident in what I write being good quality code (where I am now)

#

also chatgpt has gone so downhills since it released

worthy lintel
#

i physically cringe when i look back at old projects

arctic lava
#

it honestly couldn't be as bad as what I wrote when I was learning how to program and refused to use data structures

worthy lintel
#

javascript: what are data structures

arctic lava
#

like 400 variables and 2000 if statements oops

sick storm
#

looking at old code is fun you feel like you've improved so much

arctic lava
#

i definitely have improved 2 billion times over

#

i should be less lazy and fix the code i slap together in 5 minutes though

#

have to refactor so much because my code is so messy the first time

worthy lintel
#

build mvp -> dont have time to do things properly -> features get added to mvp -> mvp starts to fall apart -> refactor entire project while it's running in prod

obtuse coral
#

does it tho

#

i only cringe when i see old code from myself

wicked garnet
#

or accomplishment

obtuse coral
#

most of the old code i read has been really bad, but maybe someday i will

sick storm
#

yeah that's the point it's so bad and now you realise it's bad because your knowledge has increased

wicked garnet
#

see, sense of improvement and achievement

obtuse coral
#

what if i knew i was writing terrible code when i made it

sick storm
#

💀

#

then

#

well

#

idk what to tell you

obtuse coral
#

Joine defeated

wicked garnet
obtuse coral
#

for a few more months yes

scenic turtle
#

didn't find any other appropriate channel to post this so uhhh

#

chair thing

#

took me only 2 all nighters to figure out

pine wolf
#

ayy nice. i remember during college when I did an ff8 Gun blade model using Solid Edge

scenic turtle
#

woah

arctic lava
#

me making the ugliest code imaginable:

#

(it works tho)

#

commits to github
posts github link
"will add readme soon"
never adds readme

sick storm
#

how I added an email address to my website without getting bot spam from crawlers: just encode it in base64

const Email = ({ encoded }) => {
  const [realEmail, setRealEmail] = useState<string | null>(null);

  useEffect(() => {
    setRealEmail(Buffer.from(encoded, 'base64').toString());
  }, [encoded]);

  return realEmail ? <a href={`mailto:${realEmail}`}>{realEmail}</a> : <a>{encoded}</a>;
};
worthy lintel
#

god react code looks like ass

sick storm
#

im so used to it already that i kinda like it

#

at least i like it more than angular or vue

worthy lintel
#

i hate jsx so much

sick storm
#

lol why

worthy lintel
#

mixing html and js together

#

awful

#

the industry will take my vue sfcs from my cold dead hands

sick storm
#

i like the fluidity of it I can just return some html fragment and not worry about it

worthy lintel
#

does react not have computed properties?

#

i think useEffect is akin to vue's watch(), so to me watching a var to update something else like that is really weird

#
<template>
  <span v-if="encoded">{{ encoded }}</span>
  <a :href="`mailto:${email}`" v-else>{{ email }}</a>
</template>

<script setup lang="ts">
import { computed } from 'vue'

const props = defineProps<{ encoded: string | undefined }>()
const email = computed(() => Buffer.from(props.encoded, 'base64').toString())
</script>

i think thats more or less the vue equiv

sick storm
#

no there's no computed properties the same way as vue

#

see to me that template with v-if and v-else html properties seems really messy so it's just preference ig

worthy lintel
#

yeah i guess

#

i think there's plugins you can get to use other templating engines

#

but im not sure if there's anything like svelte's {#if} blocks

sick storm
#

i could just compute the value as a const but then it would run on every render, useeffect makes it only run once

#

and more importantly, it runs on client side (because im using nextjs ssr)

worthy lintel
#

yeah thats the one thing i do know about react is that useEffect makes it real easy to shoot yourself in the foot

sick storm
#

i will say they could have definitely made it clearer lmao

worthy lintel
#

coming from vue, having it explained as basically the same as watch() really helped

sick storm
#

that hook has so many different behaviours depending what you pass/return from it

#

yeah it's basically watch()

worthy lintel
#

im in the middle of migrating our nuxt 2 project over to pure vue 3 and its been so nice to use vite

#

instead of the bloated mess that is webpack

#

as sick as svelte kit looks, can't justify jumping into the ecosystem with how small it is

sick storm
#

yeah webpack is pretty bad

#

i havent tried svelte yet

worthy lintel
#

downside is that vite doesn't seem to support graphql documents with imports

#

so i gotta move all of them into ts files with gql template literals

arctic lava
#

i love promises

worthy lintel
wicked garnet
#

legendary code

sick storm
#

how can cloudflare offer free serverless workers with 100k requests/day.. for free

#

this seems too good to be true

obtuse coral
#

well it's true afaik

sick storm
left aurora
#

thats sick tho

undone thorn
#

excellent videos

sick storm
#

never heard of them

#

oh this is great I can make mine a little cooler

undone thorn
#

I was reminded straight away of the video when i saw your effect lol
Very nice collection channel of neat js and css tricks

sick storm
#

his implementation is so much simpler than mine lmao

arctic lava
#

asynchronous programming is honestly such a hard concept to program aroudn

obtuse coral
#

now get ready for async multithreading

#

Minecraft worldgen moment

proven lynx
#

my 2nd monitor has started flickering green for first minute or 2 after start up or when waking up pc from sleep.
tried rolling back drivers and updating it. checked cables, but idk what else it can be
problem doesn't re occur for the duration monitor is active.

arctic lava
#

i fixed this issue by literally swapping the monitor positions and the cable each monitor goes into

proven lynx
#

if u mean switching which one is considerd main monitor tried that but didn't work

#

idk about switching cables

arctic lava
#

eg if displayport was left and hdmi was right, keep it that order but switching them around

#

sometimes your computer assigns them in a certain way

#

so plug them into a certain order in the gpu

proven lynx
#

don't think i understand

#

their both dp not that it matters

arctic lava
#

like switch the order on the gpu

#

so monitor 1 goes into the port that monitor 2 is in and monitor 2 goes into the port monitor 1 goes in

proven lynx
worthy lintel
#

twitter api is good in comparison to ig

#

FUCK that poor excuse for an api

sick storm
#

not hard to be better than literally nothing

arctic lava
#

Making all the wrong moves

arctic oriole
#

this is going to sound dumb but does ublock work on Twitter ads and promoted tweets?

sick storm
#

yes it does

arctic oriole
#

well, guess I'll browse every now and again. glad ublock works on mobile Firefox

sick storm
#

yea mobile firefox is awesome

lilac granite
#

uhhhhh apparently this is the pricing?

sick storm
#

it's not

#

that is the 30 day search feature for enterprise customers which has always been paid and expensive

#

they haven't announced the new api pricing yet

obtuse coral
#

it would be fucking insane to have that pricing for a normal api

#

worse than adobe

arctic lava
#

insane would be an understatement.

sick storm
#

has anyone used nixOS

#

im tempted to switch from arch linux

near shuttle
#

Istg if twitter api ends up with some fucking idiotic pricing for basic tier im gonna be even more pissed than i am rn

#

Who the fk releases an announcement that their product is gonna stop being free to use WITHOUT the price tiers included in the announcement

#

And what logic is behind releasing the god damn pricing NEXT WEEK when the API is gonna stop being free to use, it's like pressuring the developers to make a decision on the spot

sick storm
#

yeah this doesnt make sense

#

they have to tell us the pricing before the access is revoked right??

near shuttle
#

With the way their announcement is worded it sounds like we won't be getting the pricing until 1 to 2 days before

#

Which is an absurdly short amount of time to decide whether we want to opt in to their pricing

#

Plus we don't even know the API coverage that the basic tier will have

sick storm
#

yeah lmao

#

imagine bigger companies

#

having to get this expense approved within 1 day

near shuttle
#

Yeah exactly

#

I hope to god it's not more than 5 usd a month

#

Any more and I'm gonna be fuming

sick storm
#

$10 is doable but more than that is pain

worthy lintel
#

it's gonna be catastrophic if they force oauth users to pay

sick storm
#

oh yeah

worthy lintel
#

not a chance every platform with sign in with twitter buttons can turn around this quickly

sick storm
#

and not a chance they will pay

near shuttle
#

Yeah

sick storm
#

just remove the button

near shuttle
#

That'll incur a huge cost on the DB end

#

They'll practically be forced to pay

#

Otherwise their database would be in shambles

worthy lintel
#

there'll be a lot of people who never implemented the ability for social login users to transition to password login users

near shuttle
sick storm
#

i would imagine most places dont have this issue?

near shuttle
#

Haven't recovered my account in months

worthy lintel
#

depends on how the implementation is done

sick storm
#

but yeah i try to avoid social logins for this exact reason

near shuttle
#

Cuz the verification process to recover the account is so convoluted

worthy lintel
#

i've used a social login package that was purely social login and didnt keep a user email/password record

#

just logging in w/ social gave you a session

sick storm
#

bruh

worthy lintel
#

in theory its good for a small hobby projects but nothing serious

#

luckily i never got around to implementing social auth at work

sick storm
#

ye true

near shuttle
#

And a lot of solo run projects which become bigger never think to implement password logins cuz they don't even know that this situation could occur

#

Just hope it ain't too bad in the end, only time will tell

sick storm
#

twitter/fb/etc could go offline any moment or your account on that site could get banned

#

and now you're locked out

#

if you have more than 10 users that's something you should be thinking about already

#

it is extremely trivial to just store the email address that the twitter oauth hands you, as a recovery method

modest quiver
#

samsung SSDs are so expensive for no reason ChoerryNervous

#

bc what warrants it costing a leg and an arm here

sick storm
#

best quality components

#

faster speed

modest quiver
#

jeez

#

finding cheap ones that dont look fishy is hard

sick storm
#

just buy a crucial or wd drive

#

you will not notice the difference lmao

#

or kingston

worthy lintel
#

wd black m.2s are good

modest quiver
#

i saw a WD nvme one that wasn't a black but still

#

and it wasnt like

#

very expensive

#

so

sick storm
#

i have some samsung m.2s but only because it was on sale

#

normal price not worth

modest quiver
#

well im not gonna spend an arm for extra storage

sick storm
#

yea

modest quiver
#

oh oops

#

i misread

#

i thought u meant its not worth buying ssds at a normal price

#

I am so tired

obtuse coral
sick storm
#

I'm finding the configuration really hard lmao

#

it's so different from your standard linux config I have to google how to change basic things

arctic lava
undone thorn
#

ooooooo

#

words

#

i like those

arctic lava
#

its a lot of triangles

obtuse coral
#

🔺

sick storm
worthy lintel
#

me

undone thorn
#

this why i am a big believer in git with GUI usage honestly - then you can actually diff files easily and write meaningful commits 😭
Even if it's a little slower to get things done and you have to like move your mouse 🥲

sick storm
#

i mean you can diff from the terminal too

#

but i must say being able to add blocks from the same file to different commits in vscode is very useful

#

(which you can also do with git add --patch .. but it's harder to use)

fleet anchor
arctic lava
#

"tests don't work"

obtuse coral
sick storm
#

I set up my system to wipe the root partition on every reboot (and regenerate if from nix config) but forgot to exclude /etc/shadow so now it deletes my root password on boot and im effectively locked out..

obtuse coral
#

why did you do this

wicked garnet
sick storm
#

it's ok I managed to recover it. through a live usb and careful mount binding of system folders I was able to chroot into the broken system and change my password and disable the root wiping for a while

undone thorn
#

Impressive work

sick storm
#

for a sec i thought i was done for and would have to reinstall

#

but i always find a way

#

i've bricked my linux too many times

undone thorn
#

trial by fire eh....

obtuse coral
#

i only bricked it once i think

#

from daring to own an nvidia gpu

undone thorn
#

Scandalous

scenic turtle
#

@raven mist I started doing C

mystic adder
#

do all of u guys have a CS degree? is it required to work as a programmer?

fleet anchor
#

im still a student

fleet anchor
scenic turtle
#

we have had 4 classes so far and the guy has only taught two meaningful things

#

prinft() and scanf

sick storm
#

because i know what im doing

fleet anchor
# scenic turtle doesn't seem too hard

its more like easy to learn hard to master, its pretty easy to make simple programs with C but if you want to get into the advanced stuff its a higher curve

#

at least thats how its been for me

#

im more intermediate level atm

sick storm
#

really the hardest part is getting that first job but if you have a lot of hobby projects to show off, a degree isnt gonna matter

#

and then when you have 1-2 years of experience no one is even going to ask

#

unless it's 1. a conservative company or 2. government job

#

but who's gonna want to work in those anyway lmao

raven mist
sick storm
fleet anchor
#

what hobby projects would you recommend?

sick storm
#

anything you want to make really

#

website/bot/cli tool

#

something

fleet anchor
#

i guess i could start with something simple like a calculator with buttons

sick storm
#

yeah maybe

#

but that sounds really boring

#

and you're likely to not be that excited about working on it

fleet anchor
#

🫠

#

ill look around

sick storm
#

the best project is something that fixes a need/problem you personally have

#

but yeah it's pretty hard to just think of something to start doing on the spot lmao

undone thorn
#

But yeah an ideal project is smth that actually solves a problem you have and that you can and want to use and talk through passionately (to an interviewer etc.). Could be a discord bot, website, an app, an ML model, anything

sick storm
#

I'm sure it does (if you like maths (i dont))

undone thorn
#

I love maths~ choerrycute

sick storm
#

i did like math in high school but uni level math has a big difficulty spike and it goes right over my head

undone thorn
obtuse coral
#

not a fan of C YvesDed

fleet anchor
#

i love segfaulting 🙃

worthy lintel
#

typescript gang

obtuse coral
#

java gang ChoerryNervous

sick storm
#

i might need to ask my employer for a better workstation...

#

this thinkpad isnt gonna cut it

sick storm
#

72 cores and it still takes them 40 minutes

sick storm
#

my hard drive is 238 gb and it says i need 250 gb but I'm gonna leave it downloading overnight and hope they overestimated the size 👍

obtuse coral
undone thorn
#

Maybe one's megabytes and the others' megabits but they messed up the capitalisation? ChoerryNervous

worthy lintel
#

has twitter outlined pricing yet?

#

it's meant to go paid tomorrow isnt it

sick storm
#

i havent heard anything

worthy lintel
#

but i'm thinking it'll require some kind of verification

#

like you have to submit an application and they approve it

sick storm
#

write only
most people use twitter api for reading not posting

worthy lintel
#

my use case is write only so its all i need to care about

sick storm
#

oh do you have a twitter bot

worthy lintel
#

yeah got some stuff at work that hooks into our platform

#

and some sentiment analysis stuff that hasnt been deployed in forever

sick storm
worthy lintel
#

tldr free api still available until feb 13, then 1500 tweets p/m for free access, paid tier after that

obtuse coral
#

it's kinda bad but not the worst it could be

#

i expected a lot worse

#

however, idk what this is going to do to bots that listen to twitter's api waiting for a post, so who knows

#

somehow i feel like "reading a post" and "waiting for a post" are going to be in very different payment plans

worthy lintel
#

yeah i guess it means we have to wait and see what exactly is locked behind paid tiers

fleet anchor
#

anyone know assembly that can help me with some hw problems? its basic but theres 1-2 lines that im not sure about

#

ik the format of
OPERAND, destination, arg1, (optional operand2?) ,arg2

#

but for the 64bit numbers (subproblems C and D) im having confusion about

modest quiver
#

hey so like this feels like an obvious answer since this is a channel with programmers but I wanted to buy a new keyboard and I wanna know

#

mechanical or membrane

worthy lintel
#

mech

sick storm
#

mechanical of course

#

no question

undone thorn
sick storm
#

i have a mechanical keyboard with lubed silent healio switches and it's 2x more quiet than my laptop keyboard

worthy lintel
#

lubed zilent tho

sick storm
#

linear > tactile

worthy lintel
#

wrong

sick storm
#

how dare you have different personal preference than i do 😠

worthy lintel
#

my preference > your preference obviously oliviasmug

near shuttle
#

i use less than that per month so

#

still curious about the paid tiers

arctic lava
sick storm
#

that wasted ad space must have cost them

obtuse coral
undone thorn
#

Honestly a disad if you ask me - like I wouldn't want to work at a company that blindly pastes a link like that

sick storm
#

yeah lol

worthy lintel
#

docker file permissions are such a pita to deal with

sick storm
#

you mean you dont just run all containers as root

worthy lintel
#

yea but trying to do that and keep it as simple as docker compose up

#

tried to make a user inside the container that matches the host doesnt seem to work

sick storm
sick storm
worthy lintel
#

not fooling me into learning rust

#

still using enums in typescript

#

tbh i dont get this complaint about the union type thing

#

like yeah you made a union type with strings numbers and an object, of course its going to allow strings and numbers

sick storm
worthy lintel
#

i already had to pick up typescript against my will

#

and almost had to pick up crystal

sick storm
#

wtf is crystal

worthy lintel
#

basically ruby but compiled to C instead of interpreted

#

you can import a lot of ruby gems and they just work, pretty cool but i hate the ruby syntax

sick storm
#

i see

arctic lava
#

documenting codefeelsyeojin

deft shadow
#

hi

#

is elm good

#

<-- has to learn elm for uni

obtuse coral
#

whats elm

deft shadow
#

is a programming language

#

or so my professor says

worthy lintel
#

copilot goated

sick storm
#

github ended my access to free copilot

#

so sad

obtuse coral
#

how's nixos going @sick storm?

#

is driver stuff super complicated

sick storm
#

i've never really had to think about drivers on linux

#

everything is built into the kernel

#

if you use an up to date kernel that is

#

but i've pretty much replicated my arch setup on nixos now, aside from few niche programs that arent available on the nixpkgs repos

#

might end up packaging those myself and make a pull request

#

(i did make it more complicated than it needs to be)

obtuse coral
arctic lava
#

off by one error strikes again

obtuse coral
#

huh?shamiDerp

deft shadow
#

you can't change variables

#

once you assign a value you can't change it

#

so that will be Fun to Deal With

obtuse coral
#

are there mutable things?

arctic lava
#

immutable (screaming)

deft shadow
#

ill come back to you once i get to the second lecture

deft shadow
#

i don't know what that means

#

but it's what it's

obtuse coral
#

tfw you add .gitignore to gitignore

sick storm
#

wtf

obtuse coral
#

it works joine

sick storm
#

but why would you ever want to do that

arctic lava
#

rina brain

north carbon
#

uhhh so very basic problem

#

import time t = int(input("Enter countdown time: ")) while t>0: print('\033[?25l', end="") print(t,end="\r") time.sleep(1) t-=1

#

the counting goes from 10 to 90 rather than 09 or 9

#

why is that happening

#

oh well, I just got to know it doesn't happen after I remove end="\r"

#

but I don't need it to print every number but erase the previous number and print new one

sick storm
#

because you never overwrite the 0 from the 10

#

you're just printing the rest of the numbers over the 1

north carbon
#

🤔

sick storm
#

print(t,end="\r") = print t and move cursor to beginning of the line

north carbon
#

oh so I was thinking right, it just brings it back to the ones place and ignores the zero

#

thanks

sick storm
#

yea you need to print some whitespace or something to cover the 0

north carbon
#

ok, I'll work on it

obtuse coral
craggy adder
#

totally random and most people would never see this but access to archiveteam's full image of VLIVE's data has been implemented into yt-dlp as of the latest version today, and you can basically download them but very slowly as it needs to grab chunks from WARC files ChoerryNervous

sick storm
undone thorn
#

i love my changing wallpaper every day; and cause im an icky windows user the theme colours change too to match

sick storm
#

i get tired of it very fast

#

yea i have same problem thats why i wrote this script so i dont have to do it manually lol

undone thorn
#

I use the windows spotlight images so it's just like nice landscapes and stuff

obtuse coral
#

does your pc have to spend an hour rebuilding all your programs everyday joine

#

i tried the nix installer in a vm and it took forever

sick storm
#

no

#

its all cached

#

even when i rebuild it's like 5 seconds

obtuse coral
#

oh that's awesome then

#

building all my software still kinda mid

#

i wanted to try nix on my chromebook but the thing has 2 cores LMAO

#

not gonna wait 10h for the first install

sick storm
#

💀

obtuse coral
#

or have half the drive space taken up by binaries or leftover build files

sick storm
#

if it's some niche hardware then yeah you might have to actually build most things from source

#

because the nix store has cached prebuilt binaries

#

but only if the hardware matches

obtuse coral
#

oh huh

#

so it.only made me build cause i was in a vm?

sick storm
#

maybe

#

i tried it in a vm first but it didnt take that long

obtuse coral
#

it was prob more like 15 mins

#

but i also limited it to 4 gb of ram

#

because i wanted to simulate my chromebook

sick storm
#

i also had bunch of other problems thanks to the vm mouse/keyboard virtual drivers

#

i'd just do it the actual hardware

#

much easier

obtuse coral
#

i just dont have a lot of pcs tbh

#

got like two with ok hardware and theyre for use at 2 diff places, so I don't wanna make one unusable vivikek

sick storm
#

yea i get that

#

I installed nix on my work laptop but it was over the weekend and i was confident i could get it in working shape before monday lmao

#

(tbf it helps that my work is nix related so even if it broke i would be fine)

obtuse coral
#

the main reason to learn nix would be work, tbh

#

could be like 'pls let me use linux instead of windows it'll take like 10 mins to setup'

sick storm
#

lmaoo

#

im basically getting paid to learn nix atm

#

because we're making a nix based linux distro

#

i think someone said 99% of the employees here use linux so they just asked what I'm gonna install on it and let me get to it

#

which initially was my arch setup

obtuse coral
#

fair

#

is it gonna be a distro with a store and stuff?

#

that sounds cool

sick storm
#

it's super low level, basically running everything in it's own isolated vm for ultra security. vm for networking, vm for graphics, etc

#

it will be an open source platform you can build upon to make os for desktop, phones, drones or any embedded ARM platform

scenic turtle
#

I hath returneth

#

with more knowledge

#

I can now do if(a==1)
{ printf("robic sucks");

#

C seems very easy

sick storm
#

are you gonna close those curly braces

scenic turtle
#

i was going to

#

but i accidentally hit enter

sick storm
#

}

worthy lintel
#

doing no work while waiting for others to merge branches oliviahappydance

deft shadow
#

elm, the religious experience

#

pipelines my beloved but also im going to melt if i have to write more code

#

at least the fira code font looks good

sick storm
#

what the hell is going on

#

elm looks wild

near shuttle
#

LOL wtf

arctic lava
#

how did you get them arrows

#

wtf

sick storm
#

ligatures

#

gonna assume that's |>

fleet anchor
obtuse coral
#

like what the heck is a right facing triangle

#

does it run stuff

worthy lintel
#

yeah itll be what join said

#

basically the font/ide combines symbols into new ones

#

so |> is common for pipe operators

#

some do things like turning !== into a proper =/=

obtuse coral
#

yea

#

i know what piping is in a terminal but like... in an actual programming language ??

worthy lintel
#

its big in functional programming

obtuse coral
#

oh i think i get what's going on

#

but the more i understand

#

the worse it gets

#

truly a bizarre syntax

worthy lintel
#

basically instead of doing something like

var = func1(func2(func3(someApiCall()))))

you do

var = someApiCall()
  |> func3
  |> func2
  |> func1
obtuse coral
#

yee

worthy lintel
#

or something along the lines of that

obtuse coral
#

Stateless

#

new le sserafim single

worthy lintel
#

my work project is riddled with a bastardized version of it

#

instead of using promises we use a lib called fp-ts

#

so any awaited function has to return a Right (correct value) or a Left (error value)

#

and its all chainable using pipes

#

i hate it

obtuse coral
#

ah

#

sounds like the CompletableFuture java lib

#

well... what Mojang was doing with it anyway

#

they had return types like CompletableFuture<Either<ChunkAccess, Error>> lol

worthy lintel
#

yeah the whole task/either thing

#

its awful

obtuse coral
#

and it's funny cause in most places in the code they do like

#

return either.left(chunk)

worthy lintel
#

thankfully i mostly just have to write basic gql resolvers so i can just use promises

obtuse coral
#

and because i didn't realize left meant ACTUAL left, i thought it was like "the only thing left"

worthy lintel
#

well, basic until we have to start fighting the lib cause the dev refuses to fix fundamental flaws

#

thanks type-graphql

obtuse coral
sick storm
worthy lintel
#

yeah collections in particular i really like chaining for

#

laravel collections spoiled me so much that if im doing lots of array work i just pull in lodash and use that

deft shadow
sick storm
#

best font

deft shadow
#

idk why we're learning elm for an introduction to programming course