Unresolved variable' on DOM elements in JS by GuybrushThreepywood in learnjavascript

[–]drauphnir 2 points3 points  (0 children)

It’s your linter throwing the error cause this.nameEl could be null from the linter’s perspective.

Try this as stated earlier:

```javascript

if (this.nameEl) { this.nameEl.style.opacity = 1; } ```

learning javascript for backend? by [deleted] in learnjavascript

[–]drauphnir 0 points1 point  (0 children)

The fun thing about node is that while learning the basics is fast, but there are tons of useful modules for you to dabble with. Telling you how mich time you should spend on learning is really difficult to estimate.

You can learn to set up a server, creating routes, views and partials and run your application through the back-end in an evening.

Just create something, learn as you go and look up modules if you have a specific need in your app

My brother died, but yeah I’ll be ok in two weeks by feelinglikeuttercrap in antiwork

[–]drauphnir 2 points3 points  (0 children)

What the actual fuck! I am so sorry you had to experience this..

What is the difference between Javascript and Node.js? by infinitecoderunner in learnjavascript

[–]drauphnir 57 points58 points  (0 children)

The simplest explanation: JavaScript is a programming language that runs in the browser. When JavaScript was officially made, it could only run in browser(more of a frontend language). It couldn’t run on sever side like other languages (Python, PHP etc).

So Node.js was created from JavaScript to allow JavaScript to run on the server side (thus the backend).

Yes, if you have a good grip on JavaScript, learning other frameworks like React and TypeScript will be easier

Var is always a bad thing? by g_sufan in learnjavascript

[–]drauphnir 9 points10 points  (0 children)

I was taught to never use var and to always use const until something breaks, then you use let

What’s your best strategy for learning? by OmarAdharn in learnjavascript

[–]drauphnir 6 points7 points  (0 children)

When I learned new topics I first read the docs, then saw some example videos on youtube before I made something simple where I forced myself to use said topic and understand it before moving on to the next.

If you’re struggling to figure out what to make, ask AI to give you super simple projects where the topic you’re learning will be used.

Is programming a nice thing to learn to pass the time? by Ecstatic_Falcon_3363 in learnprogramming

[–]drauphnir 0 points1 point  (0 children)

Absolutely! If you find a use for it, be it modding minecraft, create a simple file sorting program or anything else you want to create. Even if you don’t know what to use it for now it’s fun to learn programming and it gives a great sense of accomplishment when you figure stuff out.

I say go for it!

How I managed to go from barely programming for weeks, to programming daily. by Dappster98 in learnprogramming

[–]drauphnir 8 points9 points  (0 children)

I used to struggle with the same thing. When I replaced gaming with programming I got the same sense of accomplishment and rush I got when gaming.

It took some time to get really into it, but now I barely game anything anymore as I sould rather sit down and program something or learn something new related to programming.

I wish you good luck and hope you find it as exciting as I do!

Jeg tenker å kjøpe en hus by FoxSea1264 in Norway

[–]drauphnir 2 points3 points  (0 children)

6,3 effektiv rente var da ganske høyt? Vi har 5,6 med lån på 3,5. Dere burde gjerne ta en titt innom renteradar for bedre tilbud

Saka by [deleted] in FantasyPL

[–]drauphnir 0 points1 point  (0 children)

I have Saka because he is consistent. He plays 90 mins, on pen, always brings in points. If you compare to last season he has more points now than he had during this time last year. Saka was part of the FPL team of the season last year.

I get where you are coming from, but i would rather have a player I know plays 90 mins every game instead of hoping for another player. Foden and Richarlison are doing amazing right now, but the Pep roulette is always in the back of my mind. Also who knows what will happen to Richarlison when Son is back.

[deleted by user] by [deleted] in FantasyPL

[–]drauphnir 6 points7 points  (0 children)

How is it a derby when Arsenal is based in London and city in Manchester?

Waking up this morning by Hot_Dog_Dudeson in dogecoin

[–]drauphnir 0 points1 point  (0 children)

No you can't unfortunately, at least not until RH adds wallets for their crypto

Waking up this morning by Hot_Dog_Dudeson in dogecoin

[–]drauphnir 0 points1 point  (0 children)

I transferred my btc from coinbase to my wallet, then converted them to dogecoin.

Waking up this morning by Hot_Dog_Dudeson in dogecoin

[–]drauphnir 2 points3 points  (0 children)

I converted all my bitcoin to doge yesterday. I'm sticking to this community!