Details
-
SkillsSome binary stuff
-
LocationCyberspace
Joined devRant on 10/20/2016
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
-
Async in single threaded languages is easy. Not so much in multi threaded languages where you need to handle locking and race conditions.
-
@PepeTheFrog I was kinda the reverse once. Stated doing programming, then got stuck in ops/sysadmin/networkadmin. Took me 13 years to get out again...
-
Use two arrays then. One for locked and one for unlocked calls. Process the unlocked with a worker. Move the calls between them as needed.
If you want control over which locked call you fetch, use an object instead with what ever key you want to use to identify them. -
Save the handle when you call setTimeout() and use it in clearTimeout():
const timeoutId = setTimeout(function(){
console.log("Hello World");
}, 2000);
clearTimeout(timeoutId);
console.log(`Timeout ID ${timeoutId} has been cleared`); -
I am sorry you were delt those cards in life. I lost my father to cancer when I was around 20, after he'd been sick most of my teens. Sucks to not having that fundamental pillar of support your father is supposed to be.
-
@magicMirror well, I'm close actually, we dev the app, and manage everything above the VM layer. Puppet, scripts, secrets etc.
-
@cygnus Prefixing variable names with their type hails from days yonder when your average IDE was a more or less dumb text editor. It's called hungarian notation if I remember correctly. Made it a hell of a lot easier to tell what type you worked with.
Take a look at some old MS C++ examples of creating windows and you'll find pointers to window objects which start with hwnd, like hwndSomeWindow. I.e. handle for window XYZ.
Fair enough, today that might not be needed, and might be used in a misunderstood way... Or just as plain fuckery 😎 -
@Floydimus thanks man, crossing my fingers 🤞, but I'm not holding my breath 😉
-
Never heard of that one, but I was schooled in doing the third normal form to reduce duplication of data. Never went deep enough in that class to cover the exceptions like orderhistory, caching, storing calculated data vs calculate on the fly etc. was a computer class in what equates to Senior High School. Never covered the normal forms or any database theory in my later studies taking programming classes... kinda funny really when I think about it.
-
@iiii @-ANGRY-STUDENT- He implied that the passenger died from eating the fish...
-
Fizzbuzz?
-
Love that movie. "I had to do it, brother. You had become such an asshole"
-
I hear you! First real project I had at a company as a new hire was supposed to be a central reporting thing, much needed as such, so I poured everything into it. It was replacing a verly manual process of feeeding Google Forms with a lot of shit, to where most of it was fetched automatically from various systems. Worked great, everyone liked it.
2 months after it was launched, they canned it because upper management redesigned their flow-of-information workflow architecture flow chart whatever to catch all numbers they cared about from a few other systems... in a manual fashion... 🤷♂️ -
Hm... I thought it was... 🤷♂️
-
@Root well, omniscience is not a requirement, but a willingness to be open and share knowledge, experience and opinions, sometimes firmly, sometimes vocally, sometimes modestly, as well as actively participating in the community while showing a willingness to learn is really what it is about ☺️
-
@Root wow, thanks 😁 That means a lot coming from you, who to me are as close to an idol as this platform serves up.
-
When I'm working I usually commit everything in one bit WIP commit, and when the feature is done I use interactive rebase and interactive staging to separate logical commits. Perhaps one where I put the migration for adding background tasks, one for the feature itself and one for formatting fixes.
Interactive staging `git add -i` lets you pick chunks of code rather than whole files and usually makes good guesses as to what the relevant code in one chunk should be. -
Yeah, it's because you are used to hearing your voice both through your ears and your cochlear at the same time. If you cover your ears and speak, you still hear yourself, but only using the cochlear. Recording and playing back (given decent equipment and setup) gives you how it sounds to others. The cochlear gives you a bit deeper sounding voice that whats real.
Funfact: Beethoven was deaf, but he discovered that using a metal rod attached to his piano, he could still "hear" the music when he bit down on the rod, allowing him to play and compose music while deaf. -
Also make sure your cover letter is personalized towards the company you are applying to. Generic letters are typically rejected in some kind of pre-sort as they appear to clearly be fire-and-forget, the CV equivalent of spam.
Make sure you write about what you would bring to the company, what excites you about them or the position and some bullshit like that. Doing your homework makes you stand out, but it costs you volume. Quality over quantity is preferrable in most situations though.
Also, check out some remote work sites (good lists on github for this), as many companies recruit world wide, which increases your chances. -
@synemeup I'm not opinionated on the topic really, but it has a lot of the Rails goodness, only in Node. I just assumed that Rails was a no-go.
Lots of other web-shop-in-a-box things out there, so there should be something for everyone.
I would probably recommend starting with a traditional monolith, good ol' server generated html with a thin JS sprinkling on top, rather that go full React-apeshit and stuff. Just so much easier to start small. Server side session handling is also easier than AJAX sync, JSON web token and all that jazz.
Keep it simple, don't build for a babillion users just yet. A cheap server with front served by back and db etc will scale amazingly well with todays beefy HW available in the clouds. When its time for production, go with double server, loadbalancer and either sticky sessions or sessions stored in a synced or external redis. Cache in front of db in memcache for products, orders etc for stuff that gets more requests than once in a blue moon -
I hear Shopify thrown around a lot, but that is a full service. Without knowing your stack I can throw Sails.js out there, which comes with a lot of stuff ready, and ... um... well... Woo Commerce on Wordpress... *please dont hurt me* 😆
-
Sounds like a developer to me 🤷♂️
-
@GiddyNaya Ah, there we have it 😊 Had to be a mistake. Looked like a const or something.
-
I'm sorry, but "...>© ASS_project, ..."?!? Not even a variable... 🙃
-
What she said --^ 😏
Seriously though, Ruby et. al. is pretty awesome. I've been doing both green- and brownfield development on Rails going on year and a half now, after too much Node and PHP in my previous place.
I love the change, and even 8 year old mastodonts that's been upgraded from Rails 2.x to 5.x with lots of old code left, is still somewhat manageable thanks to Rails. Can't think of another framework that would age old code less. -
@qviper Not to be an alarmist, but wouldn't that algo and model, when finished, be able to fake real signatures? Like deep fake for handwriting?
-
@hjk101 been there, done that 😉
Now I'm bashing my head against fmt.Scanline which, in a loop, triggers one error per character entered that is not the correct type. For instance, expecting integers, but getting letters. Normally I'd expect the rest of the stdin to be cleared on error, but it does not. This makes my code print the whoopsie-message once per char...
Sure, the internet talks about other packages solving this, but the particular case I'm working on wants Scan or Scanln... 🤷♂️ -
Funny you mention that... Just had an in-house recruiter from a local start-up contact me about a golang position, which I don't know either. Thankfully she stated up-front that it was not expected that I know it, but was willing to learn. Same with the GCP stack they use.
The up-front honesty and clear willingness to let you learn on the job is always a major plus in my eyes. And it was refreshing to talk to a recruiter who contacted me through SO rather than LinkedIn.
YMMV I guess. -
@Jilano hehe, sort of 😁If I get a full movement bar, as in I haven't moved my lazy ass for too long, it shows damaged limbs.
-
Docker images? 🐳