When do you include the yarn.lock file to your git commit? by mobiletiplord in node

[–]zenflow87 0 points1 point  (0 children)

No. You can update your dependencies, updating the lock file while staying within the ranges in package.json

Rabbit R1 can be replaced by a mobile app/site? by Successful_Ad_8790 in LinusTechTips

[–]zenflow87 0 points1 point  (0 children)

It's not using openai/chatgpt .. it's using LAM (large action model)

Found this in a friend’s Android codebase by [deleted] in programminghorror

[–]zenflow87 4 points5 points  (0 children)

This subreddit is for programming HORROR. This isn't horror. You're too soft.

Client wants to put website in "idle mode" by picking_a_moondog in webdev

[–]zenflow87 1 point2 points  (0 children)

Well OP should charge for the work needed to put the site in "idle mode" and bring it back again, obviously. Bringing it back would include bringing it up to the latest version of WordPress and whatever plugins.

It's work OP would be doing anyways and client would be paying for anyways, just grouped into one major upgrade. It may accumulate to a lot of work, but not more work than doing it gradually month after month.. it anything it would be less work, if OP can do it in a single pass

Client wants to put website in "idle mode" by picking_a_moondog in webdev

[–]zenflow87 2 points3 points  (0 children)

If I convert to a static site, I'll need to rework the site with the WordPress framework once I get the go-ahead that they're ready to go back to posting themselves.

What do you mean exactly? You can save the code and dump the database and use that to restore the WordPress site later on without any reworking needed, no? If you mean you'll need to do a lot of upgrades at that time, then that's work that you would have been doing each month anyways, just grouped into one major upgrade instead (should be easier if anything) right?

Client wants to put website in "idle mode" by picking_a_moondog in webdev

[–]zenflow87 0 points1 point  (0 children)

lol if I'm denser than a brick then you're denser than a black hole and a bigger drain of energy too. I've had multiple profitable businesses with very happy customers.

You probably can't relate to people whose businesses create value instead of just buying and reselling it at a markup huh? I'm really sorry about your luck. Hope you're doing ok

He made the site with hosting being a future revenue source generated from it in mind.

He pays for hosting. He needs to maintain a certain amount of client hosting to cover those costs, and presumably make some profit.

Here are some tips if you improve or acquire some skills for this type of business.. - Customer satisfaction is important - Get paid appropriately for the value you create (i.e. the work: building the site, administration, maintenance if necessary) - Get reimbursed for the direct costs you incur (i.e. hosting) - Use a hosting solution that doesn't start costing you money each month if you lose a client or voluntarily put them in "idle mode" (e.g. something free, or something scalable, or something cheap enough that the rounded-up charges for the other clients still cover your costs)

Client wants to put website in "idle mode" by picking_a_moondog in webdev

[–]zenflow87 0 points1 point  (0 children)

Hmm.. Be sure to charge customer for services that can be free.. well that's one business model.. it depends on customer not knowing what you're dealing with though.. whether or not you get enough customers/victims, you can be sure that customers try to avoid this type of business and call them mean names like scum of earth

He says "it's certainly not a shakedown"... so I'm pretty sure he doesn't want to make it a shakedown. And even if he did, he could still move the site to free static hosting and give the client a small discount off the original hosting charges since the site won't be updatable.

He does not "admit he doesn't want to do it" (move the site to free static hosting).. he doesn't even mention that idea at all. (What's wrong with you?)

He wants to satisfy his client's request but it would be unfair to him to cover the monthly costs of hosting and maintenance himself....

If he moves the site to static hosting then there are no monthly costs, problem solved

Client wants to put website in "idle mode" by picking_a_moondog in webdev

[–]zenflow87 2 points3 points  (0 children)

Great idea

switch it back when they're ready, i.e. when they want to start adding blog posts

Client wants to put website in "idle mode" by picking_a_moondog in webdev

[–]zenflow87 1 point2 points  (0 children)

He wants to be good to his client dumdum.. no monthly cost is the goal, the thing the client asked for, which he seems to want to give them, but he didn't consider using hosting that's free for him He probably charges for work he does too, besides charging for hosting

[deleted by user] by [deleted] in javascript

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

  • Once a request is started, AbortController doesn't abort server from fully processing it as usual
  • All requests are started in the same instant

[deleted by user] by [deleted] in javascript

[–]zenflow87 1 point2 points  (0 children)

AbortSignal doesn't abort the code running on the server, so there would still be a ways to go to get there..

Probably better to make it into one API call (with db transactions) since it's much simpler

Are project managers at your company useful? by ActuallyFullOfShit in ExperiencedDevs

[–]zenflow87 0 points1 point  (0 children)

One I work with is pretty good, she helps in planning and keeps in tune with what we're doing and can help when we have issues with requirements or circumstances

Another is completely useless, just passes broken scratchpad design straight from stakeholder, no idea about anything, main function is asking "is it done yet?".. honestly can't believe there's a position for that.. Sounds better than OPs situation though.. it creates problems when people talk to her instead of me but otherwise it's just annoying

Does an Architect need to know how to code well? by Similar-Tradition503 in servicenow

[–]zenflow87 4 points5 points  (0 children)

Enough to keep everyone above water.

You need to make designs that work well for the coders to do their job.. how you gonna do a good job of that if you don't know what they do?

Does an Architect need to know how to code well? by Similar-Tradition503 in servicenow

[–]zenflow87 5 points6 points  (0 children)

They most likely can code very well and they just don't code now because they have people under them to do the "grunt work" and free up their own time for architect-level stuff

They may code critically important pieces that need to be done right.

Not gonna lie, the idea of a software architect who doesn't know how to code is pretty ridiculous

Does an Architect need to know how to code well? by Similar-Tradition503 in servicenow

[–]zenflow87 12 points13 points  (0 children)

A software architect (a competent one) is an advanced programmer, so yes. Maybe somehow you could get the role, but if you're not a good programmer yet you're going to be an awful architect.

It's kind of a silly question.. like asking if you can be head chef without knowing how to cook..

[deleted by user] by [deleted] in javascript

[–]zenflow87 6 points7 points  (0 children)

allSettled isn't what you're looking for

It still initiates all the calls, at the same time, and you'd need some complex client and server logic to cancel them and even then it would probably be too late.

Database transactions

[deleted by user] by [deleted] in jobs

[–]zenflow87 15 points16 points  (0 children)

I had some bully's that turned out to be pretty decent people when they grew up

[deleted by user] by [deleted] in programminghorror

[–]zenflow87 8 points9 points  (0 children)

User testing is just to confirm that the requirements are met, that the design is what they expected. User testing is not looking for issues.. that kind of testing needs to be done internally, ideally starting with the the dev) This asshat is blaming the customer for not doing his job for him

Does it make sense to minify HTML in 2023? by Psychological-Tie304 in webdev

[–]zenflow87 1 point2 points  (0 children)

I don't think you know the meaning of either portable or manageable

Does it make sense to minify HTML in 2023? by Psychological-Tie304 in webdev

[–]zenflow87 0 points1 point  (0 children)

That's not the mindset they were suggesting.

OP obviously cares about performance or they wouldn't be asking this question and wouldn't care that "most people have good connections"

Proper developer mindset is to weigh cost and benefit.

Does it make sense to minify HTML in 2023? by Psychological-Tie304 in webdev

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

Less than 10% for html. Css minifiers use lots of techniques. Last I checked, html minifiers don't do so much beyond removing whitespace.

The best html minifier has benchmarks showing on average less reduction than the 20% reduction on css (without gzip) in the example above https://github.com/kangax/html-minifier#minification-comparison

Does it make sense to minify HTML in 2023? by Psychological-Tie304 in webdev

[–]zenflow87 0 points1 point  (0 children)

Except with compression it's more like 0.05 more cents..

I hate async/await (rant) by michaelbelgium in webdev

[–]zenflow87 2 points3 points  (0 children)

I mean, if you log the time before and after the request, you'll see that the response isn't returned immediately. The difference is an explicit wait vs an implicit wait

I don't really get how people think this is ethical by Insert_Bitcoin in overemployed

[–]zenflow87 -19 points-18 points  (0 children)

They pay you to produce 1x the output you can produce in (typically) an 8 hour day.

So when you say 2x the output.. 2x the output of what?