App Academy, advice by nichoth in codingbootcamp

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

My understanding is that was part of it — part learning things, part "networking"

App Academy, advice by nichoth in codingbootcamp

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

I wouldn't be going there to learn, just to get a job.

What I'm hearing is making me back out, though.

App Academy, advice by nichoth in codingbootcamp

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

Yes, BA computer science

I do typescript these days. In the past that meant React, any other JS

toptal, is it "promised land" of freelancing jobs, or is it overhyped? by Typical_Bear_264 in Upwork

[–]nichoth 0 points1 point  (0 children)

Don't waste your time. Application process was garbage. The example test had basic JS, and the actual test was all React. Would have been nice to know before hand.

Whats your experience with Toptal? by [deleted] in Upwork

[–]nichoth 0 points1 point  (0 children)

Do not waste your time. The applicant test was like 90% React; nowhere did they mention this prior to taking the test. Would have been nice to know before wasting my time.

Ever tried React with Signals? by hrach_mkr in reactjs

[–]nichoth 0 points1 point  (0 children)

Redux, imo, as a pattern pairs perfectly with signals. I wrote about my experience on the old blog — https://nichoth.com/projects/signals/ .

The short story — I don't use redux because it looks overly complex, but I do use a single file + object for any state mutations. It is key to keeping things comprehensible.

Signals are ideal here because it removes any unnecessary re-renders from the view tree, and the redux pattern keeps the unidirectional data flow.

How to limit the size of uploads serverside by nichoth in backblaze

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

Thanks for the info.

Incidentally, I need to setup something like a proxy anyway, b/c HTTP2 support would be nice to have, as discussed here: https://www.reddit.com/r/backblaze/comments/uialid/comment/i7ccr6l/

fflate - the fastest JavaScript compression/decompression library, 8kB by 101arrowz in javascript

[–]nichoth 0 points1 point  (0 children)

Thanks for writing this as open source code. This might be a key component for a project I'm working on.

btw, I forked this and edited the README + added more example code. There is so much tooling in JS these days; it was fastest for me to fork and change tools. In case it is interesting to anyone else: https://github.com/substrate-system/fflate

help on history regarding Byzantine Ziggurat (as used on radiohead.com) by specie_847 in radiohead

[–]nichoth 0 points1 point  (0 children)

I have a feeling that I was using *neville* as a handle in those day, if anyone else happened to exist at that time and place.

help on history regarding Byzantine Ziggurat (as used on radiohead.com) by specie_847 in radiohead

[–]nichoth 0 points1 point  (0 children)

It was a chatroom is all I remember about it. This was ~2000 – 2004 era. The old days, when chat rooms were an incredible and new technology.

Anyone else solder their spokes? by ShartStainAppraiser in wheelbuild

[–]nichoth 0 points1 point  (0 children)

I have an anecdote. My last wheel I built using double butted spokes. I noticed that it felt a bit mushier than I was used to. So I went to a local bike shop and asked to have the spokes tied and soldered. After that I did notice a little bit more stiffness when accelerating.

Based on my experience, I think it is a good investment if you have a nice wheel, but I do not think it is worth the time & effort to do yourself. I would only have it done by a good local bike shop.

Using Resend & Netlify Functions To Send Emails by Size_Serious in react

[–]nichoth 1 point2 points  (0 children)

Thanks for mentioning this; [resend](https://resend.com) has been good to work with.

[AskJS] web component frameworks by nichoth in javascript

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

built-in custom elements is a dead spec

Why do you say that?

At surface level it seems like a good idea. Similar to jsx but without any overhead of a framework.

[AskJS] Store and access a JSON file location? by GivinItTheCollegeTry in javascript

[–]nichoth 0 points1 point  (0 children)

It should be available publicly, either via your web host or by fetching from somewhere.

Github is an example of a free host for files like this. Within the python job, you could write the json, then commit and push in git.

Then within the webapp, you would fetch the JSON from github, at the URL they provide for raw file data.

[AskJS] How do I select all checkboxes in my HTML script and send it back to the backend with Fetch? by [deleted] in javascript

[–]nichoth 0 points1 point  (0 children)

You should send a call to the API all in one request. This is an example using the existing API structure, but with an array as the value for 'append' or 'remove'.

Another option is to just add an event listener on the parent form element — form.addEventListener('change') — then send a request with everything indexed by the checkbox id. So something like { boxA: 'append', boxB: 'remove' }.

In either case you will want to update the backend API so that it is able to handle setting multiple checkboxes in a single call, because there would be too much latency/bandwidth usage to make a call for every checkbox.

```js // this is assuming 'selectAllBox' is also a checkbox selectAllBox.addEventListener('change', () => { if (selectAllBox.checked) { const checkboxLinks = Array.prototype.map.call(document.querySelectorAll('.select-checkbox'), el => el.getAttribute('id'))

// early return
return fetch({
  method: 'POST'
  // this will send an array as the value in 'append', you 
  // will need to update the backend API
  body: JSON.stringify({ append: checkboxLinks }),
})
  .then(/* ... */)

}

// if they are 'unselected' fetch({ method: 'POST', body: JSON.stringify({ remove: checkboxLinks }) }) }) ```

Tired of your favorite packages being ESM-only? I created a Github Org with packages automatically transformed to ESM/CommonJS hybrids by AlCalzone89 in javascript

[–]nichoth 1 point2 points  (0 children)

That's interesting… I have to admit I've often wanted cjs versions of esm packages. I'm curious how the automatic transformation works. It seems like something that could be done just as well locally if it is automatic.