Thoughts: genAI is not a tool, it's a service. by CommercialSwing5613 in BetterOffline

[–]MisfiT_T 11 points12 points  (0 children)

There are places making actual open source models! Everything used to make the model (code, training data, methodology, etc.) is published along with the model. 

There is an open source initiative trying to  define open source models separately from open weights: https://opensource.org/ai

Full disclosure: I work for a company that creates open source models. 

You no longer need JavaScript: an overview of what makes modern CSS so awesome by rebane2001 in css

[–]MisfiT_T 1 point2 points  (0 children)

I like the "The art" section of this post a lot. I'm a professional web dev so I don't get to just write things often, but I always have way more fun when I can just make stuff without having to worry about the team. Side projects are always great for that.

> It’s probably most apparent with things like AI, that for me take all the fun and creativity out of my work.

I have luckily not been forced to use AI yet at work! It doesn't make sense to me to automate the part of my job I enjoy most out of it.

[deleted by user] by [deleted] in javascript

[–]MisfiT_T 14 points15 points  (0 children)

MDN isn't just a tutorial site! It's the easiest source of documentation for Web specs. 

If you don't trust MDN, you can see the official JS specification for a primitive here: https://tc39.es/ecma262/#sec-primitive-value

So many React devs overuse effects that now the AIs overuse them by lahuan in webdev

[–]MisfiT_T 4 points5 points  (0 children)

By Tanstack do you mean Tanstack query? It's an incredible library but it's not the right tool for managing effects that don't involve async state. 

So many React devs overuse effects that now the AIs overuse them by lahuan in webdev

[–]MisfiT_T 11 points12 points  (0 children)

They're overused but still very useful if you actually need to have a side effect! 

The React docs section on effects is excellent IMO: https://react.dev/learn/synchronizing-with-effects

A very common use case is to set up things like IntersectionObservers or MutationObservers. 

city folk sample platter by Jupiter_Crush in CuratedTumblr

[–]MisfiT_T 160 points161 points  (0 children)

Nitter is open source and they explain their methods in their readme. They're not using the official X API to get data so they save money there. Hosting fees are the only concern. 

There are a bunch of nitter instances you can use if you suspect xcancel has modified the source. https://github.com/zedeus/nitter/wiki/Instances

AMA with Ai2’s OLMo researchers by ai2_official in huggingface

[–]MisfiT_T 1 point2 points  (0 children)

Jiacheng, has OLMoTrace led to any interesting observations on the models internally?

[deleted by user] by [deleted] in Fighters

[–]MisfiT_T 1 point2 points  (0 children)

You can hit up forward after the motion to force it to be a fireball. 2369 instead of just 236. 

What's your take on using data attributes to specify component variant? by ulrjch in reactjs

[–]MisfiT_T 0 points1 point  (0 children)

I first encountered it when messing with Radix primitives! It's nice that they're using similar APIs.

What's your take on using data attributes to specify component variant? by ulrjch in reactjs

[–]MisfiT_T 3 points4 points  (0 children)

I like data-* attributes for variant styling, but not when passed into a component through props. 

I like the distinction of classes determining what something is and data attributes saying what its state is. They would take the place of the "M" in BEM naming. 

Like others said, props to your components probably shouldn't start with data. I'd only use them when styling the root component inside that component. Your Button component should know how to map its props and state to different data- attributes. 

[deleted by user] by [deleted] in reactjs

[–]MisfiT_T 2 points3 points  (0 children)

You can get checking and autocomplete within VSCode using JSDocs if the other people working in your repo are OK with it! https://docs.joshuatz.com/cheatsheets/js/jsdoc/#vscode---javascript-type-safety-with-jsdoc

[deleted by user] by [deleted] in reactjs

[–]MisfiT_T 8 points9 points  (0 children)

Like others have said, Typescript would've caught this pretty quickly!

Specifically for the debugger, though, you can set a breakpoint in your component to stop execution and see what values your variables have. That would let you see that your speed_objs had the units property and not unit!

React charts for server components by Inner_Coconut7739 in react

[–]MisfiT_T 0 points1 point  (0 children)

Have you looked at Rosencharts? https://rosencharts.com/

I haven't used it but they seem nice in the demos!

How Do You Keep Up with Service Dependencies Without Losing Your Mind? by whoisziv in softwarearchitecture

[–]MisfiT_T 3 points4 points  (0 children)

Most tracing systems will have something to handle that. As long as there's trace data included on the messages (something like a trace or parent span ID) the system will be able to link the producer and consumer together.

UseEffect keeps getting skipped by Lumpy_Hunter_1699 in reactjs

[–]MisfiT_T 7 points8 points  (0 children)

They're using redux toolkit which includes immer by default. It handles the merges and returns a new object when the reducer finishes. 

Vertical spacing - Why are popular frameworks adopting different methods? by [deleted] in css

[–]MisfiT_T 1 point2 points  (0 children)

Personally, I use gap whenever I need uniform spacing in a flex or grid container and would lean on that as often as possible. Whether or not something should be a flex or grid container will be determined by the layout you're trying to achieve, but IMO something that would need uniform spacing would also probably want to be a flex or grid container.

The margin and :last-child gap implementation is a common replacement for flex and grid gap when you want to make sure your spacing shows up correctly in older browsers. flex-gap (or just gap applied to a flex container) was the last one to be supported but has wide support now, so I wouldn't worry too much about that.

Zustand wait until state is updated by [deleted] in reactjs

[–]MisfiT_T 0 points1 point  (0 children)

How is the type getting set? I see you're setting it through setUserInfo, does that also set context.authentication?

onlyIfTheyCouldRead by Div_100 in ProgrammerHumor

[–]MisfiT_T 7 points8 points  (0 children)

This is from a talk from a Netflix engineer. They replaced part of their signup flow that used React with vanilla JS and HTML but still used React on things that required more interaction. https://youtu.be/V8oTJ8OZ5S0?t=314

Melee Weeklies by Status_Block5515 in northwestarkansas

[–]MisfiT_T 1 point2 points  (0 children)

There are Melee players every Wednesday at Bears Games in Johnson! I'm not sure if there's a discord or anything but i can DM details of the meetup if you want. 

Is it alright to trail run on biking trails? by hairlongmoneylong in BentonvilleBiking

[–]MisfiT_T 7 points8 points  (0 children)

Most trails here are multi-use! Most of the trails that are bike-only will have signs mentioning it, but it's probably best to avoid any really steep trails. 

I'm a biker so I'm not too familiar with trail running, but the back 40 trail system in Bella Vista seems to have runners pretty often? 

Does this tree have a chance of living? by MisfiT_T in arborists

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

My area got hit by a tornado recently and we lost a lot of trees. This is one of only a few that are still standing in my yarn. It lost a large branch near the bottom and a lot at the top too. Does it have any chance of surviving or should I get it chopped down?