#Programming & Computers

1 messages · Page 4 of 1

deft shadow
#

but you know

#

at least it isn't c

sick storm
#

wtf

#

if this is your introduction to programming then what's next

deft shadow
#

well it's my second introduction to programming course

#

after learning c in the first one

#

apparently it used to be python but changed to c during last semester?

sick storm
#

c and python would make sense

#

but c and elm is weird

#

it sounds like you just have a professor that really likes elm and wanted to include it in the course lmao

sick storm
deft shadow
#

backward slashes my unbeloved

#

how tf am i supposed to add this shit

#

double backward slash results in two backward slashes

sick storm
#

ascii doom running through ssh on a RISC-V drone flight controller

undone thorn
#

The blades on the drone can even provide active cooling as and when needed!

#

Optimal setup

sick storm
#

tfw you drinking with bunch of programmers and all you talk about is linux distributions and vim vs vscode

undone thorn
#

yikes

sick storm
#

i mean im not complaining LOL that's probably my favourite topic but it was just funny

scenic turtle
#

do
{ nik_bankacc=100;
joine_bankacc--=100;
}
while(nik_bankacc<joine_bankacc);

#

i beg

#

i need ice cream money

sick storm
#

💀

scenic turtle
#

oh wait

#

minor mistake

#

do
{ nik_bankacc++=100;
joine_bankacc--=100;
}
while(nik_bankacc<joine_bankacc);

#

yep

sick storm
#

please dont take my money

scenic turtle
#

:(

#

ok minor modification

#

do
{ if(joine_bankacc==0)
{nik_bankacc++=100;
joine_bankacc--=100;
}
else
{nik_bankacc=nik_bankacc+robic_bankacc;
robic_bankacc--=robic_bankacc;
}
while(nik_bankacc<joine_bankacc);

#

now here

#

what would've happened if I switched the if statement with while

#

wouldn't it be the exact same result

sick storm
#

this formatting is so hard to read

scenic turtle
#

wait

#

do
{
if(joine_bank==0)
{
nik_bank++=100;
joine_bank--=100;
}
else
{
nik_bank=nik_bank+robic_bank;
robic_bank--=robic_bank;
}
while(nik_bank<joine_bank);

sick storm
#

why do you do

{ jlkasjdklaj
}

instead of

{
  lkajdalksjdl
}
scenic turtle
#

watchumean

#

oh

#

my bad

#

ok so if ur acc is 0, it would iterate once, and i get robic's money

#

then it breaks

obtuse coral
#

@sick storm today i tried nix os

#

i also happened to try sway

#

one of those was the biggest mistake of my life

sick storm
#

wayland? I haven't ventured there yet

near shuttle
sick storm
obtuse coral
#

gotta get with the times

sick storm
#

dont you also have nvidia gpu

obtuse coral
#

i bought an amd one to replace it shortly after making the switch to linux

sick storm
#

oh ok because wayland + nvidia is literally unusable

obtuse coral
#

for now™️

#

apparently, system76 is trying to change that

#

hopefulyl cosmic turns out to be an awesome DE

sick storm
#

I've been kinda considering the switch to wayland but.. i would have to replace everything I use with wayland equivalent software and rewrite all my config and bash scripts

#

like im super dependant on x11

obtuse coral
#

rip

#

it turned out that nixos doesn't work well with my android emulator

#

it seems nothing does

#

so im prob gonna reinstall arch in a bit

sick storm
#

im not surprised at all

obtuse coral
#

why not

sick storm
#

due to how libraries and dependencies work in nixos

obtuse coral
#

yeah

#

you have to run this scuffed python script that changes your android image to add an arm translation layer

#

and apparently that just... doesn't exist in the right place on nix

#

and i don't feel like changing it lol

sick storm
#

if it expects some linked lib to exist and isnt built with the nix path it wont find it

obtuse coral
#

also when i installed the android emulator by itself w/o any arm translation layer, it failed to create a mandatory folder in /var/lib, so it just wouldn't start

sick storm
#

does it have a nix package

obtuse coral
#

yeah

#

it was the only broken nix package i installed except for a few gnome extensions

sick storm
#

did you try to manually create that folder

obtuse coral
#

i didn't, but because i don't know what's supposed to go in there

#

i guess i could try to use a vm on arch and see what goes there normally

#

but tbh... i'd rather not

sick storm
#

or run it as root or something

obtuse coral
#

for discord?

#

that is indeed annoying

#

i think it works correctly in chromium though

arctic lava
#

i have a controversional opinion

#

i prefer java syntax to python

obtuse coral
#

why?

worthy lintel
#

i agree

arctic lava
#

first of all... i hate the forced indent/new line style in python

#

like i get it but no

#

thats so ugly

#

give me my curly braces

#

i mean thats really it but god i can't stand non curly brace languages

#

or ones with a proper structure

near shuttle
#

just use some kinda linting packages

#

then it'll all look the same

#

curly braces are just decorations at that point

arctic lava
#

i like being able to do ridiculous stuff like 10 if statements on the same line

#

let me do that

near shuttle
#

u can do that in python too

arctic lava
#

yeah but with curl braces or keywords

near shuttle
#

wdym?

worthy lintel
#

i cant work without my lint on save

#

actually drives me nuts when it doesnt work

obtuse coral
sick storm
#

yeah I can't imagine not using auto formatter

obtuse coral
#

i did it for a while in java cause the vsc one sucked

scenic turtle
deft shadow
#

i am back to hating elm

#

what is this arcane fuckery

worthy lintel
#

scriptkit is pretty cool

#

command palette kinda thing where you can write scripts in ts/js

#

just made a yt-dlp script with different format options

sick storm
#

does it run in your browser or

worthy lintel
#

no its a desktop app

#

well, its electron so technically its a browser

sick storm
#

electron 💀

#

how is this better than just writing a bash script

obtuse coral
#

graphical app make brain chemicals happy

worthy lintel
#

yea i guess you could replicate it with a terminal overlay or whatever linux can do

sick storm
#

like I guess it looks cool or something but really a whole ass browser just for a simple ui? electron is the worst

#

what happened to native apps

worthy lintel
#

hard to make native apps when you're aiming for crossplatform use

#

same reason why react native is so popular

obtuse coral
#

i mean iced exists in Rust now

deft shadow
#

i become late to one lecture and suddenly im being bombarded with things like “tagged unions” and “records”

worthy lintel
#

this is what happens when you deviate from the lords language, typescript

deft shadow
#

who

obtuse coral
#

i wish my school had a typing class

#

would be cool

sick storm
worthy lintel
#

setting up a fresh windows install is pain

undone thorn
#

"No, Microsoft. Please don't track every action on my PC."
does so anyway

sick storm
#

Microsoft moment

worthy lintel
#

want to have a go with a new framework like remix but have no idea what to build with it

deft shadow
#

weekly "elm is suffering" message

#

our exercise for this week is to make a website displaying some kind of number game which would be vaguely easier in javascript but you know

#

elm

sick storm
#

ah yes a website in elm

#

sounds very useful

deft shadow
#

on my way to writing the most inefficient code possible

worthy lintel
#

wtf

deft shadow
#

as per my instructor's instructions i have to make 8 separate buttons for the numbers 2-9 for a Thing so this is how i choose to process that

worthy lintel
#

have one function that takes an arg and make the onclick handler of each button just call that one func with its own arg?

deft shadow
#

these words mean nothing to me

worthy lintel
#
<button onclick="myFunc(1)">button 1</button>
<button onclick="myFunc(2)">button 2</button>
<button onclick="myFunc(3)">button 3</button>

<script>
function myFunc(arg) {
  console.log(arg)
}
</script>
#

html/js but same idea

deft shadow
#

ahhhhhhh

#

i totally know how to pull that off

worthy lintel
sick storm
#

probably not that simple in fucking elm LOL

worthy lintel
#

Elm - delightful language for reliable web applications
with that description i would expect it to be stupid simple wtf

deft shadow
#

yeah elm is supposed to be "easy" and "simple"

worthy lintel
#

holy shit i hate it

#

so much

deft shadow
#

unfortunately for everyone involved i know nothing

worthy lintel
#

actually mindblown that this is a class

#

if you're doing web stuff why in the world would someone think this is worth teaching instead of things like react

deft shadow
#

what's react

sick storm
#

do you agree @deft shadow

worthy lintel
#

the web framework that you'll very likely be using if you get a job in web dev

sick storm
#

imagine if universities actually taught something that will be useful in your future job

#

they dont do that

deft shadow
#

well

#

it was easy before they involved html in it

worthy lintel
#

to think if i went to uni i'd probably have become an angular dev

#

gross

deft shadow
#

a what

worthy lintel
#

angular is an old javascript framework made by google

#

its terrible and facebook's react took over a few years later

sick storm
#

my uni be like "what's javascript?"

worthy lintel
#

as long as you learn something c based youre fine

#

not this weird elm shit

sick storm
#

yea we started with python then moved on to c++

worthy lintel
#

my high school went scratch -> html -> python

#

iirc i couldve skipped first year uni and gone right into whatever second year was i think

deft shadow
#

IT WORKS

worthy lintel
#

java/c# i think it was

deft shadow
#

thank fuck

#

i love scratch

sick storm
#

damn programming in high school

deft shadow
#

i learned c++ before c

worthy lintel
#

the only thing that saved me from being asked to leave school 🙏

sick storm
#

ngl i dont remember anything about c++ anymore but the python course was useful at least

worthy lintel
#

i remember trying flask when i first wanted to make a site

#

and hated it

#

so i learned php for laravel instead

sick storm
#

flask aint too bad but i had the displeasure of working with a massive django codebase with 0 type hints

worthy lintel
#

django is to python what magento is to php

#

kinda

#

and i dont wish that upon anyone

deft shadow
#

fuck this mickey mouse bullshit

#

the one upside elm has is that it babies you by telling you where all your code went wrong instead of some languages where you get seg-faulted and you will never know why

worthy lintel
#

typescript does that

#

just use typescript for everything :))))))))))))

sick storm
#

rust still has the best error messages I've seen

scenic turtle
#

Bro

#

I forgot how to count no. Of digits in a number

#

Lost 3 marks

arctic lava
#

use fingers

scenic turtle
#

Question was like, see if number has odd or even no. Of digits, if odd say odd, if even calculate sum of the least significant half and most significant half. (Left and right) if right big print right heavy, Left, left

arctic lava
#

dumb

scenic turtle
#

:(

arctic lava
#

Why they ask highschool questions in college

scenic turtle
#

Ikr

#

Can't believe I forgot that thi

#

Never pulling an all nighter again

arctic lava
#

Get good sleep before exams, id rather get an extra hour of sleep than study another topic, i mean what are the odds that what you skipped actually shows up (very high)

eager swift
sick storm
worthy lintel
#

death penalty for that

deft shadow
#

bad

weak marsh
#

art

fleet anchor
#

any tips on learning rust? i'm kind of interested in it but idk where to start other than copying past assignments for other languages but using rust instead

arctic lava
#

i'd learn it like any other language tbh

#

learn the syntax, watch videos, do challenges etc

fleet anchor
#

one thing i like about it atm though is the compiler

#

its essentially a 2 in 1 compiler and debugger

sick storm
#

go through the rust book

fleet anchor
#

holy theres a whole book for it

worthy lintel
#

holy shit

arctic lava
#

Wtf

sick storm
#

oh wow

#

💀

worthy lintel
#

how do you not realize a cropped image doesn't shrink in filesize lmao

arctic lava
#

well it should if it saves it as a new image since there are less pixels

#

but on samsung there might be a similar issue since it allows you to revert an image edits

hot pawn
#

even if you delete the original?

hot pawn
#

small world

modest quiver
worthy lintel
#

god prime is annoying to listen to

sick storm
#

highly disagree he's like the only one who can keep my attention

deft shadow
#

you ever just like

#

think you finished your code

#

and then it turns out

#

it doesnt work

#

well it works but there's, like, a bug

undone thorn
#

Yup and then I stay up for 2 hours longwr than i originally planned to fixing it and just adding "one more quick feature"

deft shadow
#

it's funny because i almost rewrote my code but then my mistake was so simple

#

and now i regret undoing all my rewritten code

#

not like it would've worked

fleet anchor
#

me when i try to figure out whats wrong with my java program only to find out that i accidentally put the entire thing in the main method instead of the class itself

sick storm
worthy lintel
#

me waking up at 11:30am: accurate

sick storm
#

yeah this video is very accurate

#

waking up just before the daily

worthy lintel
#

and going back to sleep after it

sick storm
#

LOL ok I've never been that tired

worthy lintel
#

just terrible sleep schedule things

fleet anchor
#

the dream life

arctic lava
#

i might be a one off case then

worthy lintel
#

very tempted

arctic lava
#

I want this

sick storm
#

ok i thought this would suck but when they said it's still mechanical

#

very cool

left aurora
#

can only imagine its gna be easily dirtied

worthy lintel
#

the whole plate comes up off the screen

#

cause its all based on magnets

worthy lintel
#

just saw in the comments that the screen is programmable with js/css which is sick

worthy lintel
#

cli tool pretty cool

fleet anchor
#

😮

undone thorn
#

better still be free for students 🙃

deft shadow
#

folds are fucky

arctic lava
#

got to talk to one of the developers i look up to yesterday

#

was a very enlightening experience

undone thorn
#

What's the secret? 🤭
Genuinely tho - anything you learnt particularly?

arctic lava
#

its 3d physics stuff kinda very niche

#

mostly luck haha

languid silo
#

Hard drives die after time , any good solutions or good long lasting drives for storing data a long time ?

undone thorn
#

magnetic tape? 🤓

undone thorn
arctic lava
#

and 3d math combined

#

its sort of both

undone thorn
#

that sounds so cool! it's honestly one of the fields im hoping to go into after uni I think because i really like the physicsy-mathsy side

worthy lintel
#

not a fan of having to repaste every couple months

sick storm
#

whats goin on

worthy lintel
#

honestly not sure

#

repasted a few months ago and it was fine

#

and in the last couple weeks its been idling at like 75c

#

was in a league game earlier capping out at 96c and throttling down to base clock

sick storm
#

wow

worthy lintel
#

might not have put enough last time so i mightve put too much this time

#

simply opening a browser would make it spike to like 80c but now its not going over 60

arctic lava
#

are u sure the cooler is tight enough on the cpu bc that sounds so weird

#

what about fan speed too

worthy lintel
#

fan speed is fine, I have everything ramping up at 70c which works ok

#

but yeah cooler pressure could’ve been it too, made it tighter this time too

deft shadow
#

i Love recursion

waxen arrow
#

i Love recursion

arctic lava
#

i Love recurs(i Love recursion)on

waxen arrow
#
iLoveRecursion(char *str)
{
    if(strcmp(str, "i Love recursion") == 0)
    {
        printf("i Love recursion\n");
        iLoveRecursion(str);
    }
}
arctic lava
#

doing everything but dealing with this merge request rn

waxen arrow
#

😔

arctic lava
#

code review is a pain

deft shadow
#

for an assignment i have to process election data and it is such a Pain

#

csv's my behated

sick storm
#

cant think of easier format to process than csv

waxen arrow
#

put everything in one line so you dont have to check for \n

deft shadow
#

basically all the results are precinct level so i have to dig through the id's of provinces then cities then barangays first before getting to the results in the precincts and i dont know how to aggregate that data without using a for loop (immutable languages suck)

waxen arrow
#

waht language is this?

#

oh wait

deft shadow
#

elm

waxen arrow
#

i was thinking each person is a struct and youre looking at a specific type in the struct but nvm 💀

#

i dont have any exp with elm so idk

deft shadow
#

fuck structs are not a bad idea

waxen arrow
#

im looking at an example program

deft shadow
#

yes this is the hell i have to deal with for this semester

waxen arrow
#

it already looks unfun

deft shadow
#

it's immutable so you cant like

#

change variables

waxen arrow
#

wait idk if ive done stuff with immutable languages

#

actually no i dont think java or c are immutable

#

thats a pain though

deft shadow
#

yeah so to attack this problem i'd use for loops but nope!

#

no for loops!!

#

🙂

waxen arrow
#

how is the data organized?

#

oh wait csv

#

so its

data, data2, data 3
data4, data5, data6
deft shadow
#

yeah

#

with \ns and all

waxen arrow
#

wait

#

can u use a list thing or

deft shadow
#

yeah i can convert it to a list

waxen arrow
#

you could parse the file as usual and put it into a list kinda like a struct maybe

sick storm
#

can you use map instead of a for loop

deft shadow
#

yeah i can use map

#

you know this assignment is due in saturday midnight which is

#

55 hours away!

sick storm
#

im ngl it would probably be so easy in any other language

waxen arrow
#

probably

#

in c i could prob brute force it by putting everything in a struct then a linked list and using recursion to do a linear search 💀

#

very not ideal but uhh whatever works i guess?

deft shadow
#

not elm

#

preferably a language with for loops

waxen arrow
#

OH i thought no for loops was a constraint given by your prof

#

not an actual language constraint

deft shadow
#

i'll settle for c although the way it handles arrays kinda sucks

deft shadow
#

you have to get Creative

waxen arrow
#

pain

undone thorn
# deft shadow csv's my behated
worthy lintel
#

why is react so fucking stupid

#

why do i have to add a children prop to the component and render that just to get slots to work

#

vue just allows any slot to work and you just put <slot /> if you want to render it

#

fuck facebook

sick storm
arctic lava
#

SO TRUE

#

actually

#

so valid

near shuttle
#

actually pissed

#

actually taking the piss now

#

if i want to use the READ endpoint i have to pay 100 USD a month

#

what a joke

worthy lintel
#

damn that sucks

#

i only use write so im fine but yeah

near shuttle
#

surely this is robbery

#

like we couldnt spare 5K read tweets per month for free tier???

#

or 3K for that matter?

#

absolutely abysmal pricing

sick storm
#

LOOOL

#

AINT NO WAY

#

$100/month "hobbyist" and you still only get 10k requests

#

1 cent per request

near shuttle
#

its so fucking stupid

#

"hobbyist" and is meant for "students" that wanna learn Twitter API

#

yeah right

#

WHICH STUDENT CAN AFFORD 100USD A MONTH TO LEARN UR SHITTY API

worthy lintel
#

i dont even see how to migrate

near shuttle
#

like okay sure they wanna kill off bots, but did this really have to happen to kill off bots? really? instead of 2 mil a month for the current free tier, we couldnt give 5K read?

#

so stupid

#

so so so stupid

sick storm
#

they also didnt mention anything about the filtered stream endpoint

near shuttle
#

EXACTLY which is what we use right joine

#

or at least ik orbot uses it

sick storm
#

yea

near shuttle
#

i presume that is bundled in with the GET requests

#

since it works in a similar way to "reading" tweets

near shuttle
worthy lintel
#

oh right

#

they say theyre phasing out the existing tiers but i cant swap to basic

sick storm
#

the 10k wouldnt even be nearly enough

#

funny how they had 2 million cap for free..

worthy lintel
near shuttle
#

its crazy

#

its actually nuts

worthy lintel
#

if they dont give me a way to migrate but then fuck with my keys and access in 30 days i wont be happy

near shuttle
near shuttle
near shuttle
sick storm
#

yeah its insane

near shuttle
#

like if they wanted to kill bots, sure they did a great job at killing them

#

but they also subsequently killed off all indie developers and aspiring devs because u cannot convince me that a student or hobbyist is willing to pull out a 100 bucks a month for this asinine deal

sick storm
#

unless you're making mad profits with twitter api then there is no way anyone will pay this

near shuttle
#

yep

#

also joine, probably wouldnt upgrade yet

#

just letting u know

worthy lintel
#

lmao

sick storm
#

LOL

#

wow

#

and no i won't be upgrading

#

there is no way I can afford this

#

I'll just have to kill the twitter features from my bots

near shuttle
#

welp, unfortunately might be the same

undone thorn
#

What a way to grow your developer community...

near shuttle
#

mhm! lovely

woeful ridge
#

elon legit just trying as hard as he can to kill twitter isnt he

arctic lava
#

he'll start charging people soon for resetting passwords, calling it "the only way to prevent hacking"

arctic lava
#

$0.01 everytime you want to login

worthy lintel
sick storm
waxen arrow
#

👀

arctic lava
#

Ah yes i saw people doing typo PRs a couple of hours back

#

Lol up at 93 already

sick storm
#

i do like the "author_is_elon"

arctic lava
#

lol

#

they also closed all PRs

sick storm
raven mist
#

damn i wonder if he will skip the 1:13 and go right to 1:12

#

next run

arctic lava
waxen arrow
#

what do you guys think hyunface

worthy lintel
waxen arrow
#

it works though :3

arctic lava
#

didn't do null safety check

waxen arrow
#

yeah 😔

sick storm
undone thorn
#

If it was at least Azure Dev Ops instead 🥲

worthy lintel
#

ran into our first spam/pentesting bot Peepo_Think

sick storm
worthy lintel
#

6 figure salary
i wish

sick storm
#

yeah that shit only happens in the US

worthy lintel
#

tbh i could be on 6 fig if i job hopped every 2 years

#

but at this point i can only work at relaxed startups

#

since a corporation would never let me wake up at 5pm

sick storm
#

LOL

#

probably not

worthy lintel
#

although if my current one fails like the last one did, im probably just gonna become a react codemonkey for a boring agency

#

since im forgoing salary for stock

#

and the last time i did that the stock was worth nothing

sick storm
#

thats very much a gamble

waxen arrow
deft shadow
#

i am Finally learning a good programming language in my programming class (python)

#

granted we have to do static typing but like

#

at least it's not elm

waxen arrow
#

💅

grand tide
#

i love javascript

undone thorn
#

incredible

worthy lintel
#

maybe vercel does support hobby tier on github organizations then, kinda deceptive when setting it up if so

near shuttle
#

iirc when i had to host stuff with vercel i never had to pay

#

so maybe yeah

#

whatever plan they have its certainly better than twitters'

sick storm
worthy lintel
#

actually watched that a couple hours ago and sent it to work chat

#

since we have fuck all contingency if our db gets nuked

sick storm
#

yeah it's a bit of an wake up call lol

#

misobot db also has 0 backups

worthy lintel
#

ease of access is big thing too

#

too easy to just log into the wrong env

sick storm
#

why would you need vscode ssh connection to prod

worthy lintel
#

testing in prod is real

sick storm
#

oh no

worthy lintel
#

its also just hosts setup with individual keys in my ssh config

#

which vsc reads

#

easier than remembering stuff over cli

sick storm
#

.ssh/config

arctic lava
worthy lintel
#

i never want to work on a project with split repos ever again

#

monorepo makes it so so so much easier to work on a complete feature

arctic lava
#

Well we have so much shit inside the monorepo that everyone's fighting to get thier own

worthy lintel
#

im so good at design

raven mist
sick storm
#

your fishies are not backed up

raven mist
#

how big is the db

sick storm
#

like 3gb

raven mist
#

not even weekly or monthly?

#

sheeeesh

sick storm
#

tens of millions of rows

raven mist
#

i mean i guess its not needed

sick storm
#

its not needed as long as nothing happens lol

raven mist
#

XD

#

i meant more in a production sense

#

not like you have customers who depend on the db

sick storm
#

i mean

raven mist
#

MY FISHIES

sick storm
#

the amount of angry dms i would get

raven mist
#

yes

#

from me

#

how long would a backup take?

sick storm
#

I have to add some backup thing but im procrastinating

raven mist
#

you using postgres?

sick storm
#

mariaDB

raven mist
#

ah

sick storm
#

so mysql basically

raven mist
#

can you do a backup on mysql while its still in use?

sick storm
#

yea

raven mist
#

been so long since ive used dbs

sick storm
#

I could just make a db dump it would take maybe few minutes

raven mist
#

i remember i had daily backups on postgres

#

yeah

#

thats what i did

sick storm
#

i already have daily backups for my personal stuff

raven mist
#

i just remember using some pg_backup script for daily backups

#

but would take up some space depending on how long you wanna store em

#

3gb per backup

sick storm
#

daily backup 1 week retention that's like 20gb

#

not too bad

raven mist
#

yeah 1 week retention all right

sick storm
#

backblaze B2 cloud storage $0.005 GB/Month

raven mist
#

thats like

#

0.1$ a month

sick storm
#

my 70GB backup is costing me $1 every 4 months lol

raven mist
sick storm
#

basically free

raven mist
#

send link

#

gotta adhere to the 3-2-1 rule :^)

sick storm
raven mist
#

thats pretty pog

sick storm
#

very

#

so there is no duplication of data, only the changes are uploaded

#

and i can have super long retention

raven mist
#

damn

#

i should probably get on that

raven mist
# sick storm very

kinda off topic but do you know anything about the performance of AMD cards

#

6950xt on sale for €680 rn

#

or 7749 SEK

sick storm
#

i have 5700XT myself

#

the drivers keep crashing

raven mist
#

uh oh

#

you run linux ?

sick storm
#

it only crashes on windows btw

#

linux perfect

#

could be a bad unit or something idfk

#

either way I wouldn't buy Nvidia

raven mist
#

Yeah

#

So overpriced

#

I might get the 6950XT

#

unless a 7900 XT goes on sale

sick storm
#

680€ is alot of money for gpu tbh

raven mist
#

yeah true but im willing to spend that much

sick storm
#

just gotta not accidentally drop table;

#

:q

#

I can't live without vim shortcuts anymore

#

yes it will

#

if you use it daily for everything then it will be faster

#

anything serious i write in vscode tho i have vim plugin

#

vim good for config files/random text

#

yea nvim perfect for that

#

and get intellij vim plugin

#

most useful shortcuts for me are like cw or ci(

#

and dd

raven mist
#

nano gang

sick storm
#

i throw up when i have to use nano

#

its just so clunky

hot pawn
#

nano is cat with extra steps

#

real script kiddies use bash

sick storm
#

what if i write my bash in vim

#

font issue

#

you probably need some icon font/nerd patched

sick storm
#

well

#

gg

#

something something fontconfig

worthy lintel
#

vercel dropping some nice stuff this week

#

but v expensive 😔

sick storm
worthy lintel
#

i guess im a right winger

deft shadow
#

thanks pylance very cool

worthy lintel
#

chatgpt integration works well, boss

deft shadow
#

amazing

deft shadow
#

im gonna kill whoever gave my professor the idea to enforce static typing in our python code

deft shadow
waxen arrow
#

are you doing something like this?

for i in range(x, y):
  function(i)
  function(arr[i])
deft shadow
#

oh i dont even use i

waxen arrow
#

bruh

deft shadow
#

which i assume is... bad practice?

waxen arrow
#

why initialize it then

deft shadow
#

anyway i replaced with a while loop so we're all good

waxen arrow
#

😭

deft shadow
#

so all i'm saying is fuck static typing and all that it entails

waxen arrow
#

idk i find declaring the variable type much better

#

thats just me tho

deft shadow
#

yeah i Think It's a Good Idea but also i'm dying here

waxen arrow
#

what does the prof want from you oliviathinking

deft shadow
#

it also sucks when i search up the error and nothing appears so i will just Have To Guess

deft shadow
waxen arrow
#

i plug error messages into chatgpt hyunface

#

and give the code on the line that has the problem

deft shadow
#

he has just posted links to videos online

waxen arrow
#

😔

deft shadow
#

thanks for saving my life

sick storm
deft shadow
#

but like

#

idk the 52 errors overwhelmed me

sick storm
#

lmao yeah if you didn't have the linter on from the beginning then it's going to suck

#

i had 1000+ errors to fix in miso bot back when i turned on static typing

worthy lintel
#

converting a js codebase to ts is hell

deft shadow
#

python knowers

#

do you know any other conditionals that aren't if or try or match

undone thorn
deft shadow
#

which is kind of hard when you're trying to do a finite state machine

#

my professor claims that there's other conditional semantics whatever but i can't find anything

undone thorn
#

does that restriction of 3 apply to elif?

#

or are they considered part of if?

deft shadow
#

so elif might count

#

as a part of an if statement

#

do not ask me why this restriction is here this seems Very Bad

undone thorn
#

that's how i'd interpret it as an "if statement" being the whole block (with elifs and else) initiated by one if ...

deft shadow
#

yeah

#

god i fucking hate this course holy hell like

worthy lintel
#

abuse ternary statements

#

they aren't if statements :^)

deft shadow
worthy lintel
#

wtf

waxen arrow
#

😔

#

a while maybe?

#

wait

#

switch statements

#

that completely went over my head

#

and logic operators if it applies

#

like && ||

worthy lintel
#

the real question is why is a school course enforcing dumb rules that no devteam would enforce

waxen arrow
#

Maybe it’s just that prof and they’re evil

deft shadow
waxen arrow
#

bruh

deft shadow
#

idk how tf that would help

#

and logic operators are allowed too yes

#

there's a stupid roundabout way to do this

waxen arrow
#

how simple is the assignment

#

requirement wise

#

not restriction-wise

#

oh wait can you use the 'and' and 'or' keywords?

#

maybe boolean stuff

deft shadow
deft shadow
waxen arrow
#

ah

deft shadow
#

but yeah we can use and and or

#

wait no i see it

#

groans

#

fuck this

waxen arrow
#

uhh you could do

string = '0x10001234'
is_hex = '0x' and (string[0] + string[1])
print('' + is_hex)
#

maybe

#

just something i thought of on the spot

deft shadow
#

shouldnt that be equal

#

yeah i considered just fucking around with booleans

waxen arrow
#

yeah you could trty that

#

and do cases for every single type

#

basically a switch statement without the switch keyword

#

💀

deft shadow
#

i think i have to parse it character by character because thats what the diagram said

waxen arrow
#

bruh

deft shadow
#

but also i could just. not do that

#

if this works i need to thank you again for saving my life

deft shadow
#

thanks m8

waxen arrow
#

ok nice

#

👌

deft shadow
#

sucks that i have to cheese it but you know

waxen arrow
#

shitty requirements mean u get to turn in shitty code :3

deft shadow
#

😎

sick storm
#

wtf kind of professor is this

#

sounds ridiculous

deft shadow
waxen arrow
#

😔

sick storm
#

could you do everything with try except

deft shadow
#

try isnt allowed

#

match isnt allowed either

sick storm
#

💀

waxen arrow
#

try, if, switch, match, ternary operators, uhh

#

yeah

#

logic operators are tho 💀

deft shadow
#

ternary operators couldve been possible but they use if too

waxen arrow
#

theres some that dont

#

i think

#

but thats java

deft shadow
#

yeah but i have to use python

waxen arrow
#

i think u can do it in python?

sick storm
#

no

waxen arrow
#

ah feelsyeojin

deft shadow
#

i could've went to a better university but tuition

deft shadow
#

no nvm this is effin impossible

#

i guess three if statements are the only ones i need?

#

but also i sincerely think that's just a random number my prof chose and there's no meaning behind it

lean river
#

서울시x코딩온 김유연이 함께합니다!
유연이에게 하고싶은 말을 댓글로 달아주세요!

SeSAC 강동 캠퍼스, 영등포 캠퍼스 모집중!!

  1. 모든 직무에서 활용 가능한 웹 퍼블리싱 과정 (강동캠퍼스)
    https://sesac.seoul.kr/course/active/detail.do?courseActiveSeq=1552&srchCategoryTypeCd=&courseMasterSeq=303&currentMenuId=900002015

모집 일정: 5월 1일 ~ 5월 23일
(※ 청년취업사관학교 수강신청은 5월 11일부터 가능)
교육 기간: 6월 12일 ~ 10월 30일
교육비: 전액 무료!

  1. 비전공자, 입문자...
▶ Play video
deft shadow
#

whats this

deft shadow
#

apparently the answer is dictionaries

sick storm
#

what

worthy lintel
#

idk what the task is but replacing many ifs and switch etc with a map is usually a good idea

worthy lintel
#

just a diff name for dictionary

#

different languages call them different things

deft shadow
#

cool

#

that's cool

#

i swear i'm on the verge of a breakdown

#

oh fuck i thought you meant the function not the whatever map youre talking about

#

im tempted to just. Not Do It

#

given that i've done 3/4 exercises for this assignment anyway

#

so that just gives me 75/100 which is respectable

sick storm
#

I was alacritty user for years but I moved to kitty term now for ligature support

sick storm
#

yeah ok compared to kde terminal it's pretty good

#

lol

worthy lintel
#

man i need to start doing personal projects way more

#

i can feel myself getting better at tailwind so quickly

worthy lintel
sick storm
#

tailwind is great

worthy lintel
#

i struggled massively with responsive breakpoints

#

since it works the opposite to bootstrap

#

which is what i started with

sick storm
#

it's a bit weird since it's mobile first and you add exceptions to larger viewpoints

worthy lintel
#

yeah that caught me off guard

#

since bootstrap is desktop first and you add exceptions for mobile

sick storm
#

naturally you would think the largest screen is the default

worthy lintel
waxen arrow
#

Woah

left aurora
#

👀

sick storm
#

remember when twitter was supposed to kill the api over a week ago

#

all my shit still works

#

and I dont know why

waxen arrow
#

did they silently revert/go back on the changes?

sick storm
#

i dont think so because a lot of people have lost access afaik

waxen arrow
#

thats odd

sick storm
deft shadow
#

wtf are awaitables

worthy lintel
#

what language

#

await is generally used in the context of async functions

#

in js a Promise would be awaitable

deft shadow
worthy lintel
#

yeah so async await stuff is for handling long-running tasks like fetching data

#

idk how python runs but javascript is asynchronous/non-blocking, so awaiting something can turn your code flow into synchronous/blocking

sick storm
#

python async works very similar to js

raven mist
deft shadow
#

had too much fun

sick storm
#

very readable

deft shadow
#

my naming conventions are great

sick storm
#

yep

sick storm
#

just use kde then

#

why even bother with gnome

undone thorn
#

tbf to google, they probably also used it a lot at previous ios too lol

undone thorn
#

very interesting problem (depending who you ask) with unicode

waxen arrow
#

finally doing it

sick storm
#

I don't like this influx of chatgpt programmers

waxen arrow
#

😬

#

its good for small snippets/basics but actual code? nah

sick storm
#

script kiddies getting chatgpt to write the whole thing for them then it doesn't work and they come asking for help

#

while not knowing wtf their code even does

waxen arrow
#

idk how to say it but it just feels off

#

yeah that, doing but not knowing

#

well that goes for most things

sick storm
#

it's so weird

waxen arrow
#

ah i think this analogy works, its like watching/reading a few articles on a skill and then claiming you're an expert when all you've done is watch/read theory and no practice

sick storm
#

well in this case the theory would be the docs and these people never look at the docs

waxen arrow
#

just reading docs isnt enough i think, you kind of need actual coding using the docs to get better

undone thorn
worthy lintel
#

gpt’s been handy for writing sql queries for me since I’ve been babied by orm’s for so long but other than that it’s not really useful

waxen arrow
#

sql is nice

#

i used it for my databases hw and got A's 💀

native berry
worthy lintel
#

speaking of chatgpt

native berry
#

starting my third attempt at learning rust please bunny of hard work (heejin) give me strength

waxen arrow
#

rust is fun, im only on the early parts of the guide rn but its been fun so far

native berry
#

want to learn together?

#

but you are right the rust book is really good and in terms of language design and documentation rust is one of the best languages I have seen so far

waxen arrow
#

i can try

sick storm
native berry
raven mist
raven mist
#

but sometimes it says something but its totally wrong

#

💀

sick storm
#

I've tried it a few times but it just feels wrong

#

I'd rather google things

#

I trust a random reddit comment more than ai generated response

native berry
# sick storm I trust a random reddit comment more than ai generated response

same you often read about "ai" replacing developers but rarely you read "ai" replacing mathematicians or engineering disciplines even though you often need similar thinking and both being problem solving oriented. the only reason I can think of is that most people see code just as text and thats something chatgpt isnt too bad with

native berry
#

will try to learn a bit of rust in loonatic lounge not sure whether such things are welcome here but I guess I will be warned if not
easier to ask for forgiveness rather than permission

native berry
#

doing the same thing today again

native berry
#

seems like a good application slowly getting used to it

#

I should take another closer look at the vim keybindings I only know the absolute standard stuff. like moving around and stuff like 3 d w

#

had a vim cheatsheet as background when I first learned it

#

forgot like 90%

#

I currently use nvim with tmux as my main "ide" my emacs config is completely broken and I dont want to fix it and I dont have any projects anyway and should focus on math 😦

#

yes but it depends on the application ofc. I more or less only use it to the extend as having a tiling window manager for the terminal (a bit more than that but thats like 80% of my use cases). if you dont have a tiling window manager you will probably get more value out of trying one out instead of tmux but thats just my own opinion and might not reflect your own experience

#

i like them but getting used to them can be extremely annoying

#

i dont use kde

#

the main aim of a tiling window manager is more or less to not having to use the mouse anymore and to be achieve to a more intuitive/faster workflow through that

#

i dont think however there is a noticeable difference in productivity at the end of the day it comes down to what you prefer/feel more comfortable with

sick storm
# native berry I should take another closer look at the vim keybindings I only know the absolut...

Neovim FROM SCRATCH!!! https://www.youtube.com/watch?v=w7i4amO_zaE

Twitch

Everything is built live on twitch
Twitch : https://bit.ly/3xhFO3E
Discord: discord.gg/ThePrimeagen

Editor

All my videos are edited by Flip. Give him a follow! https://twitter.com/flipmediaprod He is also open to do more editing, so slide deeeeeeeeep into his ...

▶ Play video
#

this has all the best keybinds

#

explained

native berry
#

thank you yvesheart

sick storm
#

I use cw all the time

#

for change word

native berry
#

finding good emojis is hard

sick storm
#

it is

#

tiling window managers are awesome

#

trying to use floating windows is pain now its so messy

native berry
#

trying to learn vim + tmux + tiling window manager + uni stuff might be a bit much xD

sick storm
#

maybe

#

i did that

#

but failed all my classes 🤔

#

maybe there is a connection

#

I never use tmux tho

#

just open a new window

#

end up with same result

deft shadow
#

im going to lose my mind

#

fuckin asynchronous functions and flet

native berry
deft shadow
#

it can make like webpages or whatever idfk

native berry
#

i especially like the no frontend experience required part but I am also always a bit doubtful when I read smth like that. i start running at anything frontend

#

joinemm seems to be good at frontend their website looks good

#

(i didnt pry or anything its just right in the profile)

worthy lintel
#

tailwind very good

sick storm
#

yeah tailwind is awesome

#

I tried to edit some styling on one of my old websites that uses just traditional css files and man was the experience awful after being used to tailwind

#

coming up with class names that don't clash, making sure everything is imported into the right place, remembering css variable names..

#

the developer experience of using tailwind with autocomplete is unmatched

worthy lintel
#

i managed to complete a whole feature without getting any help from our dedicated frontend guy this week

#

actually so easy to get up and running with tailwind

#

kinda pissed i put off properly learning it for so long

native berry
#

good job

sick storm
#

rust

#

zig

#

oh nice

#

😎

#

but that's how you learn

#

fixing things

#

yeah that probably works better than arch ever would after years of configuration

native berry
#

whats your first? java with uni i would guess

#

sry will delete

#

i wouldnt really compare a dsl like R to a general purpose lang like java that being said I never used R and it can very well be horrible

worthy lintel
#

converting a react/next app over to svelte

#

and its so weird

native berry
#

you got a nice domain kairu

worthy lintel
#

was surprised it wasnt taken

native berry
#

looking at your stuff and you are an impressive orbit

worthy lintel
#

no im a brainlet

native berry
#

sorry that is slang i dont know

#

ok no definitely not would love to be on your level

#

my github nonexistent

#

(or accounts lost)

#

then we are soon to be impressive orbits

#

we just have to give our best

#

but this orbit will now procrastinate learning math with learning rust

#

come learn rust with me

#

yes

#

then I will do ownership too

sick storm
#

why private repos

native berry
#

likely because of uni guidelines they dont like to see any stuff connected to them online

sick storm
#

oh yeah but the configs

native berry
#

looking good

sick storm
#

rose pine is nice I used that for some time

worthy lintel
#

any gamers

sick storm
#

lol neofetch on windows

#

never seen that

worthy lintel
#

there's a port of it in scoop

#

the wsl one isnt as interesting

sick storm
#

@ivory ginkgo can i get your vim config i like the statusline and the path at the top

worthy lintel
#

not using app router ewww

sick storm
#

idk what that means

worthy lintel
#

next 13.4

sick storm
#

5 months ago

worthy lintel
#

yeah was still in beta then

#

Was full release last month

#

Been fine for me but I can’t use turbopack yet since clerk uses some crypto stuff

#

And webpack is so fucking painfully slow it’s actually putting me off working on my stuff

sick storm
#

yeah i can tell from the file structure

sick storm
#

@ivory ginkgo did you run into this issue with barbeque i cant figure it out

#

yea

#

yeah idk it's weird

#

oops

#

doesnt make a difference tho

#

yeah no that just breaks everything lmao

#

this doesnt make any sense

#

oh well i can live without this

native berry
#

found the video and trying to follow along but dude is fast af

#

yeah its a good source

native berry
#

sounds like you have a great dad

#

thats very nice

native berry
#

when I use telescope the transparency gets lost did someone manage to fix that? I tried vim.api.nvim_set_hl(0, "TelescopeNormal", {bg = "none"}) but that didnt work

sick storm
#

could it just be that your transparency is >50% and it gets multiplied by the two windows into being opaque

#

i have no idea if it actually works like that

native berry
#

yeah but its a good train of thought

sick storm
#

i dont use transparency since I found it too distracting

native berry
#

thanks leroy now i have stolen my vim config together

lean river
#

I saw people posting neofetch

#

Here's mine

#

Also iftop

sick storm
#

bro using cmd not even the new windows terminal

lean river
#

okay gimme a break

#

There u go

#

(by the way this is like, old old vim I think, last time I used thsi is for my university taking CS)

worthy lintel
#

cmd is part of the new windows terminal

#

you can change which it defaults to, mine just happens to be wsl

lean river
#

This opens the command prompt

#

This however will launch the Windows Terminal

worthy lintel
#

lol they really made it w11 only

lean river
#

Also I don't remember why I had this

#

I didn't learn Python

#

What people do with git bash again?

#

Just downloading stuff off Github, that's it?

worthy lintel
#

git bash just opens a bash instance

shell garnetBOT
#

git: 'bash' is not a git command. See 'git --help'.

worthy lintel
#

since windows doesnt have bash natively

lean river
#

this is so long ago

sick storm
#

windows terminal isnt very useful tbh

worthy lintel
#

windows terminal the app is great

#

cmd and powershell are not

#

i tried swapping to hyper but its terrible

lean river
#

I dunno

#

I haven't explored the limits of wt but I know you can like

#

Start, and monitor your Azure server

worthy lintel
#

its just an app for different cli instances

lean river
#

I know

#

but it being tabbed I think it's kinda pog

worthy lintel
#

yeah its handy

lean river
#

One tab you're iftop-ing your VMs, one tab you're doing some funky business with your FreeBSD server

worthy lintel
#

i just run backend in one tab frontend in another

lean river
#

And one tab it's an SSH to your Minecraft server you set up in Azure

sick storm
#

you ever just

worthy lintel
sick storm
#

lol

sick storm
#

yea man avocado prompt what could be better

#

it turns into cherries when theres an error

native berry
#

i would have time starting from 18:00 for a study session if you are interested also need to do some stuff

sick storm
native berry
raven mist
#

oh ive done that before

#

gl hasalute

native berry
#

is that also required for university or self interest?

native berry
#

setting up everything after a reinstall is a pain in the ass