#Programming & Computers
1 messages · Page 2 of 1
hm interesting the thing doesnt say that it needs to be a sorted list at the end
but can be even odd even too
ig one way is to build two lists recursively and then combine both of them
wha
because we dont know how many odds and evens there are at the beginning right?
wdym by same order as input 
idk how to explain this simpler LOL
first element is 1 in the input so first element of output is odd
and so on
omg okay
i get it
LMAO
i had to re-read again jesus
aight makes sense now 
the wording is so odd
one line solution
['even' if i % 2 else 'odd' for i in n]
what in the everloving fuck is that disgusting syntax
def recursion(arr, l = []):
if len(arr) == 0: return
num = arr.pop(0)
l.append("even" if num % 2 == 0 else "odd")
recursion(arr, l)
return l
print(recursion([4, 5, 10, 29, 30, 11, 9]))
def odd_even(arr):
l = []
for i in arr:
l.append("even" if i % 2 == 0 else "odd")
return l
this going by the rules that ur question is asking for a recursive implementation
semicolon in python wtf
ah, the true pythonic way 
OOPS
i mistyped hAHAHA
a little bit of that typescript habit creeping through
added a less pythonic version of joine's answer @vast aurora
joine's answer works but needs u to know list comprehension for python
which you should definitely learn its awesome
yep, simplifies things by a lot
i’m gonna cry just thinking abt this lab you guys are saviors
but my first answer i gave should be the most accurate to your question
since ur question asks for recursion
oddly enough i can understand what the code does but i cannot for the life of me read what it’s asking for and being able to interpret it
yeah this is just question being really bad
yeah i really dislike this course and it’s a mandatory one so i’m just toughing it out
it doesn’t even give an example which it does for every other step
thank you both for your help seriously 💗
just wait till you see nested list comprehension
[i*y for f in h for i in f]
disgusting
me

this is really cool btw

I made such a crap bot for my nlp project
but i only kinda worked for less thsn 10 hours on it
You should consider using a splay tree
the bot part of it is pretty trivial, just read messages from twitch chat and moderate.
There's a freaking ML model on the server that craps out shitty predictions, i didn't bother to optimize
Twitch
Everything is built live on twitch
Twitch : https://bit.ly/3xhFO3E
Discord: discord.gg/ThePrimeagen
Spotify DevHour: https://open.spotify.com/show/4MLaDrQcQ5mi3rsnvWkwPt
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...
(spoiler: its not)
it sure is
If you play games on your laptop (probably not) then Maybe not 
Im still not used to be being able to use CTRL + ALT on the left side instead of the right ALT on linux
i use an android emulator, and the ones i saw for linux apparently aren't that good
Yes you do, you play games with my heart 
maybe i'll look into it later tho, like when i'm on break from school
I just use linux on my work laptop
Or well, thats how i got it
Is the microsoft suite available on linux?
Just Thought if u Maybe used that
I mean there are other Tools but still
google suite does same shit but better and its free
why can't you
that doesn't sound like anything to do with linux
On every linux distro ive used ive never been able to do that, different pcs as well
do i submit my unfinished code and bank my grade on my last test?
theres 5 HW thats 20% total while 3 exams are the other 80%
How much time you got?
uhh its 1 day late so i have -5 penalty
2 days late is -15
i dont wanna go past more than a day
Ah geez
You're safe if exams have such high weight
But
what criteria do you get graded on if your progam don't run?
im confident i can get at least an 80 on exam 3
uhh
i think if it compiles and has some logic you auto get a 40
or a 50
the gradings been really inconsistent tbh
but if it compiles and works somewhat you get a 50ish
Ah, so you get atleast that?
ye but it doesnt compile 🥲

BST
i can get away with partial credit tbh
ill just tell them in comments that it doesnt compile and im going for partial
If you can get partial, you might wanna submit it. Taking another late day would only help if you can get it to work and expect a really good score such that the -20 doesn't tank your score to go lower than the partial credit
Like my roomate had a really poor performing model, which would fetch him a 60. He took like late days, got a 94. But the late day penalties added up and he got a 40 on that assignment
So it might do more harm than good
I really like auto graders
//Command to compile on OMEGA: "This code doesn't actually compile I wanted to get partial credit for this lab if possible.
💀
this is my comment
Are you sure they give partial credit😭
theyre fair
Do they give you a grading rubric along with the assignments?
We usually get one, super helpful
Kruskal i see
and hes monotone
and according to my classmate who took this in a dif uni (my uni didnt accept his uni's version of the class) this prof teaches outdated stuff sometimes
I have this class this sem where two profs rotate. One of them is literally the best prof, the other speaks so slowly even at 2x and is always dead inside
Ah
idk this class is just
ugh
if i pass this class
im going to go to one of my friends sections whos taking it next semester and sit in on their class
My uni don't even allow us to audit courses
audit? nah im just gonna go to the levcture hall like a normal student
but i wont actually be enrolled
ik its not allowed but
🤷
ah
if you can write out a super detailed comment of what you want a function to do, i can run it through github copilot 
do we talk tech support here too? is a big black dot on the screen als just dead pixels? the circle was suspiciously close to perfection
You can test it with a dead pixel tester
guys
chatGPT is here
snippets:
Sorry for the spam, here's another one, then i peace out
yeah i tested it it was ok
sorting algorithms are a pain
are they?
please write a proof that shows quick sort is on average O(N log N)
and how if you want to get the K-th largest number in an unsorted array, you can achieve so by modifying the ideas of quick sort into what's called quick select for a runtime of O(N)
hint: quicksort has to traverse both sides of the recursion of the pivot, whereas if you only want to find the K-th largest number, you can leave one side of the pivot completely unsorted
bonus extra credit: assuming instead of a bounded array of known length, you have an unbounded infinite stream of integers, at any point you may be asked what is the K-th largest number you've seen so far. How do you efficiently compute this using O(K) memory and O(N) time?
Hint: What if you do a batched version of quick select? Read in the stream until you have 2K elements in your buffer, then use quick select to eliminate the bottom K elements, repeat infinitely. Why is this O(N) runtime?
2nd bonus extra credit: Compare and contrast the runtime of batched quick select with a simple min heap solution keeping the Top K elements in a min heap. While the min heap has higher average runtime O(N log N) vs O(N) of that of batched quick select, explain why for practical purposes, the amortized cost of the 2 approaches are essentially equal.
final bonus extra credit: which current kpop group mentions a popular well-known shortest path algorithm involving path augmentation and edge relaxation?
im going to cry
instead of just making a lecture video like a normal prof, my prof decided to just give us a geeksforgeeks link, and told us our assignment was that we make an explainer video explaining 5 different kinds of sorting algorithms
💀
so that's my life story
and for the life of me i do not get what "iterated merge sort" is and how it's different to normal merge sort
as it stands merge sort is just
how tf does that work
OH
i read over it just now
ok so think of this
a deck of cards
unshuffled
merge sort is basically
uhh
splitting that deck of cards in half
until theres only sets of single cards (in this case 52)
then you look at each adjacent set of single cards (ie the 1st and 2nd cards)
find which ones smaller then merge those in order (first card is a 4 and 2nd card is a 2 so you put 2 first then 4)
rinse and repeat with each set and eventually you merge all the cards back into the deck
kinda sorta?
idk im still new to algo so idk much 😔
yeee linux is nice to use
im still new to it tho
but the terminal is 😩
i can do anything from terminal its great
ye
youll get the hang of it
i mean i think you can do the same on windows with pwoershell/cmd
but its not the same
ah yeah
i keep mine simple though just the system default dark theme
and the custom wallpaper ofc
😩
my code is trash tho 💀
ah this is jsut baseline code form the prof
the yellow parts what i edited
im trying to multithread but i cant get the logic down 😔
yeah
ah anyone know what this error is
i think so
OKAYYYYY
LETS GOOOO
i actually have to see if the logic works tho
oh wait i forgot to sync the arraylist where im putting my results
its gonna be corrupt 💀
we desktop posting?
yeah this aint working
2hr cs exam tmr cant wait to write in textboxes and have no compiler yaho,,,,
godspeed
you can see my descent into madness
Yeah it was a java GUI project where we had to make an ice cream store
That particular part of it we had to implement file saving/loading
is anyone going to participate in advent of code
if so join my leaderboard :D 465956-403441ec
I am a dumb code monkey so not me
i mean its not that difficult they're just leetcode questions mostly
I opened up an easy problem on that website and got stuck 💀
it starts with literally elementary school math question so you shouldnt have issues lol
I guess it's worth a try but exam week 😔
ok maybe prioritize exams over this lmao
this is scary
amazing

can you give me the results
i can win a 3090 ti at my company

I already have a 3090 ti. Big flex
It’s unfortunate I’m using it to play persona 5 a massive overkill
i need a 4090 to chat on discord
I use a toaster oven
Originally bought it for cp2077 which was worth but now there’s nothing worth playing that actually requires top of the line graphics card
Find a sugar daddy
Thinkpad?
if I had to pick one laptop brand it would be Lenovo easy
but ofc they have their bad products too
I havent tried many
I cant say 
But id rather bring my keyboard than have to use the $20 shitty keyboard i got there

Maybe if it was mechanical
ok yeah if i had to use one of those default office keyboards...
Yeah LMAO
i often don't even plug in a mouse
office keyboard and mouse so shit I use the laptop kb and trackpad
Oh Yeah
yeah
True i would too
it's more comfortable somehow
and I have keyboard shortcuts for almost everything anyway

I use Rectange to map switching/stacking apps to my mouse buttons,
Really sucks to work with a trackpad or with mouse that don't have programmable buttons
you mean like alt tab
That and snapping windows, mimizing or moving to other dekstops
ah yeah i have all of those on the keyboard
Man
just finshed an exam
i am drained. I will miss an A by 0.4 marks
😭
why does a web dev exam have mcqs where you need to select code outputs
I have a 92.528, and 93 is A 😭
Cs exam finished i think i fucked up the fibonnaci seq but wtv
I probably passed
thats so fucked up lol
it worked for part2 as well 
maybe kinda overkill but I made whole ass CI/CD pipelines and tests for this advent of code lmao
what's advent of code
thanku!
thanks, 3090 ti here i come


just do it yourself its fun
maybe i should do it at work 
ill give you half of the 3090 ti if i win it

im too lazy tho, i havent done the first 2
i built a whole new pc, and then when i plugged it in it couldnt use the internet because the wifi here requires you to login to the internet in a browser, and I couldn't login to windows because because the motherboard changed, tpm stuff i guess
tfw you only have Ethernet but it's not good enough
how can ethernet be worse
well
if i had a wifi card, i could set up a hotspot on my phone, and then connect to that to login to windows
rn i just have ethernet but since that routes to my apartments internet and they require you to register in a browser to use internet, I'm literally locked out of windows
yeah, it's definitely dumb. I don't know why they do it
thats definitely weird 
what specs 
i5 12600KF and rtx 2060 s are the ones u probably care about

not too bad
not the newest, but still really good
especially the 12600k
but you can still make a local account
or well
if you reinstalled windows

well, i went to reinstall Windows already
ah
im not sure about win 11
on win 10 you can 
did you try pressing create an acc with no internet?

seems stupid to need internet for the setup
win 11 installer only allows you to make local account if you dont have internet lol
tfw you keep switching between rust and python
the thing is i did that, but it seems like the win11 installer for home version specifically required internet
however there's one last solution... i had someone make me an ubuntu usb today
maybe

i could login to my apartments public wifi using ubuntu, and then switch back to the Windows 11 installer though
i could switch to linux completely, but idk how the file management works
windows is dummy easy in comparison
i have like... extra harddrives plugged into my pc and i have no idea how I'd access it in Linux
otherwise you can mount them
but can u mount an existing partitioned drive?
y'know this is probably better questions for google
think so
ooo
dont think you can write to NTFS drives on linux
no
its just what windows uses
i think most linux distros use ext4
i just remember Arch lets you pick from a few in the installer
yeah
think ubuntu does too
just that ext4 is default
as for the mounting, i dont think it should be an issue
even if its already partitioned
youre basically just assigning a folder or directory to your drive
if i understand it correctly 
but if i were you, i would just stick with windows
i use windows as well
i just use linux at work
because thats what the laptop came with

also for vps
maybe I'll drop a few dollars into backblaze, wipe my drives, and switch to arch someday
now we installing windows
i clicked on "try ubuntu" and my screen turned a sickly shade of green
uh oh
i wonder if this is a linux Nvidia gpu support moment
on second thought, maybe trying linux can wait until next year
when i buy an amd GPU
yes
it's funny cause it was just like
you could still read the screen
it was just green
Greenscale
somehow windows also just made me a local account
you're always on that Haseul propaganda, and you're right

now it's time to buy a wifi card so this can never happen to me again

it's funny cause the Ubuntu installer pulls up a browser when you need to take action to login to wifi
but the windows one is just like
action needed!!!! but pressing the button doesn't do anything cause it's ethernet
honest proof that windows is 🅱️ad
Linux is like you will have issues no matter what
but since they don't discriminate, it's better
linux: you have nvidia gpu? lmao glhf
or idk really how well supported nvidia gpus are now
maybe mostly for ml
it's probably ok
but you'll be a more effective Gaymer on windows with nvidya i think
unless your cpu is just trash
if your cpu is really bad, linux might be better just cause it's more lightweight unless you run kde or some shit
cant gacha on genshin in linux
you might be able to with Genymotion
usually when you have a really shitty cpu, you have a really shitty gpu paired with it
hey though
i feel like lower end older stuff might have better support than newest and best
so it might even out on the gpu side anyway
i dunno
Windows: You need to activate windows in order to change your wallpaper
me:

shenanigan'd
:O
Deadass tho, i'm kinda surprised that worked
like you think... they'd find that in testing
or maybe the engineer designing it just didn't give a fuck maybe
you can read ntfs drives on linux but it's not recommended to write to them as the file permissions work differently
and yeah nvidia + linux you might run into issues with the drivers especially if you are using the open source variant
lmfao
actually it was like 1 year ago me
i mean it should work fine with the proprietary nvidia drivers
no
i think i'll think about it more after i have this pc in its case, it's still sprawled out over my desk
and this does have room for more drives to be plugged in, seems like a fun idea
hey just a random question but
is it normal for new computers to ... smell a bit if you leave them open and didn't put it in a case yet?

based vivi folder
i thought you werent able to write them 
smell like what?
not really like burnt plastic tho
you can
yeah
LMAO
i have no idea what thermal paste smells like
Lemme open the the thermal paste thingy again to see
Jk
this computer feels so fast somehow, idk if it's just the fresh windows install thingy
but even booting is so much faster
uhh... just some OEM shit
fresh installs usually feels faster
did you have an SSD aswell?
its just not installed by default
i see
alright, just that going from HDD -> SSD is insane
I havent touched hdds in years
i dont know my friend did it
i told him to get a like a cheap ass 64gb SSD
"nah its fine"
did you get a windows image from 2015 or what lol
Uhhhhhhhhhhhh

oh
idk tbh lol
yeah what the hell
joine you should get these https://www.youtube.com/watch?v=P0AxvaZTZIE
the epsilon switches have interference with this especific keycap idk why, just this letter.
Want tutorial? Comment :)
anyway i'm starting to get hungry, and i made a rule for myself that i shouldn't eat near my open pc until i put it in a case
cyall
good rule
enjoy your meal 

that sounds painful to type on
it looks painful aswell

this is bad
im getting keyboard videos recommended to me
making me wanna buy a new one

perhaps
uhh ... no comment

i got my starlink this week and ipv6 got enabled today
thought ipv6 was pretty widespread already but apparently not
nope it's barely used
yeah im guilty of the same thing
this actually runs slower than my for loop approach but it looks cooler so..
linux uses a lot less resources than windows so it makes sense
and is usually very well optimized for older hardware
i would also pick kde out of those
has anyone used Google Cloud Pub/Sub before?
struggling with getting the permissions right its so annoying
nvm its a bug that Google hasn't solved yet 💀
i

troubleshooting for an hr and its just a "bro my bad we havent fixed it yet"
💀
no worries i've been troubleshooting for about 3 hours
bruh
after 2 hours i realised that i forgot to turn on the permissions for one of the service accounts that google made
turned that on
but didnt work
turns out that bug is there
when u use a user made service account to call a google made service account to publish messages in a topic it fails
kek
how long has it been there
im making some new stuff for orbot too, pretty simple so far so maybe it'll be released this week
maybe its low prio
oh its a pretty new thing
yooo 
like in September it was confirmed and forwarded internally

according to the google workspace bug report logs
alright then
https://github.com/SpaceGliderr/orbot/pull/8 this is the PR if ur curious
anything else you can do meanwhile?
maybe i am
time to comment "Looks good 👍 "
what are you trying to do
lgtm👍
Automating google forms responses, so when someone submits a new response, it'll use the bot to create a message in a channel with their response
Then that functionality can be extended in the future by making it event driven, so when a certain form receives a response it sends an event which attaches the corresponding actions that can be taken alongside the form response
That's the current plan anyways 
interesting

same prof has proceeded to ask us to make an at-most 10 minute video about pointers and Other Stuff as an assignment
wahoo
video??
video

yeah my prof sucks innit
🅱️ideo
i wrote TSL as TLS in my exam
took my final for my OOP class and i skipped over the entire c++ section 😭 at least it was only 10 points worth of questions
rest was java, i was lucky there wasnt any swing/gui on there

why does your OOP class have different programming languages?
its mostly java with 3 weeks of c++
sounds kinda counter intuitive if its a OOP class to have to learn different languages when youre supposed to learn the concept
yeah kinda, but im not the one who decides what we learn 😭
true lmao
idk if your courses have any feedback thing after youre done with them, but maybe give some feedback about that 
Java OOP was one of the most horrible things I ever encountered in CS
how do y'all use Discord on Linux? i tried the official app and it is very very bad
apparently the flatpak version is good
someone at work has the same problem with the official one
somehow i managed to segfault that
2nd program i segfaulted today
off to a great start
ooh one of the segfaulting ones seems to work now after a restart
are most of you CS majors btw
would assume so
i didnt go to uni
im a cs major
i was for a year before I dropped out
I did the same mistake twice 
that's a mood
today i made the mistake of installing proprietary nvidia drivers
(don't do it)
I tried to get tensorflow running properly on an older nvidia gpu on a mac
(Dont do it)
this is why i'm gonna switch to amd next year
amd all good until you need cuda
install 2 gpus

they control your pc now
gl youre gonna need it
it was actually brought up on the arch wiki
hmmm
Have you tried throwing it out of the window? Trust me I have a year of it support experience
Sometimes the best thing to do is to yeet it
damn thats some high tech shit, i usually just turn it off and on again
on Windows i was punished for having an amd cpu
now i'm punished for having Intel
can't believe this shit
amd + nvidia wsl gang
i never really used linux on a good pc before so i havent encountered those issues
huh
other than my cpu idling at 83c yea
nzxt h1
sounds like australia alright
i mean idk how hot my cpu gets
i probably need to repaste
my cooler is the uh... uhh... i forgot the name already
sounds similar to what u have tho
probably doesnt help that i only reboot maybe once every few weeks
probably not
I was playing some demanding games and cpu and gpu both went to 95c...
water boiler
do u have a 4090
with the memory hotspot reaching 105c
bruh
no i have a 5700xt
on the bright side, you have a space heater and pc in one package
sounds like my old 6700k, poor thing would choke itself on heat in the summer and just crash every other day
but the cooling situation in my case isn't that great I need to get a water cooler for my cpu
you probably dont need water cooling tbh
oh yeah idk wtf the problem is but my display drivers just crash every few days
noctua air coolers are generally just as good
they are
i have one
seems like an airflow issue maybe
did you get it fixed with that kernel parameter
i didn't try it actually, since nvidia-open works well enough for me
maybe i'll go back to it some other day tho
oh
i'm kinda not too sure about opening my device to any vulnerabilities at all since im on public wifi 
nvidia-open only had one issue where the audio output to a monitor sometimes stops for like <100 ms

but only when doing gpu intensive stuff
it doesn't happen with nouveau, but that's slow af at running games lol
nvidia open is kinda crazy considering i can get like 30 fps on windows
30??
that's crazy
that's on completely normal vanilla btw
this has like, 10 optimization mods added
nouveau had it too, though, so it's a fair comparison there i think
i capped around 150 fps on Windows

i got like 120 fps w/ no mods with nvidia-open
so to be fair
it's still at least 4 times faster
it's crazy to me that Linux is so good for gaming
when you have a game that is actually optimised for it like Minecraft
anything with anticheat and youre sol
Genymotion also pretty good, except i don't like the watermark
with a native Linux build
im gonna try editing the binary to edit that string to be just spaces tho and see what happens
what's that
genymotion is an android emulator
it's like, apparently the only one that's actually good on Linux
it's meant for development, but somehow it's faster than any android emulator i used on windows before
why tf they have a watermark
right
you are currently using a proprietary chatting platform
yeah, but in a browser

It's more that i tried installing discord and it was just so terrible idk if they even have a developer who checks if it runs
i think they used to have like.. 2 linux devs but neither work at discord anymore so no
i heard of this thing called webcord while scouring the internet, but im kinda iffy on third party discord clients
even if it's open source
i saw what could happen with some 3rd party mc launchers
also you can get your account banned because it's against tos
that too
tho, webcord seems to be less about adding features and more about... making it run lol
yeah
so that's prob not gonna raise any red flags on Discord's end
probably not if they reverse engineered the default client well enough
ripcord is another one but its a complete reimplementation rather than injecting code like webcord does
that said ive heard of people using these things long term without bans
me too
no one really gets banned for it
if you self bot you might get your acc banned
yea it's pretty rare but I don't wanna risk it
do you use browser discord too?
no
the real meta is to run a windows vm
maybe i should actually use it too...
I was just really bothered about how middle click pasted
I never use that
ctrl+shift+c/v
the more difficult part was creating a system font config that makes emojis work in the discord client
unfortunately yes
why are splines? well my god I have good news for you, here's why splines!
if you like my work, please consider supporting me 💖
https://www.patreon.com/acegikmo
This project grew much larger in scope than I had originally intended, and burnout made it impossible for me to do more with it. It was already getting incredibly unwieldy, so I apolog...
curvery wurvery
do u guys find CS interesting?
yeah
welp time to take coding seriously now
i wanted to do biotech at first but now i will give CS a try
yes, sort of
im starting to learn about it rn
why would you do that to yourself
the heat is suffering
@arctic lava which subjects do u need for being a compsci major when u take ur a-levels or equivalent? compsci and what else
yeah cause i wanna make really good money when i leave school
it already is
but i’m gonna bite the bullet
but why be happy at job when can be happy when rich
python is making me cry and it’s one of the more intuitive language
taking java next sem
i’m not really excited
not worth if you don't like it
cs i mean
ah lol
you dont want to work a job you don't like for 50 years
Well that's a given
ye
anyone know a potential fix for this
oh wait nvm
i just needed to add /F after the command
yeah I mean it says that right there
it's hard to read
i do that with clis too
and honestly any interface, i sorta just don't read
tbf i saw that the disk was "corrupted or unreadable" when i opened the disk and i searched google for it to tell me to do the chkdsk command thats when i saw the /F
you add an F to pay your respects to the disk
why cant cmd auto-run as admin 😭

i got the disk back by doing /F
running stuff as admin can be dangerous
one sudo command on linux can make your whole install get bricked
true, but most of the stuff i do in cmd requires admin privledges cause im either fixing system or messing around
i cant really do anything without admin
running as admin is essentially using sudo on the app right
yea
I have a shell alias please to run last command again but with sudo it's incredibly useful
i feel like if linux was a more common os i'd have to delete this cause someone would be dumb enough to run it
i do like how they added that option
so you can have your package manager handle it
oh yeah that brief moment when discord has update but no one has updated the package yet
I use canary in the meantime
codecademy is what i use for learning code and shit
For starting I use https://learnxinyminutes.com

will do this on my work pc
its a bit slow
back when i started learning code i tried codecademy and couldn't finish the python tutorial
like 7 years ago i think
not even google could help me ... idk what was wrong anymore

Me a year ago ngl
That was when we could return values that weren't 0 or 1 and I was shocked
Nvm that was codewars
lol
amazing
sometimes u don't even need to take compsci since some schools don't offer it at a level, but pretty much any math or logic oriented subjects, like maths, further maths, physics, chemistry, economics, etc
but taking compsci will ofc be an advantage right?
is it free?
of course
which language are u studying now?

basic knowledge states the computer only understands 0 or 1
aka machiej code
of course, that’s basically just a website where different programming languages are introduced
i prefer experimental learning, where our codes are actually ran on the website
You can just paste that code into your editor and it should run fine. I see your point though, but it’s a good starting point (at least for me) and it eliminates some questions beforehand.
c, assembly this semester
ngl i messed up some pointer shit on friday and my error output had assembly code
it would be 0, 1 and backspace
i only code in loona
W
sometimes i really hate being the go-to guy for api integrations
you know how when you send a bank transfer, there's a reference field?
for some reason, transferwise ignores that in their ui
it uses the particulars and code fields instead, yet labels it "reference" in their ui and api
and even then its not exactly what you put in, it's like "Deposits /BAC/BPC/referencehere"
so i've had to spend today reworking a bunch of wise api stuff to work with that..
i asked my computer science teacher how i did and he just said i did okay at least i didnt fail so im scared of getting something like a C
don't tell me im the only one
im the right one for both
or when you’re stuck on an issue and as soon as you screen share, the issue resolves itself
or ;
when your fintech product goes live and you make profit first day 
noice
For those that wanna start programming, just let gptchat by openAI i think assist you guys if you dont understand the terms or jargon. It also can do some basic ideas for your coding or even code for you.
here the link: https://chat.openai.com/chat
just ask it "how to make a simple tic tac toe game using python" and yeah your assignment is done.
even your essay can become book if you know how to ask
cheer up~~
i feel so dumb
I worked on fix some uts for hours yesterday and couldn't get anywhere
a 5 min huddle with my staff engineer fixed three of those

💀
what the fuck I just tried to rename a folder in vscode and it failed and deleted the whole folder...
like its gone gone
do you have any git tracking or cloud sync?
there may be hope for your files that way 
if you have recycle bin enavled
you might be able to save it
yeah i had just commited to git so i could just git checkout but wtf man
shouldausedjetbrains smh 😎
💀
jetbrains stuff just feels horrible to use after being used to vscode
not to mention how slow and bloated their ides are
Well I like both 🙃
I use VScode for notebooks and then Webstorm/Pycharm for full project editing. I do find the autocomplete, debugging and documentation support much better and more straightforward personally
I use neovim (I have never used neovim)
I actually use neovim for smaller stuff
i never learned how to use ide debugging tools so I just... print()
yea print works great so I never bothered to learn how "real" debugging even works
vim is the best general purpose text editor but sometimes you just need vscode for that intellisense and extensions
I would die if somone took the debugger away from me
Would quit programming and open a bakery
I've tried but I don't get it. maybe I need to watch some video about it
Honestly same
Debuggers let you do so much - like see which function calls you're in, what the whole state if the program is at that point, evaluate expressions in context
a proper debugger is basically the same as spamming prints every line
but you get to see state changes in real time
Exactement
its a pain in the ass to setup with php but it made work 10x easier once i had
At least (in Python) you can replace your prints with breakpoint() in 3.6 upwards I believe
That'll give you a taste of debugging
Yeah adding watches is so useful
Also find conditional breakpoints to be extremely useful
Yup these have saved my ass several times in the past 
perhaps i will give it another shot
You'll never go back once you've got the hang of it until you start using a language where they're harder to setup and then old habits will return 🙃

I barely use any ide functions because I used to write everything in vim for the longest time
scala
like there's probably so much you can do with vscode but i just don't know about it
check em out - they can save you a bunch of time
just experiment clicking on things (when working on smth non-critical)
seriously
just open menus and see what options you have and you'll stumble on things where you're like, huh, that sounds kinda useful
like automated test runners 
no way
testing is supercool in goland
i have yet to ascend to the go plane although I keep being encouraged to
that and rust
i too am a green tick enjoyer
i have been fixing so many tests because i added new middlware
Everything is borked now
fixing the test or fixing your code? 
no test-driven development here then?
rust my beloved
so what i added changes how a bunch of stuff works, most of the original tests are now invalid
Basically all the tests with garbage values needn to change
roughhhh
the problem with relying on vscode for everything is that you're at the mercy of people writing plugins for whatever you need it to do
like at work i use vue 2.x which has a support plugin, but i'm also using a compatibility layer that implements vue 3 syntax
and the plugin for vue 3 only like half supports that layer
whereas if i swapped back to phpstorm or whatever jetbrains ide, it would just recognise that i'm using vue "3" and work











