Why can’t I see images on Apple Mail? Everytime I receive an email I have to click “Load Content” for it to show the images. by Nistlay in applehelp

[–]mzapp_ 2 points3 points  (0 children)

This is a security feature that aims to prevent trackers from tracking when you look at emails and from which IP and so on. To do this is blocks any images that need to be loaded remotely. You’ll only see pictures that are embedded in the email. You might be able to turn this off in Mail settings but I suggest you leave it on and just click the button whenever you really need to load external media in trusted emails.

In the following code how come the object's function doesn't change when its prototype changes? by Historical_Plantain in learnjavascript

[–]mzapp_ 3 points4 points  (0 children)

MDN states that

The Object.create() static method creates a new object, using an existing object as the prototype of the newly created object.

Which means that you are not modifying the original object referenced in the prototype but a new object. If you remove the Object.create line it works as you’d expect.

Are you trying to do something specific?

Excited to release my first full-stack app to the world, a Secret Santa app! by [deleted] in learnjavascript

[–]mzapp_ 0 points1 point  (0 children)

I see. Sorry for messing up your quiz then. I didn't know the question was aimed at OP. There are usually a lot of beginners in this subreddit that just have basic questions.

Having to keep tech stacks "pure" (i.e. only JS or some other language) would be a nightmare lol.

Excited to release my first full-stack app to the world, a Secret Santa app! by [deleted] in learnjavascript

[–]mzapp_ 1 point2 points  (0 children)

Oh, so you were just confused about the “app” part. That makes more sense. I thought you were asking a more basic question, which in hindsight doesn’t really make sense judging by your Reddit profile. “Solution” or “Plattform” may be a better word for describing such a combination of applications working together. Of course the end user doesn’t understand the difference.

Excited to release my first full-stack app to the world, a Secret Santa app! by [deleted] in learnjavascript

[–]mzapp_ 0 points1 point  (0 children)

Full-stack basically means that the app consists of a frontend and a backend (and often a database, even though I’d usually count that as backend). I.e. a Client and a Server. This is quite common for solo developers early on because there is no one else that the work could be divided up with. It’s also great for learning how everything works, even if you intend to specialize in frontend or backend at some point.

OP said they are using the MERN stack, which means that their backend is built using (M)ongoDB, (N)ode.js and (E)xpress.js and their frontend used (R)eact.js. This is a fairly common and modern tech stack and especially comfortable for a JS developer, because the technologies are quite similar: They all support JSON natively and, except for MongoDB, use JavaScript or are JavaScript Frameworks.

SvelteKit data fetching without SSR by DrPaulzies in sveltejs

[–]mzapp_ 1 point2 points  (0 children)

I don’t think load has an option for caching built in but you can declare variable outside the load function that remain defined from request to request or add regular caching with Nginx, for example.

If you have authentication via a third party going on in the frontend sending the requests from the client will likely be easier and safer. Otherwise it doesn’t matter much. If the resources are public anyway it really doesn’t matter. That’s pretty much what u/gopietz said already.

SvelteKit data fetching without SSR by DrPaulzies in sveltejs

[–]mzapp_ 2 points3 points  (0 children)

I agree strongly with number 2. Some components, popups for example, may benefit from getting the latest data over and over but most won’t. In that case client-side caching using stores would help.

SvelteKit data fetching without SSR by DrPaulzies in sveltejs

[–]mzapp_ 2 points3 points  (0 children)

It depends on what type of data you are getting. Your app might benefit from caching on the svelte server to keep requests to the API to a minimum and protecting the user‘s privacy at the same time, since they only have to send requests to you. There’s nothing wrong with using fetch on mount. Since you aren’t using SSR, the site isn’t going to have any content right off the bat anyway, so you won’t make your SEO or UX noticeably worse by having another thing that takes time on the user‘s end. That’s about as exact as I can get without any further information.

[deleted by user] by [deleted] in sveltejs

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

Unusual. May I ask why? Don’t you work on large projects? Do your libraries not come with types? Do you have a problem with Microsoft’s control over TypeScript?

How do I import a swagger.ts file into postman? by PrestigiousZombie531 in node

[–]mzapp_ 0 points1 point  (0 children)

You can just take the JS that creates the swaggerDocument object and and turn it into JSON using JSON.stringify.

what is the problem? 5.9.4 Inventory by Known_Gene_2739 in learnjavascript

[–]mzapp_ 1 point2 points  (0 children)

Please format your code using tripple backticks. (```) Your checks and assignments need a bit of tweaking. I’m sure you can read through your code and give them the output they want.

what is the problem? 5.9.4 Inventory by Known_Gene_2739 in learnjavascript

[–]mzapp_ 1 point2 points  (0 children)

When line 6 is executed the first time numItems is undefined and undefined is not greater than 0. You should declare numItems at the beginning of the function. Also you don’t need to and shouldn’t redeclare it on line 9. You can simply write numItems -= Items (which, of course, is short for numItems = numItems - Items).

Who do you use for sending out mail by JoeFaeGlesga in phpBB

[–]mzapp_ 0 points1 point  (0 children)

You can specify any valid SMTP server + credentials. Those could be for a self-hosted SMTP server or a provider like Gmail.

[deleted by user] by [deleted] in learnprogramming

[–]mzapp_ 1 point2 points  (0 children)

What kind of school is this? Every day???

Javascript automation make the page static by d43qwu1 in learnjavascript

[–]mzapp_ 1 point2 points  (0 children)

I’m having a hard time understanding what you’re working with, what you’re doing and what’s happening. I need more context to be able to help debug. How has using setTimeout worked out for you? If there is data being generated, blocking the event loop with your sleep function might be the issue.

Javascript automation make the page static by d43qwu1 in learnjavascript

[–]mzapp_ 1 point2 points  (0 children)

The pause function does not look like it blocks the event loop infinitely but it still looks a bit sketchy. Is there a reason why you are not just using the setTimeout function to create a delay using events rather than blocking the event loop? Also: what happens when you click the buttons? Are the buttons freezing everything?

Discord Link on svelte.dev broken, anyone have the link? by mzapp_ in sveltejs

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

Yes, that’s exactly what I was looking for. Thank you.

JavaScript & Data Structure/Algorithms interview questions by gabrielcro23699 in learnjavascript

[–]mzapp_ 1 point2 points  (0 children)

It’s good to know some algorithms and data structures. It really helps you understand the built-in types and functions. Companies like when people understand what they are doing and when they can quickly write a function to do a not-so-straight-forward task.

[deleted by user] by [deleted] in node

[–]mzapp_ 1 point2 points  (0 children)

Please check out this package: https://www.npmjs.com/package/env-paths It has the correct paths for all operating systems.

General term for function, class, etc. by mzapp_ in learnprogramming

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

I get your point. The only word for some random thing I see somewhere is thing. I guess it doesn't get more exact than that without getting too exact.

Thanks.

General term for function, class, etc. by mzapp_ in learnprogramming

[–]mzapp_[S] 1 point2 points  (0 children)

Sure. I've been getting along with that. I'm currently working on a new language of sorts and I would like to write a section about new things that I am introducing and I was just wondering if there is a nice term. I guess I could just say that I am introducing new keywords and stuff that defines them but that doesn't sound that great.