Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Search - "borrowing"
-
Shamelessly borrowing this from /r/ProgrammerHumor/ because.. 1+'1'-1 ¯\_(ツ)_/¯
On a serious note, this will help with JS coercions: https://medium.freecodecamp.org/js-...1 -
My Dad: "Hey since you mostly use your desktop, could I borrow your laptop for my trip?"
He just wants to play World of Warcraft but there is no way I'm going to let him have access to my PC after years of fixing his computer. Because he's my dad and helped pay for the laptopn, I can't just say no without him getting flustered so this is what happened.
Me: "Yeah sure, you'll just need to find whether or not WoW, works with a windows emulator and hunt down how to configure that."
D: "Why can't you do it?"
M: "I've never done it. Its like the price to borrow."
D: >:| "I'll ask your brother."
He did end up borrowing my brothers laptop for the trip because he was running windows and didn't have a good excuse. I just helped him uninstall the blizzard client, WoW, avast, and McAfee that was installed over the weekend.5 -
Am I the only one who lets friends and relatives always browse on my computer on the OS-default browser like Safari or IE. So they don't disturb my precious tabs and log in Chrome? 😂5
-
Learning Rust.
Holy brainfucking brain melt, those references, scoping and borrowing and cloning and whatnot, because there is no garbage collector, but also no direct memory management.
It's cool, but also hard for a noob coming from the JVM/Android. The compiler error messages are helpful, but I immediately found some cryptic ones that don't help me at all.9 -
Ascended Anime Nerd
Got started with Dragonball Z when it first came stateside. Brother was borrowing fansubs of the Cell and Buu sagas back when people were wondering if Goku would ever finish Snake Road.
Around that time I started noticing some serious discrepancies between the broadcast translations and the fansubs, and so I decided to cut out the middleman—after all, how hard can it be to learn Japanese?—and did a search on AltaVista for a “kanji course”, turning up a course hosted by Rice University that taught basic Japanese using Magic Knight Rayearth and YuuYuu Hakusho.
Turns out the answer to the difficulty question is that anything van be simple to learn, if you don’t know it’s supposed to be hard. Especially if you embrace the parts everyone else dreads (falling in love with kanji, in my case).
Over the next nine months I ditched my Spanish class—and all my other classes, for that matter—to study Japanese in the computer lab. I was reviewing the lessons, playing JRPGs on SNES9X (stored on a ZIP disk, since every computer in the lab had a ZIP drive), and transcribing the scripts so I could transliterate and translate them thereafter. In a lab that went so far as to uninstall Minesweeper and Solitaire to discourage playing games on school computers, I had free reign to do so openly because the one time I got confronted for playing a game I had 150+ leaves of handwritten transcriptions to show them.
Long story short, by the time I took Japanese 101 9 months later it was like Hermione in Snape’s potions class, since I had already taught myself about 2 years’ worth of material. I then transferred out to a college that did a one-class-per-month “modular” system that basically allowed me to take 8 more Japanese classes full-time for the following year. By the time my exchange trip came up I was sofar ahead of the curriculum I was taking classes alongside the native Japanese students.
Running out of linguistic topics, I did an independent study on classical Japanese literature in its original, unmodernized grammar and orthography. A topic I’m still fairly active with 15 years later.3 -
So I know i did a best and worst case already for 2017
But apparently it's not finished yet!
This will probably a short one:
Best thing to happen to me this year: I applied for a VR game and despite at this very moment i'm in thr trial period (to see if I can do work) i've succesfully landed a job.
I've spent months rewriting and rewriting my CV applying for standard software dev jobs, either being turned down for not enough experience for Junior roles, where they want someone out of university, where I have 1 year of both iOS and android experience, that is still not good enough for their shitty little app.
After all of that effort I turned to just borrowing my head and developing my game, to the point i have bits of the game practically done (bare bones crafting and building works 100% just has bugs in some specific cases). A friend of mine got a game dev job and he helped me out by showing me what his CV and cover letter looked like, i mimiced the style (in a sense) and added my own specific additions for VR. At the exact same time i got an invite from unity connect (which i had totally forgotten about) which i then scowered through jobs until I found something awesone "a job for a unity VR developer".
After contacting the guy about the job, we ended up having a voice chat over discord and he seems pleased with the fact I tome on my hands! Sadly the job is not some hourly paid job, however from what i've seen from youtube gameplay footage it looks very well done, and that leads me to getting revenue share.
Anyways i'm just so happy that with a couple days to spare in the year LOL i got a job! Sure i won't get paid yet but I got a flipping job, it is what i wanted for christmas!!
It is a gamble being revenue share and all but i'm willing to risk it! -
Biggest aha! moment was when i understood rust's borrowing and how much of a retarded piece of shit it was and then went back to scala yesterday7
-
Borrowing a JavaScript book from the school library and realizing that it was published years ago and is very outdated because it always refers to the compatibility with Internet Explorer. I'm not sure if I should continue because after all, it's the basics. Maybe it's worth returning already... or maybe not because I don't always have access to the internet, but a book is easily accesible with or without internet.3
-
C++20 Modules ! I can't wait to get rid of includes and include barriers ! Still prefer Rust though, borrowing times saved my butt just this morning, hopefully we'll get them on C++ too at some point1
-
Let's talk about borrowing/lending money.
Will you lend money if a friend or family asks?
At the moment, it's an immense hassle to get back the money I'm owed. I don't mind at all but the idea of losing money down the drain for no reason is idiosyncratic.15 -
ok I think a lot of my frustrations in rust stemmed from assuming struts are like objects and therefore can contain conceptually similar things in them that in your head would seem like the same "object", and that methods should be derived therefore and such
but in reality in rust struts are for conforming to borrowing rules and it doesn't care about your conceptual organization I guess. if you try to organize things like the structs as objects then you get borrowing issues on some occasions and then I would get stuck trying to figure out how to put a method on a struct when I need to drop borrowing to do some task and whatever
the solution is to throw out your human notions of organization
so I guess it's more bare-bones to how the machine thinks about stuff (well how the borrowing is coded in the language) and doesn't care how a human does (like notions like object orientated design)
this is odd to me in a modern language but at least I've crawled out of my brain damage with enough drug-use now that I can have such epiphanies I guess. I feel so slow. I swear this should've been massively obvious and easy to grasp in like a few days before for me. rip
instead it was 2-3 years of ~5 months of actually deep coding 😒
also I can blame people saying rust can do everything, like that you can do object orientated design in it. they're being dishonest and it's harmful to the learning process if you're acting like that 😩. stop being a cult, you'll literally be more popular4 -
Motorcycle owners, riders, I need your advice.
I have my licence for quite a few years now, yet I do not own a steel horse. I keep borrowing one [ninja 650 2010] occasionally for a ~100km ride from someone, 2-4 times per season.
A few weeks ago I did a 1k km mototrip around the country. Gotta say, I loved it! Ever since I cannot stop day dreaming about my own bike.
I'm not an aggressive rider. I like it smooth, steady, comfortable, but with some proper kick occasionally. I'd be riding in a city and taking longer trips [500+km], preferrably with a passenger.
Cruisers are awfully large, city bikes look boring, choppers are loud. Supersports - not my cup of joe. I think I'm settling for the sport-touring class.
Since I don't have lots of xp, it's likely I'll fall, so new and shiny or expensive toys will have to wait.
I feel like falling in love with vfr800 late gen6 [2007-'09], with fine-tuned vtec. I love all the feedback about the steadiness, comfort and power. And it does look cool!
What are your opinions about the vfr? What are the drawbacks?
What other bikes should I look at, that would have similar specs to vfr?
Also, when is it better to buy one? At the end of the season or at the beginning [spring/autumn]?1 -
wish AIs were good at rust, borrowing rules, and async 😫
is it possible to have a impl of async &mut self on something that's gonna thread and update its own data via Arc Mutex or whatever or not
stop making syntax errors
guide pls
nobody uses rust, I swear. or at least they just do basic bitch "beginner" apps. please. get with the times and actually do something meaningful that's not picture perfect theoretical exercises. how come no one's RNG tested every feature against every other feature? where's your chaos monkey. the world is chaos! get with the times!
it would be nice if I stick this on the instance as a method but it _might actually never work_ if I try that so I don't wanna spend 3 days wrangling with the code to figure that out when I have a perfectly good dangling independent helper function in a random package here. gosh darnit
also apparently the only way to get something out of a Arc Murex is to clone it. but the API / usability of the thing would be exactly the same whether it was wrapped in Arc Murex or not. so it's like. if it was in Arc Mutex and you wanna use it in other parts of your app that aren't using multithreading in any way, are you just changing all the function signatures to Arc Mutex or are you cloning to get it back out? uegh I don't even. what if I mutex lock and just put that in the signatures (can I even? because I've tried using weird intermediary objects as part of signatures and then I get in trouble there too cuz arbitrarily the answer is "no" because some generic system limitation)? why all of this
May as well learn hieroglyphics but with French/English grammar exception rules on the side. yo dawg we heard you hate human languages with all their exceptions so we made programming languages the same way70 -
they say you should just do rust clone cuz it's fast enough in most cases anyway and you won't have to hassle yourself with borrowing rules as a newbie
instead my script started to crash cuz evidently I had so much in RAM Linux was thrashing between RAM and swap until it just kept giving up lol
inb4 database24