Details
-
LocationGermany
Joined devRant on 1/1/2018
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
-
Without really knowing what specifically you are doing or having implemented it myself, isn't async at its core "just" an event loop/queue of tasks?
Code runs in a single thread. Depending on the async part, like timers, web requests or file writes, they either use an async API themselves or run in a separate thread/process. Once they are done, their result is pushed to the queue. Once the main thread finishes a task or hits an await, the next queue item runs.
That's just my understanding though, idk if it's right or useful. -
@Hazarth I'm using Dart and indirectly JavaScript. Neither of which have pointers and both should be memory safe
-
For a personal project it doesn't really matter. Almost anything can get the job done. Just go with something you understand and is easy to use.
For my first chat app I stored everything in JSON files, because that was all I knew.
Only use some specialized tools if you specifically want to learn it or if your app is supposed to handle millions of messages per day. -
@Hazarth Yes, and that makes querying for certain tags or values a huge pain
-
Felt the same when learning it. A solid type system like Java and (almost) as dynamic as JS. Plus some cool extras. Love the language
-
CORS about to ruin all plans
-
@IntrusionCM Doubt it. It's a popular open source repo. Anyways the context shouldn't include the all 9 previous message spanning almost 2 pages.
-
@Grumm `dir` in cmd and `ls` in linux return the list in the correct order.
But I guess this is necessary in order for "9" to appear before "10" -
@C0D4 I didn't choose the names lol
It's what I have to deal with -
@Grumm Good to know. Still annoying
-
Well flutter apps have to include their own engine and aren't using any native UI components. It's a completely different system
-
@AmyShackles Yes, but I didn't want to dox the person
-
Just saw that the author has been active for many years (this is a recent comment) and is in the top 1% of stackoverflow (whatever that means)
-
Even better: tkinter has "NO". So when you want to autocomplete "None" you have to enter 3 letters to get non tkinter results
-
@theKarlisK I wouldn't have an issue with universities and their focus on academia if a degree wasn't a requirement for pretty much any job where I live.
-
@Fast-Nop Only 500kb and 300kb? That would be great. For most websites nowadays it's several MB with multiple files across multiple domains
-
Thank you for your suggestions but I have mentally moved on and don't want to touch it again. I can work without this one package.
-
For windows "Everything" is a great program. It can search through terrabytes within milliseconds. Amazing what indexing can do
-
The are a lot of way better 3rd party reddit apps. My favorite are Boost and Relay (Android). For iOS there is Apollo
-
If it's copyrighted material and you don't use a VPN you can get into trouble.
Also don't use uTorrent, it's malware (I have heard), instead use qBittorrent -
The first time I decided to install Linux (Ubuntu) I chose the dual boot alongside windows option. I didn't want to get technical and just keep things simple.
To my surprise THE INSTALLER HAD THE AUDACITY TO WIPE MY ENTIRE 1TB DATA DRIVE!
Then I spent the next week recovering 1Tb of data. Fun times -
@killames The inner most call without await should not be blocking. No await, no blocking. The only way for it to freeze is to have a computationally intense task right away (while (true) {}), that will block.
-
@killames Maybe a simple example would help me understand. I am wondering how it can freeze
-
if you mean
const f = async () => {
asyncFunc();
}
await f();
Then asyncFunc() will get executed but it won't be awaited/blocking (you could add a .then() to it too get the return value) -
Have you tried Pillow/PIL for python image processing? I remember it being fairly easy to use
-
I remember 6 years ago there were already unskippable ads (up to 30s). So not new. I also have blocked all ads for a few years now
-
Ah yes I love these tutorials "Get started with X with just 10 lines of code!" (by installing 100MB of dependencies)
-
I am not a designer, but here is what I did on a recent project of mine (for desktop). This is for a main image of a post.
img preferred width = post width
img max height = x% of screen height (or maybe a fixed value)
if img too big for max height, scale to fit (in css I used object-fit: contain)
I don't know about mobile, but this worked for me -
I have a setup where in production mode the SW caches normally and in development it doesn't cache at all
-
I never had problems solving the recaptcha. You just have to behave as if you are mentally challenged. Move the mouse in circles and take some time clicking on the images. They don't let you through because you clicked the right images it's about how you clicked them