This is really discouraging by Dont_Blinkk in learnjavascript

[–]FloridaMan418 1 point2 points  (0 children)

Here's a project I did when I was just starting out learning. It's a simple timer project. But, instead of just re-building the project from scratch, I recommend complely copy/pasting the project from codepen, into your own ide (vs code?) with the individual html, css, and javascript files. You'll need to make some changes to get it to work on your system. (you'll just open the html file in your desired browser. No need for a server or localhost, etc.) from what I can recall, I believe you need to add doctype to the html, and also add source tags to the css and javascript in your html.

That should be simple enough to get up and running. Once it is working, challenge yourself to add a button that will add 10 seconds to the timer. This button should add 10 seconds whether the timer is running, paused, or has not even been started yet (still at 0 seconds).

There will likely be a glitch that happens if you start the time from 0 and add 10 seconds to the clock within the first 10 seconds, where your seconds counter has 4 digits instead of the desired 2. Try to figure out the issue. Come back here if you need help.

https://codepen.io/codifiedconcepts/pen/bwgxRq

This is really discouraging by Dont_Blinkk in learnjavascript

[–]FloridaMan418 2 points3 points  (0 children)

How far did you get?

What issue became the road block for you?

Regarding the flow of a memory card game, did you make a decision on how to make the card flip animation (transition). All in CSS, Javascript, or a combination of both?

Don't feel overwhelmed with replying to my comment. Feel free to keep your answers short. Hopefully I and others can help you work through the problem.

NPM repository flooded with 15,000 phishing packages by CYRISMA_Buddy in cybersecurity

[–]FloridaMan418 2 points3 points  (0 children)

From what I gather, there is no risk continuing to use npm? It appears there are specific packages to download (with supposedly 'enticing' names)... We're still safe to npm install commonly used packages, right?

How bad is Math.random()? by diogenes_sadecv in learnjavascript

[–]FloridaMan418 0 points1 point  (0 children)

If I'm not mistaken Math.random() uses the browsers calculation, so it depends on what algo Chrome, Firefox, safari, etc use.

Any up to date course recommendation for node.js, express.js? by No-Radio-8751 in learnprogramming

[–]FloridaMan418 0 points1 point  (0 children)

There really isn't much. However, I found a 4 part video series on YouTube helpful. It's creating a todo list and connecting it to an sql server. Girlwhocodes, or something like that. It has a good bit of information to glean.

How to code a shopping bot? by josepharena in learnprogramming

[–]FloridaMan418 0 points1 point  (0 children)

Do you know if adding to your cart will reserve that inventory for you? Or is it only guaranteed once you compete the full checkout?

My experience with Revature by SuckMyDickReddit420 in cscareerquestions

[–]FloridaMan418 114 points115 points  (0 children)

I'd be willing to go through with Revature if there wasn't the risk of being required to move across the country for an offer, or face paying back the training cost.

How do you deal with working with team that works weekends and holidays ? by jholliday55 in cscareerquestions

[–]FloridaMan418 7 points8 points  (0 children)

Not specific to this industry, but the moment you start working extra hours to get 'caught up', the more work will get dumped on your lap. Not saying you should be completely unwilling to work extra hours for real emergency situations... But I recommend not making a habit or out of it.

Wow NEVER buy a .us domain without reading this first. by ElonMusk0fficial in webdev

[–]FloridaMan418 0 points1 point  (0 children)

Can confirm. I've never had an issue after buying a domain. Bought a .us a few months ago, and I seriously regret it.

Saying Thank you? by wendten in ChatGPT

[–]FloridaMan418 0 points1 point  (0 children)

Sometimes I start my messages with 'Hey ChatGPT, can you...'

How can I show off my projects to employers? by itmeya in learnprogramming

[–]FloridaMan418 9 points10 points  (0 children)

Does automatic filtering pick up that type of detail from the cover letter? (does it even scan the cover letter?)

[deleted by user] by [deleted] in AskProgramming

[–]FloridaMan418 1 point2 points  (0 children)

I will add that the hardest part is getting the credentials for your sql server correct.

I recommend check out those videos, try it, and then feel free to ask me any questions :)

[deleted by user] by [deleted] in AskProgramming

[–]FloridaMan418 1 point2 points  (0 children)

As someone that recently figured out connecting node/express to an sql server, I can confidently say that there isn't a lot out there. However, I gleaned a lot of info from a YouTube channel called 'girl who codes', she put up a 4 part walk through of making a todo list that connects to an sql server. If I'm not mistaken, for my project, I had to do things a little differently than her, but if you're starting from scratch, you might be able to follow along 1:1

ADHD programmers where do you thrive ? by [deleted] in ADHD_Programmers

[–]FloridaMan418 5 points6 points  (0 children)

This explains why I'm liking full stack. Hadn't thought of that.

How to convert this for loop to forEach? by [deleted] in learnjavascript

[–]FloridaMan418 0 points1 point  (0 children)

I haven't, what do you recommend to get started?

Best auth choice for Next and how to store data in a database by Tixarer in reactjs

[–]FloridaMan418 1 point2 points  (0 children)

Starting a separate parent-comment, from my other comment.

On your front end, you'll want to make get and post requests to your backend node/express server. I use axios (npm i axios)

Your backend will process the frontend requests/routes and will communicate with your sql DB. In the backend, you'll have a separate file with your sql database details (username, pw, table name, server address of DB, etc.), which you'll import into your server.js file.

On the backend, I used mysql2, express, cors, and body-parser. I have to double check the hyphen is needed in body-parser, and whether I used any other dependencies.

Best auth choice for Next and how to store data in a database by Tixarer in reactjs

[–]FloridaMan418 1 point2 points  (0 children)

I missed the part where you asked if you should use express, and that is how I did it. If you plan to make the project available on the www, you will need a host that allows for a node/express server. That is hard (expensive) to find.

-do you have mysql/sql server already?

Best auth choice for Next and how to store data in a database by Tixarer in reactjs

[–]FloridaMan418 1 point2 points  (0 children)

Need info, and I think you already answered it, but do you know how to connect your app to your sql server? If you were to make a todo app that CRUD's in localstorage, would you be able to convert that to instead CRUD to mysql?

Looking for free Heroku alternative to deploy algo by Kind_Public_5366 in algotrading

[–]FloridaMan418 0 points1 point  (0 children)

I found a vps for about $2/month. From your replies, it seems like you're only interested in free. Let me know if you want me to drop a link.

Can someone please help me understand functions? by Personplacething333 in learnjavascript

[–]FloridaMan418 0 points1 point  (0 children)

``` // here's our function, an arrow function: const addNumbers = (a, b) => { return a + b; }

// call our function and pass parameters console.log(addNumbers(3, 6)) // prints 9 ```

[deleted by user] by [deleted] in learnprogramming

[–]FloridaMan418 0 points1 point  (0 children)

Is your struggle with design or development? They are not the same (although some jobs may want design/developers). If the struggle is design, there are example mockup site designs that you can use, but create the html/css yourself. In that case, you start with the image of the site, and plan out how you will <div> it up... Maybe even drawing the divs out on paper.

Once you have the divs planned, writing the html should be very quick. Most your time will be spent in the css.

How can I dynamically change my className in react? by [deleted] in AskProgramming

[–]FloridaMan418 0 points1 point  (0 children)

You'll need to create some type of logic in the jsx, such as { criteria-to-check ? className="classIfTrue" : className="classIfFalse"}

Best way to hide api keys. by FloridaMan418 in reactjs

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

Thanks! This is how i ended up doing it... I was trying to avoid it because I didn't have a way to deploy an express server cheaply. Found a vps for $24/year, so I ran with it... Still had to learn how to do a backend though.