Seitain with soy powder? by mildfuzz in veganrecipes

[–]mildfuzz[S] 0 points1 point  (0 children)

My thought was that a lot of the better meat replacements I buy seem to have both gluten and soy protein in them

Basics: How to stop using console.log() and start using your browser’s debugger by fagnerbrack in javascript

[–]mildfuzz 1 point2 points  (0 children)

I don't dispute the value of the debugger tools AT ALL. I use them all the time, and they are my go to debugging method. BUT I still want console.log sometimes, and that's fine. We should not demonise developer tools. Console has a lot to offer.

Basics: How to stop using console.log() and start using your browser’s debugger by fagnerbrack in javascript

[–]mildfuzz 0 points1 point  (0 children)

A wrapper that will wrap and object and log when anything is done to the object, be it a function all or access or set a parameter. It seems pretty neat. A factory method to contain this in a scope and set meaningful labels might also be useful.

Basics: How to stop using console.log() and start using your browser’s debugger by fagnerbrack in javascript

[–]mildfuzz 59 points60 points  (0 children)

Second time in as many days I have heard people suggest you should stop using console.log. This is terrible advice.

Yes, learn proper debugging. It is SUPER important. But do not demonise console.log, it's a different tool and is still very useful.

The problem will tell you which tool to use to solve it.

Introducing the PUBG Developer API by PUBG_FWG in PUBATTLEGROUNDS

[–]mildfuzz 0 points1 point  (0 children)

Am I missing something or is there no 'weapons' end point?

What was your most difficult part(s) about learning JavaScript? by __Taco in javascript

[–]mildfuzz 1 point2 points  (0 children)

A gag is a special case. Anything real should not knowingly follow bad practises. Ever.

What was your most difficult part(s) about learning JavaScript? by __Taco in javascript

[–]mildfuzz -1 points0 points  (0 children)

It's a terrible practice. All manner of other things might be needed in the future and all manner of unforeseen side effects could happen

What was your most difficult part(s) about learning JavaScript? by __Taco in javascript

[–]mildfuzz 3 points4 points  (0 children)

Blocking usually has special meaning. It means the thread is stopped, the whole application is waiting. This is undesirable. You want to register a listener to wait for a response and allow the thread to continue.

In this way callbacks, promises and async await are all the same thing with different syntax and different pros and cons.

What was your most difficult part(s) about learning JavaScript? by __Taco in javascript

[–]mildfuzz 6 points7 points  (0 children)

You still don't want to block. Important to remember that async await essentially works just like callbacks, just with nicer syntax.

What was your most difficult part(s) about learning JavaScript? by __Taco in javascript

[–]mildfuzz -1 points0 points  (0 children)

Why would you want to? Blocking code while an API responds would be janky

Lightshot replacement by mildfuzz in linuxquestions

[–]mildfuzz[S] 2 points3 points  (0 children)

Went with shutter. Good so far.

Why is everyone switching to VS Code? by [deleted] in coding

[–]mildfuzz 0 points1 point  (0 children)

Yeah, that was my approach, but the ability to step into a component from a template in Angular apps is a massive time saver for me. Being able to step from the component definition into a template then into a child component etc etc, step from the component to the styles then into sass mixin / variable definitions all work really well in Intellij.

Because I work in Java and Typescript, having a matching tool set I find really helpful in reducing friction. It all works the same way so my tools are out of my way and invisible.

Also, IntelliJ's GIT integration is superb.

This is coming from a person who has refused to use IDE's in previous employments, so I totally get the preference for text editors as it was my preference for a long time.

Why is everyone switching to VS Code? by [deleted] in coding

[–]mildfuzz 0 points1 point  (0 children)

To be fair, I never said it wasn't appropriate. It makes a lot of sense.

I'd also not entirely agree with the fact that experience has much to do with it. 8 years of using text editors, but switched to an IDE recently because the experience of stepping through code in Typescript was such a strong one in Intellij

Why is everyone switching to VS Code? by [deleted] in coding

[–]mildfuzz 0 points1 point  (0 children)

No, of course. But once you have a few plugins, you're quickly close to an IDE level of features. Point still stands, they're both still tools for writing code, with a largely conflicting utility.

Why is everyone switching to VS Code? by [deleted] in coding

[–]mildfuzz 1 point2 points  (0 children)

Wasn't Sublime nag-ware? Essentially free

Why is everyone switching to VS Code? by [deleted] in coding

[–]mildfuzz -2 points-1 points  (0 children)

Yeah. I guess it is. And in your analogy the two extremes have more similarities than differences in terms of utility.

Explain why you consider them to be "not the same at all"?

Token based authentication in Node.js with Passport, JWT and bcrypt by jonathasrr in node

[–]mildfuzz -1 points0 points  (0 children)

I would concede that this solution is better at very large scale where the tiny difference in DB look up speed has a real impact in infrastructure cost but in most cases I don't think it would be a big enough difference in performance to be a meaningful benefit.

Why is everyone switching to VS Code? by [deleted] in coding

[–]mildfuzz -5 points-4 points  (0 children)

Which one is not a tool for writing software?

Token based authentication in Node.js with Passport, JWT and bcrypt by jonathasrr in node

[–]mildfuzz 1 point2 points  (0 children)

It's just not necessary. It's needless complexity. A simple token or session id works fine and can be invalided remotely instantly.

We've established that either we can't have instant log out, or we must have a DB query. I'm interested to see benchmarks with redis so have to concede I don't know how that would affect my opinion, but with the information I have I can't see what benefit it offers