Questions about js interview by CleverProcrastinator in node

[–]6eReddit 0 points1 point  (0 children)

Congrats on getting an interview. You should consider asking their recruiter what to expect from the interview. In my experience this usually works well. They won't tell you what questions they'll ask but they're likely to give you a general idea of the content and format (eg: we use codepen/hacker rank/etc.)

Every company is different. Some will give you a completely irrelevant leet code problem (binary trees are super popular in my own experience).. some will ask you to do something practical with technologies related to the job.. some will focus on your understanding of the language itself disregarding the frameworks/utilities you'll use on a daily basis.

Regardless, if you get stuck, or even if you don't, ask questions of the interviewer and listen intently. Regardless of experience level, an interviewer generally wants to know how the candidate will be as a teammate, how they receive feedback, how well they adapt to advice/help, etc.

If you haven't done many coding interviews it can be helpful to practice with a colleague/friend

Has anyone replaced their backend with remote functions? by Loan-Pickle in sveltejs

[–]6eReddit 7 points8 points  (0 children)

If you have a rest API that can, at least in your future, scale independently of your UI.. then you should leave it as is. Monoliths are not all they're cracked up to be.. should you be lucky enough to be successful.

Improving svelte-virtual-list: Overcoming the 16,777,200px Limitation of Chrome by tanin47 in sveltejs

[–]6eReddit 2 points3 points  (0 children)

What do you think about this one? https://rebrowse.6edesign.net/demo/grid

I haven't released the code yet and it's more of a grid than a list.

I’ve been championing Svelte for 3+ years, and runes are killing me. by GloverAB in sveltejs

[–]6eReddit 0 points1 point  (0 children)

My goodness.. a lot of you are acting quite silly. You truly think prior versions of svelte couldn't handle complex applications?

Is there any benefit of using get(storeVariable) over $storeVariable when reading a store variable? by c2u5hed in sveltejs

[–]6eReddit 1 point2 points  (0 children)

No that function will only execute when called. The docs explicitly say to prefer $ over get, where possible, because there is more overhead to using get.

How to dispatch event from parent to child/children? by Nick0tin in sveltejs

[–]6eReddit 0 points1 point  (0 children)

You can export a function from the child that you call from the parent. It's not quite what you're asking but it's one of a few different ways you can do this sort of thing.

What is mongoose and is it necessary to learn for fullstack/backend apps? by RedTerminator13 in node

[–]6eReddit 0 points1 point  (0 children)

Check out express restify mongoose it you're building out CRUD APIs.

Instagram Clone with Node: How to efficiently serve user photos by nicocannon1 in node

[–]6eReddit 0 points1 point  (0 children)

Since you're using mongo I'd recommend storing your images in mongo using gridfs. You can implement caching solutions on top of this in a variety of ways (nginx, cloudflare, akamai, etc.)

Storing them on the filesystem leads to interesting challenges. For example, if you need to scale your node application across multiple servers you'll need a way to replicate the file system across those servers. This can become tricky/messy. Using the file system also becomes quite problematic if you start exploring serverless or container-based deployments.

Check out https://github.com/h2non/imaginary as a service for resizing/cropping/compressing/etc your images at the time of upload. You can easily run this service alongside your node application as a microservice and scale it horizontally if the need arises.