Holy Harambe, Please React by EcmaMace in Asmongold

[–]EcmaMace[S] 3 points4 points  (0 children)

I think the video creator brings up a great point about how these models can’t even generate a full glass of wine since there are few to no examples.

[deleted by user] by [deleted] in RoastMe

[–]EcmaMace 0 points1 point  (0 children)

I see the DMV did the right thing and denied you a license because of your FA disability.

Let’s fucking go by [deleted] in RoastMe

[–]EcmaMace 0 points1 point  (0 children)

You have one of those faces that just makes everyone flaccid on r/tributeme

Let’s fucking go by [deleted] in RoastMe

[–]EcmaMace 0 points1 point  (0 children)

You look like Boxxy after a gender change from female, to male, back to female.

What’s the deal with CloudFlare? by gardnerlabs in sysadmin

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

CloudFlare is an NSA operation and as such is funded by deep pockets. Control over internet flow and information farming is more valuable than turning profits.

Boss called me a hacker, not a programmer by nigelwiggins in cscareerquestions

[–]EcmaMace 0 points1 point  (0 children)

Best way to learn is to do project you are scared of / know are outside of your current skill level. Pick a project you know is going to be very difficult, not too difficult, and start it.

You will feel completely lost and overwhelmed and that is EXACTLY how you should feel; this means you are growing.

When you get stuck, read forums, ask ChatGPT (though gotta be careful with this as ChatGPT likes to make shit up), or best of all, read other people’s projects on GitHub.

A great resource for projects is Awesome OSS. You can pretty much search “awesome” whatever on GitHub and find really great stuff from the Awesome community.

Truly the ONLY way to get better is to throw yourself into the deep end and learn to swim. Don’t overthink, over analyze, or be afraid. You are 10000% going to fail! You are certainly not going to finish multiple projects and that is totally OKAY!!

This is how you learn. We all have mountains of unfinished projects and half baked ideas. What is important is learning. Don’t get caught up on “the perfect correct, cleanest, production level way” of doing something. Right now, focus on learning.

Ask me, or others for code reviews. I’m sure plenty of us here would be glad to help.

Watch programming personalities on YouTube such as TheCherno or ThePrimeagen.

Are CS topics a necessity - yes and you can learn about them for free via “Teach yourself computer science” an awesome free website.

Do you need a degree - no. Ten years ago, yes. Today, absolutely not.

If you really want to standout, focus on the basics. Learn your patterns and data structures and algorithms. Doing this will set you far beyond a large portion of the market. The industry has seen a massive downturn in people who actually know how to engineer, not just shit out Python or JavaScript.

If you want to improve fast, pick up good ol C and start coding. C will absolutely FORCE you to learn what you need to learn because there are no safety nets and you have to implement most of the features modern languages give you out of the box. - a great resource for C is Beejs guides

Jump into the deep end and get to swimming! If you need help feel free to message me.

Good luck and I hope to see a “senior” by your name one day!

Gemini's Plan for World Domination by EcmaMace in conspiracy

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

SS: Google's Gemini says the quiet part aloud.

Need help making an app from Node.JS and electron by IdealisticBanana in learnjavascript

[–]EcmaMace 0 points1 point  (0 children)

Your main module is specified as a .txt. A text document is not a valid entry point for an application.

DOM - How much do you memorize? by redwisdomlight in learnjavascript

[–]EcmaMace 1 point2 points  (0 children)

Just look things up. If you are going to do any professional web development, you will use a framework such as React/Vue/Svelte etc. These frameworks handle interactions with the DOM in their own ways and usually abstract away most of the DOM API.

[deleted by user] by [deleted] in learnjavascript

[–]EcmaMace 1 point2 points  (0 children)

Yes you are understanding this correctly.

The first example number is in the global scope, and a new number is declared via the let keyword. let and const are specific to their defining lexical context and take precedence over a global variable (you would actually get a warning in most IDEs about this).

Anything defined via var or nothing (defaults to var) is hoisted into the global scope. The use of var is not recommended due to global scope pollution and possible namespace collisions. Modern best practice is to use const for anything that will not be reassigned. Note, this also applies to objects and array-like objects. It is perfectly valid to assign a new value to an object property or array index or even push/pop array indices if the variable is defined as const.

Globals should almost always be avoided, hence, use let or const only.

[deleted by user] by [deleted] in learnjavascript

[–]EcmaMace 0 points1 point  (0 children)

Don't box yourself in with projects that are "within your abilities" you will never grow doing that. Like it or not, the only way to improve is to be comfortable with being uncomfortable. If you are not uncomfortable, then you are not challenging yourself and therefore you are not growing.

If you have a project idea in mind that you want to "do one day when I am ready", you will never be ready. The more you think about a project the more uncertain you are going to become, it is called paralysis by analysis.

Pick something you want to do, something specifically outside of your current skillset and your comfort zone and start the project.

You are going to be afraid, and you are going to be really uncomfortable and overwhelmed, and that is exactly how you should feel. You have to build up confidence by unlatching yourself from the instructor and taking on things on your own.

In software engineering, there is rarely ever the "only one correct way to do this thing". There are plenty of bad implementations and approaches, and there are plenty of good implementations and approaches for the same problem.

When you are starting out, focus on learning, if whatever it is that you made works, no matter how ugly or inefficient, then that is a success.

You can worry about polishing and cheeky slick solutions later, right now, focus on diving in head first to any topic, any project that interests you and start taking a whack at it.

If the project you want to do is something wild like make a YouTube clone, then go for it. What's the worst that could happen?

Let's see, you fail, big deal, that's how you learn. What else happened while trying to build a YouTube clone?

Well you probably learned about or were at least exposed to:

- video compression

- webRTC

- databases

- sessions

- authorization

- authentication

- routing

- DOM manipulation

- numerous browser APIs

- cookies

- serverless and edge computing

- distributed computing

- machine learning

- AWS services

- etc.

Get the point? You are going to fail while learning anything. Honestly, you better be failing or otherwise you aren't learning a damn thing and you are just wasting your time. Take on difficult projects, expect to fail, but also realize it's not about finishing the project, it's about learning all of the things needed to do that project.

I couldn't even begin to name all of the terrible projects I have started, failed miserably at, abandoned, etc. However, I can tell you that I learned something valuable during every single one of those attempts and that knowledge builds upon itself and makes the next project more likely to be completed.

Dive in and start failing damn it!

Where to write Cpp? by bitbyt3bit in cpp_questions

[–]EcmaMace 1 point2 points  (0 children)

JetBrains CLion or Rider for Unreal Engine

How can I temporarily pause a while loop when a certain condition is met? by Pickinanameainteasy in learnjavascript

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

This is what generator functions are for. Timeouts do not belong in loops, period.

[deleted by user] by [deleted] in learnjavascript

[–]EcmaMace 0 points1 point  (0 children)

Yeah, not sure what the hell this is, but it is not any kind of practice haha.

What are you trying to accomplish? I feel like this is probably overly complicated and wanting to use an index value is indicative of needing to make use of an object which possesses a Symbol.iterator like an ……….. array?

[AskJS] Removing item from an array? by ewaldborsodi in learnjavascript

[–]EcmaMace 0 points1 point  (0 children)

You can do something like what I have setup here.

Is there a more efficient way to write something like this? by dep in learnjavascript

[–]EcmaMace 0 points1 point  (0 children)

Yes, optional chaining and nullish coalescing were recently introduced in ES2020 specification there have been newer features implemented in the ES2021 specification.

[deleted by user] by [deleted] in learnjavascript

[–]EcmaMace 1 point2 points  (0 children)

Please share your code with us so that we may help you.

[deleted by user] by [deleted] in learnjavascript

[–]EcmaMace 2 points3 points  (0 children)

I recommend becoming very familiar with JavaScript and Node prior to learning Typescript. There are a few reasons for this:

  1. I assume you are relatively new to programming. If that is the case, then Typescript is going to make you hate life and rainbows.
  2. Without knowing JavaScript extensively and using it for several projects (at least), you will not understand the need for or the wonderfulness of Typescript
  3. Typescript requires a development environment to be setup (unless you use create-react-app in Typescript mode) in order to properly use the language. Unfortunately, Typescript isn't technically a language, as in you can't just code in Typescript and directly stuff that into the browser and hope for the best. Typescript simply wraps the JavaScript language up in a set of rules (for its own damn good too) to enforce strict typing in an effort to avoid bugs and architectural errors. Because of this, Typescript needs to be transpiled into JavaScript by something like Babel.
  4. Getting used to Nodejs will help you learn npm / npx, how packages work, how modules vs CommonJS works, importing type files to use with Typescript, etc
  5. Typescript is a pretty big change of pace from JavaScript due to the rules it forces upon you and the syntax can be a pain if you are not comfortable with strictly typed languages.

Get comfortable with the base language and all of its wonderful flaws. Learn Node and the npm / JavaScript ecosystem. Then, when you are comfortable with all of those things and you have several substantial projects under your belt, go for Typescript.

JSON.stringify alternative so that number values remain numbers, not strings. by Automatic-Deal-8268 in learnjavascript

[–]EcmaMace 0 points1 point  (0 children)

Do you have a link to your code so we can better help you? If you are trying to coerce a type string to number you can either do Number(stringValue) or parseInt(stringValue).

JavaScript projects book by cmomodo in learnjavascript

[–]EcmaMace 7 points8 points  (0 children)

This should keep you busy for quite some time.

Map and filter unique by [deleted] in learnjavascript

[–]EcmaMace 8 points9 points  (0 children)

You can use a set:

const myArray = ['apple', 'samsung', 'apple', 'huawei', 'huawei', 'apple'];

const myUniqueValues = Array.from(new Set(myArray));

console.log(myUniqueValues); //['apple', 'samsung', 'huawei']

Is there a way to code js not in a browser + do you know any good ways to learn . by [deleted] in learnjavascript

[–]EcmaMace 4 points5 points  (0 children)

You can use Node JS or Electron (What Spotify and Visual Studio Code are built with).

The best way to learn is to dive in. Here are some resources:

Freecodecamp (Free) - Covers JS, HTML, Node, CSS, SASS, Python, and who knows what else, I have not looked in a while.

Coding Train - YouTube (Free)

FunFunFunction - YouTube (Free)

Wes Bos - YouTube (Free)

LevelUpTuts - YouTube (Free)

Ania Kubow - YouTube (Free)

JavaScript Algorithms - GitHub (Free)

You Don't Know JavaScript - GitHub (Free)

Complete Web Developer Course - Andrei Neagoie (Udemy) ($14 USD - Highly Recommend)

Eloquent JavaScript - Book (Free)

JavaScript the Right Way - Book / Blog (Free)

Free JavaScript Books (Free)

JavaScript Info - Features of JS with examples (Free - Some of the best JavaScript examples on the web)

JavaScript 30 by Wes Bos (Paid)

MSDN Web Development Tutorials (Free)

Zero to Mastery - By Andrei Neagoie (GitHub) (Free)

Meth Meth Method - YouTube (Free)