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 - "book"
-
Manager: You can’t define an async function without using await.
Dev: Yes you can.
Manager: Well you shouldn’t, there’s no point!
Dev: Yes there is. It can turn blocking synchronous logic into work performed concurrently. In this case the perform—
Manager: It’s called async *await*. Async *AWAIT*! Did you hear the two parts to that? You shouldn’t ever have one without the other. THEY GO TOGETHER. Worrying about concurrency is for people who use callbacks which just goes to show how out of date your skills are. I’m reading a book on javascript and there are so many advanced techniques out there that I haven’t even seen you use ONCE!
Dev: …
*I looked at the book he’s reading, it’s from the < ES6 era… no wonder he doesn’t see me using any of those archaic patterns/hacks/workarounds…*14 -
My graduation project partner was strange person
Favorite IDE is VIM
Forget how to use git
But somehow she could code most of the app
I asked what does she do when mistake happens, she answered "delete and write again"
I suggest github but she is "to embarrassed to show her code on internet"
She send .zip file of her code to me
Go to univ library to copy some code because she don't believe random code on internet
Of course verson of code on book in library is too old, but she prefer fix herself
But she is overall good person, so I can graduate next month14 -
Weirdest co-worker... We'll not to be judgy, but I think our industry is sort of home of the weirdos, but.. there's a few over-the-top weirdees we've had at work.
First one that comes to mind was a guy that walked liked Mr. Burns, hands behind the back & chest out. He microwaved the same thing every single day for breakfast - crackers, sausage and cheese. 😖This guy would get to his tasks very slowly, wouldn't talk to anyone on our team, and would go missing from his desk a lot, sometimes for extended periods (2+ hours). He really struggled to catch on to easy tasks. He quit after a few months, thank god.
Another weirdo we had was a girl who just couldn't dress to save her soul. She would wear these ugly ass sneakers that had neon colors reminiscent of bowling shoes (neon orange and green) and would wear turtlenecks and floor length skirts that all the colors just clashed. Her outfits were uglier than your great grandma's. Myself, her and 2 other girls dressed up as the Dr. Seuss things for Halloween, but did h1, h2, etc. tags instead and she put like rope from curtains in her hair with like 10 little pony tails. Just like wtf. She would play her gameboy at lunch and not talk to anyone much. She was really bad at our job, a lot of clients complained. She would literally read a book, braid her bangs or nap at her desk. Needless to say, she was fired.6 -
700 years ago, some monk scraped down the ink from a book, so he could reuse it to write down his stupid prayers.
Recent analysis uncovered that the book he scraped was “Method” by Archimedes that outlined the basics of calculus 1000 years before Leibniz.
It makes me feel miserable and helpless when I think how more advanced our world would be if it didn’t happen. I realize he probably didn’t go like “hehehehe I’m erasing scientific knowledge because religion is better”, and just did what he thought was better, but I feel bad nonetheless.8 -
My dev colleagues, the ceo, a external designer and me (dev) are sitting in the meeting room
and we discuss the result from the designer. He designed a complete relaunch of a
small CRM for the logistics sector.
The designer is a designer as you know him, big beart, small macbook, chai late
and he designed nothing, he hired a freelancer from romania.
My boss studied software development in the 80s but didn't really developed a software
for about 20 years, but he thinks he knows all and everything.
My boss is constantly complaining about the colors in the design and he would like
a iOS approach. Our system should complete copy the styles from iOS.
The really funny thing happend in just 1 minute. My boss is complaining again about the
colors and told the blue color is way to dark and the designer meant thats not possible the
blue color very bright. My boss sat next to the designer and looked not on the wall where
the picture was thrown from a projector, instead he looks from the side in the macbook screen
of the macbook which was in front of the designer. Then the designer says "Oh my god, the color
changes if I look from the side or from the top of the macbook." The Designer was blown away. My
boss couldn't believe it and did the same movements with his head and said. "Wow, you are right
the color changes".
We all other people couldn't believe that they are so dumb and thought this must be a joke. But
that wasn't a joke. After the meetin my boss told everyone in our company his results regarding the screen.
I wrote every story in a document, and I'm planning to create a book with dumb shit like this.2 -
Here I am trying to get some tickets for a theater, and I noticed an interesting thing. It seems that the website holds no session persistence. In other words it doesn't check to see if the user has stopped trying to order tickets, instead it holds the seats for about 30 minutes. This is kind of stupid because when you back out, your treated as a completely new session, you have no way of trying to get back the seats you had chosen.
Sooo, what does this mean? It means that I can start selecting a bunch of seats and continue selecting a bunch of seats. There appears to be no server-side checks to prevent someone from just booking the entire theater.
Soooooo, what does this mean? I could potentially spam the entire country's theaters (any that use this website as a booking system) and make it impossible for people to book seats through this website.
What do you guys think? Is this a bug or feature?7 -
@OmerFlame wanted to see more of Soviet pirate stuff, so there you go buddy. This is an example of Samizdat (“self-publishing”) — Soviet people made books of dissident literature that was forbidden in the Soviet Union.
This very book was made by my grandma, with lace fabric cover and sheets cut evenly with care and precision. Everything was typed on a typewriter, yes, the thing that renders the whole page useless with one mistype, as there is no backspace key.
This book dated 1975, the poetry of Nikolay Gumilyov.9 -
Not co-worker, but class mate. Specifically, my group mate.
Boy, I could fill an entire book with the “what the fuck” moments.
Here, the prior question of his was “why is this happening?”23 -
Bring the fun and curiosity back.
School education? Mostly rinse and repeat, learn from heart and do as you are told.
First job? Take these bread crumbs, shit out gold ingots, please.
There are few who had either very kind and gifted teachers / persons in their life or had a strong will / desire to learn by / for themselves - but it's hard to combine fun and curiosity with the - most of the time - very harsh reality and environment we live in.
I'd really wish that it would get back to fun and curiosity and not the endless myriad of bitching, hissing and fighting it usually is.
What I find most tiresome in education is the overflow of information with no value - most content is outdated, wrong, harmful, not precise and especially not helpful.
Thinking about good education I've got very fond memories of hanging out in IRC chats, talking with people who were "ancient" (la me 15-20, them 40 plus ;) ) and not being "shood" away, but rather getting fed by book recommendations, hints, appointments when they had more spare time to explain in private IRC sessions etc.
The atmosphere was always a "we might not have time for it, but we'll try and don't worry if you don't understand it".
When I'm trying to find information today... It's really 90 - 95 % filtering, 4 % try and error, 1 % finding what I need.3 -
There are so many weird hacks in the quite legacy app I work with I could write a book about all them hacks…
But I must admit, the worst of them all is internal time. Yes, so some blockhead thought it’s a good idea to represent time in a manner completely removed from Datetime objects or timestamps or even string representations. Instead we deal with them as intervals represented by integers - and because this is not fucked up enough by itself, the internal time doesn’t start at midnight, yet the integer representations do. It’s a bloody mess. No wonder most of the bugs we face have to do with dates and time…5 -
Today, my son asked "Can I have a book mark?" and I burst into tears.
11 years old and he still doesn't know my name is Brian. -
I was amazed by an elderly man on the subway yesterday, he pulled out his tabled and stated reading a book on it. Thinking of that I know way too much younger people who can't even use a computer properly..1
-
Ughhhhhh. This fucking code is a disaster! The guy says he built it DRY, but it's WET as fuck! So much fucking repeated code!
I'm annoyed most because I know that it'd be a fucking waste of time to try and rebuild what these guys have built over the past 5 years, but goddamn it, it shouldn't be an excuse to keep on making code like this!
I know that I'm not super experienced in C# but pick up a goddamn book on good coding practices. This thing is a disjointed mess and it never had to get this way.
So many fucking interfaces!!!! AAAAAAAAAAAAAAA22 -
Worst and only experience is the reason I moved away from programming...
25 years ago I was hired to copy a phone book list to a access database.
Access back then would create lots of garbage, so I would add 3 to 5 entries before access crashed (shitty p133 laptop with 32mb ram running windows 98.
So I made a visual basic program to add data and work around the problem.
I offered said program to the guy really cheap and would still make it better.
Did also a admin module since he had hired dozens of people and I knew he would have problems peasing the databases together.
And... Dude cancels the deal.
I get a job, 2 weeks later he calls me... Ohhh I don't know how to get all the databases together...
Me: I'm working now, the program I did solved said problem. I trew the code away. Deal with it. -
So the next O’rly book I can imagine for this project is:
How did I ended in this microservices nightmare?2 -
I have nothing to play recently so I started playing old games.
Today I launched gta vice city on my old pc. Got more than 200 hours in that game during my childhood. Game from 2002 and I laughed when driving a car. It was so natural and fun. Michael Jackson singing Billy Jean and police chasing my ass when I’m trying to find a bribe in the city. That was fun.
For me most of today’s games can’t compete in gameplay mechanics with that game from 20 years ago.
Maybe we have better graphics but gaming fun got worse.
I think it’s cause most of games are made on commercial engines to save money and game studios focus on graphics cause it’s cheaper than paying software developer.
They focus on games to be competitive between players so ai got worse.
Big studio games became generic like movies, they don’t want you to have fun but they want to give you a story around by delivering lots of content in game, achievements, stars but the gameplay itself is bugged and meh.
They don’t focus on things people want to do but they focus on target groups. Most today’s big title games are meh cause they’re made by people who don’t play them.
They don’t play them cause they don’t have time cause of management that changes requirements cause they asked target groups and that would sell. Well if I play a game I’m not interested in story despite some basic stuff to keep the progress forward, if I wanted a big story I would watch a movie or tv show. I play games to explore, feel the world and have fun. I don’t need a linear deep story for that cause I’m in game so give me good gameplay so I can feel the world.
Most of classic game hits didn’t had tons of text and tons of stuff to do but they somehow wanted you to play more. Cause they were competitive between player and computer, the controls felt natural and while progressing you was eaten by the game mechanics more and more not by the story but by amount of stuff you could do as you progress or difficulty increase or enemies behavior change.
Now we’re getting all at once, mostly pointed and with detailed tutorial what you can do. There’s no explanation there’s no discovery what you can and what you can’t do at start. You get all and you decide to throw game away because the moment you launched it you got everything so you spent money just to get stuff you won’t play cause it’s meh and you go back to cs or other looter shooter to kill people cause you’re pissed off that the game was meh.
Well I’m glad I was a kid in 90s and 2000s cause I could enjoy gaming before it was targeted to broader public and become another shallow mass media industry that don’t give a fuck about gameplay cause they want to tell you so many things, they want you to know them cause they’re so important that they forgot that I can read a book and I came to play game to get a different feeling then reading book.
Modern games are like books filled with small stories and nice graphics where you can open it on every page and read a little piece of shitty crap.
Just take this piece and go to toilet so you can wipe your ass with that story and begin other one, look around, puke and go to toilet to take a dump again. I lost my hope to get something fresh or filled with nice gameplay from gaming industry. It’s dead.4 -
Literally anything that comes out from Anders Hejlsberg, always liked what the dude brings to others. I fucking loved his work on the Pascal Programming language, back then it was all over the place in Mexico. I can only imagine that in the U.S it was just as big since a lot of mfkers in here are still pushing Delphi from what they found with Turbo Pascal.
His work on the C# programming language is absolutely incredible and C# is one of the best languages in my book. And I fucking adore TypeScript, so literally, everything this dude puts out, I pay attention, listen to and learn. As far a language designers go, him and Rich Hickey are my top favorite mfkers in the field, but Anders it to me a personal idol.
I also happen to really fucking like C# and Clojure man, like come on those two are just legit good languages.8 -
*sighs heavily, utters a few profanities, starts updating resume*
This one is on me. I thought I had vetted this place well and asked the right probing questions during the interview, the core product is very cool but the company is too functionally immature.
it feels like Im in a relationship with someone who is really nice, very attractive and clearly very book-smart but has absolutely zero emotional intelligence and even less of a clue in general about what they actually want and need from the relationship. And to that I say:
“…yeah nah.” -
Block off blocks of time as “unavailable” and use that for me time. Gym. Take a walk. Watch some tv. Read a book.
-
"And in a stunning turn of events, he got it to work!"
But seriously... I've literally been throwing shit at a wall and seeing what would stick.
Fucking DTOs and getting shit out of a database. I need better resources on how to do this properly!
Anyways, I found that just using 'object' and letting the compiler deal with the rest of the bullshit actually allowed my code to work and run. I'm still a little in shock.
I'm over here trying to keep things in a nice one-to-one because that's what my PM recommended... and instead I just get slammed by Type casting nonsense and more errors than I can begin to understand. And unfortunately, Stackoverflow is of no help because everyone's issues are very nuanced and unrelated to my problem... Maybe I'm the problem? 🤷
But here it is working without all that bullshit. I don't know man... This code base is not the rager I was expecting. I'm getting my ass kicked with code that doesn't fall in line with the book I'm learning from.
You know how they say, "forget everything you've read and learned"? I'm feeling that really hard right now.
Constantly fighting the urge to rip everything down and do it based on what my book is recommending, but then the logical natured side of me is like "you ain't got that kind of time to be unfucking someone's work, only to get caught in more trouble. Your ego is not worth it"
Anyways, it's fucking late here and I'm glad enough to not have to think about this issue anymore. Bye.3 -
📚What book would you recommend to software developers and why? 1 book per reply so people can ++ them.15
-
This is so nice..💙😄
<Heading>
Synopsis of Gita (religious book of Hindus)
<Stanza 1>
Code is an illusion
Today you are coding
Tomorrow someone else would do it
Thereafter someone else
<Stanza 2>
What did you learn
That is helping you in this Project
What are you learning
That will help you in your next Project
<Stanza 3>
Bug is the truth of life
It is today, and will remain forever
You think you have debugged the Bug
You are wrong
<Stanza 4>
It is continuous
In various new forms
It pops up
Recognise it Parth (Son of Hindu God)
<Stanza 5>
That's why go on making Codes
Don't think about the Bug
They will come to you
On their own1 -
I got to see my paper for information system today and I got half the marks from total.
The teacher wanted me to write the latest technology properly from fucking 10 year old book.,🤐😠😡1 -
Question - is this meaningful or is this retarded?
if
2*3 = 6
2*2 = 4
2*1 = 2
2*0 = 0
2*-1 = -2
then why doesnt this work?
6/3 = 2
6/2 = 3
6/1 = 6
6/0 = 0
6/-1 = -6
if n/0 is forbidden and 1/n returns the inverse of n, why shouldn't zero be its own inverse?
If we're talking "0" as in an infinitely precise definition of zero, then 1/n (where n is arbitrarily close to 0), then the result is an arbitrarily large answer, close to infinite, because any floating point number beneath zero (like an infinitely precise approximation of zero) when inverted, produces a number equal to or greater than 1.
If the multiplicative identity, 1, covers the entire set of integers, then why shouldn't division by zero be the inverse of the multiplicative identity, excluding the entire set? It ONLY returns 0, while anything n*1 ONLY returns n.
This puts even the multiplicative identity in the set covered by its inverse.
Ergo, division by zero produces either 0 or infinity. When theres an infinity in an formula, it sometimes indicates theres been
some misunderstanding or the system isn't fully understood. The simpler approach here would be to say therefore the answer is
not infinity, but zero. Now 'simpler' doesn't always mean "correct", only more elegant.
But if we represent the result of a division as BOTH an integer and mantissa
component, e.x
1.234567 or 0.1234567,
i.e. a float, we can say the integer component is the quotient, and the mantissa
is the remainder.
Logically it makes sense then that division by zero is equivalent to taking the numerator, and leaving it "undistributed".
I.e. shunting it to the remainder, and leaving the quotient as zero.
If we treat this as equivalent of an inversion, we can effectively represent the quotient from denominators of n/0 as 1/n
Meaning even 1/0 has a representation, it just happens to be 0.000...
Therefore
(n * (n/0)) = 1
the multiplicative identity
because
(n* (n/0)) == (n * ( 1/n ))
People who math. Is this a yea or nay in your book?25 -
If Uncle Bob Martin took all software engineers who are better in designing architecture than him, he could fully book Hilbert's hotel.2
-
I have personally struggled a little with CMake always. I usually have to take help from some senior dev. Today I was able to figure something out on my own so this is an achievement story. Think I should treat myself with a book3
-
I fucking crush it when there's a deadline. Wanted some features done before 2022. Woke up at 4 AM, did 9 hours of coding and all done. Read 100 pages of a technical book I should've already have read through, but I've been lazy. Read a long ass bedtime story to the spawns. Made sweet love with the missus. Geared up my character in an MMORPG. Sweet ending to 2021.
-
Today I want to put an age-old question to rest. What is art and what is not? What's the difference? In art world, there is actually a consensus that was reached in the second half of 20th century.
First, the audience has no merit to decide what's art and what's not, as art has inherent characteristics. So whether a piece is art or not is left for the artist to decide.
But the artist too cannot just call anything they make art. There is just one criterion — if only the art piece itself is enough to justify its making, and the artist sees it as the only award they need for making it, it's art. Otherwise, it's not.
"But wait, that's not entirely correct, this is incomplete", you say. Well, it's in fact complete, but because our society progressed way faster than our languages, we're having a hard time to describe novel complex things with words. Language can't keep up with rising complexity.
We use "horseless carriages" instead of "cars" when we describe anything complex enough. The good explanation of how language works and why do we act like this is outlined beautifully in Benjamin Bratton's "The New Normal". A small book of forty-something pages, but I never spent that much time on every page in my life. The best book investment for me after "The Code Complete".22 -
!rant
oh my god, look what I found.
http://f.javier.io/rep/books/...
"The computer system described in the book is for real—it can actually be built, and it works! A reader
who takes the time and effort to gradually build this computer will gain a level of intimate understanding
unmatched by mere reading. Hence, the book is geared toward active readers who are willing to roll up
their sleeves and build a computer fromthe ground up."2 -
I was trying to book a visit to my doctor at the largest private clinic of the country... I wonder what would a normal user understand from this message? 🤣4
-
1. Keep my job
2. Keep my side job
3. Revive blogging at least 1 post a month
4. Keep focus on what’s important and what are priorities
5. Finish my notes / diary application cause my text files / html pages are now taking up to much space and using cat/grep to search trough them is painful ( it can also help with point 3 )
6. Maybe just maybe start writing prototype of table top rpg game scenario, I have a concept in my mind for a long time but it’s also connected to point 5 and 7 and 8
7. Spend twice more time to practice drawing than in this year
8. Read / listen to more than 1 book a month
I think that’s it from dev stuff1 -
real story. In high school, a librarian (women) recommended me a book. I read it in classroom, it was fine for the first half and then.... the real story began.
It was 50 shades of grey.
It's been about 4 years. I'll soon be completing bachelors. And I've yet to return the book, out of shyness.9 -
I finally get it. Symfony: The Fast Track (https://symfony.com/doc/6.0/...) is not supposed to be a learning tool.
It's an elaborate joke! Now it all makes sense.2 -
My favorite thing at my desk is my adult coloring book. I'm a developer/project manager hybrid so I have to deal directly with the clients AND build their sites. 🙄👎🏼 Coloring in this is very therapeutic; the sayings are hilariously vulgar.😆👌🏼2
-
Lead dev runs the program I gave him to set up a bunch of processes that run for one database.
It has a GUI that seems native to his windows environment......but it sort of is not.
The program runs, asks for the .csv file that is to be parsed into the database.
Lead dev: Ok, what is this though?
Me (his boss) "Don't worry about it"
Him: "Holy shit what the fuck is this??? TELL ME!!!"
Me: DON'T WORRY ABOUT IT
Him: "WTF DID YOU MAKE THIS IN???!
ME: DON'T WORRY ABOUT IT
CMS Admin (another one of my employees) "Would you TWO SHUT THE FUCK UP!!!?"
New Guy (mainly a frontend dev): ........
Meanwhile, in production, no one knows if your gui app is built in Lazarus and Free Pascal, as long as it works.
I really need to stop doing this to the lead dev, dude already keeps trying to choke me for writing things in perl.
On another note, Object Pascal is pretty cool. Might write a book on it for those that want to do CLI based applications on it, I have no clue why every book on the subject costs in euros, but there should be more shit written for beginners, language is awesome and one can get lots of mileage from Lazarus and FPC11 -
It makes me mad that people don't know what DevOps means and instead keep asking what skills they need to "go into DevOps". Is this because developers and operations people are stupid, or have companies once again ruined another term for their own benefit? Read a fucking book.5
-
For a moment I thought I was living in a crazy world..
Then I realised I was..
Reference:
https://help.archive.org/hc/en-us/...
So.. let me get this right, a huge digital library of text, can only let one person at a time, look at a copy they have..
I can't for the moment, think of a more absurd thing !
I mean..
"You are number 1,392,293,943 in queue to read the book you have requested, estimated time for delivery is 134 years, 3 months, and 4 days, do you wish to continue waiting ?"
It's going back to the old days, when I'd order a book at the library, and wait 2 years to get to read it..
Your kidding me right !
No, I think this is real, and I guess one of the conditions for it being available online..
I did ponder this kind of crazy idea myself a few years ago, but everyone else said it would never work..
But I had in mind to have more than just one copy available for folk to view..
I mean, if you own 10 physical books, you can lend them out to 10 different people at once.
So, if you have 10 physical books, and one digital scan, then you should be able to lend out 10 digital scans at once right ?
That was the idea..13 -
If your company starts handing out a book called “What the heck is EOS?”, be afraid. Be very afraid.
It contains analogies like: there’s a table, sometimes seats get rearranged and there’s no seat for you. No seat = you’re getting laid off.
My last company gave out this book. They even sent it to people they had already laid off (but hadn’t reached their last day yet).
EOS = Entrepreneurial Operating System, in case you were wondering7 -
I've been reading this new book. And the heading & the paragraph is way offset. Like 3 fingers offset.
It freaks me up every time.3 -
Goals for 2022:
- Keep studying my new book (concrete mathematics)
- keep solving hacker rank problems
- Interview at amazon.com again (I was so close to get it) and feel the pleasure of reject them
- Stop skipping gym days
- Making friends in NY4 -
Dev and not Dev related:
So I finally got approved for an Afterpay balance. It was around 400 or 700 (forgot), I got a phone, a pair of shoes and a bible.
1. The last study Bible I bought was a normal sized book by dimension
This study Bible came and it was so small I couldn't read it without frustration
2. The pair of shoes were 2 sizes too small even though I always buy the same size!
3. The phone I received was faulty. No gyroscope, no tilt in games, no calibration for Google maps, no google assistant microphone.
4. I held off not returning the phone because I couldn't stand not having one for two to three weeks or whatever.
5. Now I've discovered a crack on the corner of my screen.
6. Now my Afterpay balance is no longer 400/700 it's only 200 even though I paid everything. Might be because of one missed payment or two which I caught up on.
7. I got the shits with windows ten and moved to Linux elementary is only to find that everything I install requires missing dependencies and those dependencies have no installation candidate which means I can it install the dependencies.
Now I can't get back to windows because not one out of the 5 or 6 iso burning apps I used are able to create a bootable windows USB.
I've tried woeusb also, and woe is me for trying it. That also has no installation candidates for its dependencies iirc. Fuck Mr why is Linux so shit? I even tried the software on Linux Mint to create a bootable fucking windows USB but that won't show up on boot either.
Now I have to bug my mother to use her windows PC to use the windows media creation tool to create a bootable windows USB, and either return this phone under warranty or get a new one under 200 (🤬) or just keep this one.
So, after all of this shit, I did not get one fucking thing I wanted.
No fucking properly working phone, no shoes, no bible and no working desktop os.
If anybody knows of any tools that create bootable windows USB sticks on elementary os
Oh and this time around unetbootin won't detect any USB drives on my Linux distros so I can't use that.
For all the fanboys on here don't tell me it's user error because I am more than experienced enough to know how to do these things on Linux.5 -
Currently learning go and I’m really enjoying it. It’s been a while since I learnt a new programming language and the experience is different to what I remember. I’m reading an o reilly book and when about how they implemented a common feature of programming I’m like oh no they didn’t. I think this is what normal feel when they read celebrity gossip. Hash tag goto.2
-
- Learn at least one new programming language
- Start a new personal project
- Push things into my GitHub
- Complete one certification
- Exercise
- Practice mindfulness
- Read atleast 1 book per quarter -
Symfony is a mess. The source code is a mess with classes that are never in the right place. The book is a mess. It skips over things that pretty much break the project it's supposed to build.
Not only they haven't fixed it (current book is pretty much a rehash of last book), they think they can actually sell that crap.2 -
So I’m a new team lead for a group of awesome engineers. I feel like I’m too essential to this team, apparently they don’t do quite as well when I’m on holidays which worries me. I often try to explain what i know but it doesn’t seem to change the situation. I’m not getting specific feedback from anyone on how to improve my ability to disseminate information which might be because folks are intimidated/generally anxious. Does anyone here have any strategies to help others to grow and share your knowledge? Book recommendations are welcome too!2
-
Living abroad during corona times is shit. Trying to visit the family back home...
2019: it's too risky, I won't chance it
2020: still too risky, I won't chance it, even though technically I can now
2021 - Jan to Oct: I can go now, but I can end up getting stuck at the other side. I'll wait just a bit longer
2021 - November - right, quick, I'll book just THREE short days to say hi to the family...
BOOKED
2021 - days later: LOCKDOWN AGAIN MOTHERFUCKER! Your flights are GONE! Try again next time fool!2 -
so am trying to learn webdev and promises. afaik, js is single threaded but can work in a multi threaded way, so if i have say a database of booknames, and i query for 1 book three times, it can run all the 3 requests parallely and give me the responses accordingly, via promises. in java we would use threads for such thing.
So to test, i used this synchronous sleep function: https://stackoverflow.com/a/...
and created the following getBooksFunction() :
function getBookNameAsyncP(id, delay) {
return new Promise(
(resolve, reject) => {
console.log(`getBookName(${id}) called at ${Date.now()}`)
sleepSync(delay)
let result;
if (id in bookNames) {
const resp = {id: id, result: bookNames[id]}
result = resolve(resp);
}
else {
const resp = {id: id, result: "ERROR! BOOK NOT FOUND!"}
result = reject(resp);
}
console.log(`getBookName(${id}) finished processing at ${Date.now()}`)
return result
}
)
}
var bookNames = ['a','b','c','d','e']
//-------------------------------------------
this function is supposed to return a promise that it will return the value of book or error after searching for given milliseconds (fake search time).
but this function does not work correctly. i made 4 calls :
- id: 1,delay: 2000
- id: 2,delay: 1000
- id: 3,delay: 3000
- id: 7,delay: 2500
via usual promise format , i.e 4 seperte calls of getBookNameAsyncP(id, delay).then(/*log result*/).catch(/**log error*/)
my expectation was :
b
a
"error"
c
but instead i got synchronous result (a,b,c,error) and weird timestamps.
So can anyone help understand me what's going wrong here and how to the expected result?
ps : pastebin link in comments for better code highlighting8 -
How do I read Textbooks faster? I want to get smarter and stay productive, but the pace I'm going with this current book is depressing10
-
I have decided that massive natural selection events are a thing with humans. When resources appear to be getting low a group of people will prepare and wipe out a large portion of consumers. The most straight forward way is to create a crisis and then offer the "only" solution. Make that solution a weapon and you are done. The masses gladly accept the solution. At all times appear benevolent. Silence dissenting voices swiftly. Make the dissenters look like nutters and publicly humiliate them and apply labels to them. Labels are effective because it creates pariahs. People like to not be singled out and called names.
What do you end up with? People who distrust government and the institutions. I don't know how this benefits the orchestrators (how to spell) of the genocide. Perhaps if the numbers are small enough they can just be rounded up and killed by force rather than coercion.
I get the feeling this approach has been used in the past. Like it has been at least tested on smaller scales. Maybe even on past civilizations. Did we learn to do this from space visitors? I wonder.
2021 has certainly been an interesting year. I used to think people were just stupid. This year has confirmed that for me. But I am not sure stupid is the right word. They are certainly book smart. Maybe naive is a better word. I pray and hope 2022 turns out better for people. Maybe they start seeing signs they have been lied to by people they trust. Maybe not. When you are in the matrix it is hard to see through the facade. The matrix feels very real, until it doesn't.
Dev Goal?: To not be murdered by the matrix.8 -
i really fucking hate books, books are so annoying. if you comment on this rant with "lol" or some shit, how is this funny? i have an extreme hatred for books and this is not a joke, i am anti-book.30
-
I had some fun times in college.
Me: This book is too outdated, we need updated information for the video capture card presentation. I'd do it but this time I'm busy.
Teammate: I'll do it.
Me: oh wow really? Thanks!
Next week...
Teammate: here, take a look. I updated the information
Me: Yeah, I can see that all of those 10+ year old models have some fresh google search information in them. Thanks.