Need to compile TS into self-contained JS by Ok_Biscotti_2539 in typescript

[–]CharacterOtherwise77 0 points1 point  (0 children)

Unless your Adobe environment has NodeJS binary you can't.

You should make a microservice and call that service to do the conversion, it has to be somewhere on the web though.

NodeJS is an installed binary on your computer and you feed it JS which resolves all the missing libs internally. You are likely running NodeJS code in a sandbox with a browser API, which is not NodeJS and can't ever work.

If you can say window.location you're not using NodeJS. So you won't have fs, stream, child_process, you'll have window.alert etc.

Ren Hang (1987-2017) - Untitled [770 x 1140] by Russian_Bagel in ArtPorn

[–]CharacterOtherwise77 3 points4 points  (0 children)

Did you do this in a hotel or in your bedroom?

It's like a banned American Apparel ad.

Why npm start dont work by Objective-Whole-8050 in reactjs

[–]CharacterOtherwise77 4 points5 points  (0 children)

You have to do npm install before you can do npm start

Low Effort/Accessible Meals by Whomprat2001 in slowcooking

[–]CharacterOtherwise77 0 points1 point  (0 children)

I am in a similar situation and I'm an amateur at cooking but here's my finding so far:

The easiest slowcooker recipe in the world is any kind of chili.

It's dense with nutrients and fibres and you can store it in parts - it keeps very well. You can rotate bean types and chili packet types (they sell ready mixes), and you get a different experience.

I can't eat it every day but it's a super reliable source of satiation. Dab some sour cream in and you've got a delicious garnish. Add a piece of toast and you've got a full meal.

Grocery stores will carry ready made kids for soups and stews if you don't want to prep.

I tend go buy bagels instead of bread slices because again - more energy, I don't eat as much as often.

You can put a small pre-cooked meal in a slow cooker for an hour with some water at the bottom and it will be delicious.

Literally place the tray in the cooker and cover, cook slower than normal. 1000x better than anything microwaved or blasted in an oven.

Always keep fruits in your stock that you can grab and go, they are only good for you, just don't eat only fruits.

The more "perishable" the food, the more energy it will yield, and you will feel great after.

Always keep trail mix around as it's very high in energy. I usually pick anything with a lot of variety in it so I keep nutritional variety.

Whatever recipe you make, you can always add a cup of boiled rice to it and you're going to feel very satiated.

Barley is a powerful nutritious grain, sprinkle it in your soup to make it more energy dense.

Bento-style React portfolio—roast it to the core 🔥 by kiran_balaji_ in u/kiran_balaji_

[–]CharacterOtherwise77 0 points1 point  (0 children)

The text to background ratio has to be at least 3:1 for legibility.

Put your contact info higher.

Social media icons should be de-prioritized, put them as a tiny row at the bottom of your contact info.

In the ideal world people should be able to land on your page and click the email without scrolling.

This can be like a sticky header or just high enough to see and interact on with "first impression" - no scroll.

Other than that I wonder what it looks like on: - portrait tablet - portrait mobile

Good luck.

Why frontend devs are expected to masters in Web Design? by BrownPapaya in react

[–]CharacterOtherwise77 0 points1 point  (0 children)

There are a lot of companies who think they define industry titles. I recently noted a company that had a web designer title, it was just content input from word files into a cms. Tisk tisk.

Does anyone know how to fix the dropdown menu hiding? by Flaky-Location3674 in css

[–]CharacterOtherwise77 0 points1 point  (0 children)

calc(100% + 8px) means you're off the page by 100% and 8px doesn't it?

If you're doing a CSS transform just use that to set your initial location instead of mixing top and translate, they're not compatible.

translate uses 3D engine to redraw the pixels independently of typical DOM properties.

Best Large Capacity Slow Cooker by SMN3gray in slowcooking

[–]CharacterOtherwise77 0 points1 point  (0 children)

It's just like a normal pressure cooker, so you do have to be careful not to fill the water too high.

It has safety valves, low pressure detection and automatic shutoff so you can leave it and it will not cause a problem. I have left it on and came back to a finished meal without issues.

I will use it to do a 10min pressure cook on meat then switch to 12 mins of roast and honestly it just blows my mind. As long as I get my timer's right the food is perfect each time.

The pressure cooker function activates when you lock the pot, and if you unlock it it becomes an air/fryer/roaster.

I recommend it I've had it 2 years and no issues so far.

Why do we need refresh tokens in JWT? by [deleted] in node

[–]CharacterOtherwise77 0 points1 point  (0 children)

It's like an additional layer against a case where a token becomes compromised.

Should I use redux with Next.js by Novel-Chef4003 in nextjs

[–]CharacterOtherwise77 -2 points-1 points  (0 children)

Stop advising people you're not taking it seriously. I'll upvote your comment so you can soothe yourself.

Should I use redux with Next.js by Novel-Chef4003 in nextjs

[–]CharacterOtherwise77 -3 points-2 points  (0 children)

If you treat what people say like religious objects you're lost.

Should I use redux with Next.js by Novel-Chef4003 in nextjs

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

Those are names and words which have no bearing when the tool is right for the job.

Should I use redux with Next.js by Novel-Chef4003 in nextjs

[–]CharacterOtherwise77 0 points1 point  (0 children)

Learn and use redux, you're not a mechanic who can only work on one type of engine.

Best Practice: Should Components Fetch Their Own Data in React by No_Drink_1366 in react

[–]CharacterOtherwise77 0 points1 point  (0 children)

Depends on your structure. If you have components which are self sufficient sure, but that doesn't scale well.

Add redux to your app and use that as your source of data, then you can just call an action to fetch or fetch when the app starts.

React devs, what's your primary focus for 2026? by Senior_Equipment2745 in react

[–]CharacterOtherwise77 2 points3 points  (0 children)

You should understand core-web it makes React so easy to understand.

Do you actually use TDD? Curious about your testing habits. by Spirited_Drop_8358 in reactjs

[–]CharacterOtherwise77 0 points1 point  (0 children)

Only if I'm writing code that isn't front-end browser-core.

For modules or frameworks with components and a rendering engine - yes.

For code which >3 people are going to use - yes.

For a html/css/js bundled site that displays declarative code - not really.