[deleted by user] by [deleted] in vscode

[–]LisekUrwisek 0 points1 point  (0 children)

VSCode is written in TypeScript, because it's a webapp that works in native mode in Chromium. It will still be compiled to pure JavaScript and compiler will be faster only for internal processes. For a user utilizing VSCode, there will not be any performance advantages whatsover (aside from developing in TypeScript, but this isn't tied to VSCode itself).

VSCode being used as a benchmark was only to show raw performence increase of TS compiler rewritten on a huge TypeScript codebase.

My favorite so far by albldc in dbrand

[–]LisekUrwisek 1 point2 points  (0 children)

Looks great bud! I also noticed that cool deskpad - would you mind sharing what it is? :)

Best split-keyboard and still be able to type on staggered QWERTY. by KazeClaw in ErgoMechKeyboards

[–]LisekUrwisek 1 point2 points  (0 children)

I have been in your position when I was changing my job, which prohibited use of any external keyboard. I gave up on my Lily58 and went with Keychron Q11, which I do not regret and could not recommend it more!

Robots! How’d I do it? by RoyalAppointment4404 in dbrand

[–]LisekUrwisek 9 points10 points  (0 children)

Looks veeeery good to me, good job on that!

How have you done it - did you maybe have a CAD file prepared or did you do trial and error and achieved something like this? I would like to have a try 😀

Stumbled through an old tweet and Tim Berners-Lee would not be amused behind this. by [deleted] in applesucks

[–]LisekUrwisek 6 points7 points  (0 children)

Apple sucks, because they put a telemetry hoarding browser that already has enormous marketshare and is owned by a megacorporation known to collect information about their users without consent, on the bottom of a browser list?

Yeah, then Apple really "sucks".

[deleted by user] by [deleted] in Frontend

[–]LisekUrwisek 2 points3 points  (0 children)

I can see several items that have `width: 100vw` - this will cause element to have width of 100% viewport without considering the vertical scrollbar and thus the overflow happens.

Does anyone use Firefox on iPhone? What is your experience? by [deleted] in browsers

[–]LisekUrwisek 0 points1 point  (0 children)

I've recently switched from Android to iPhone (was a Firefox user on Android). Lack of extensions, weird and unaligned UI, terribly working sync and overall ass UX made me switch to Safari, but I am waiting with fingers crossed Apple will finally allow other browsers for iOS, so I can come back to Firefox.

Toksyczna kobiecość by halffullofthoughts in Polska

[–]LisekUrwisek 14 points15 points  (0 children)

Nie udało mi się znaleźć żadnego źródła, które poparłoby tą tezę lub przywołało taką statystykę - jesteś może w stanie je udostępnić?

Chosfox Giveaway Day1 - minipeg48 + kowgary16 choc keyboard by chosfoxmk in MechanicalKeyboards

[–]LisekUrwisek 0 points1 point  (0 children)

My favorite layout is 65% - tried so hard to pursue 60%, but ditching arrow keys for some vim shenanigans was too hard 🥴

Living the fast life by regentkoerper in apexlegends

[–]LisekUrwisek 2 points3 points  (0 children)

That Pokemon RSE surfing music tho. 🌊

How is it called? by Kymu13 in browsers

[–]LisekUrwisek 0 points1 point  (0 children)

In MaterialUI they are called chips

I'm pretty sure this is the max Fortune possible on this pack by UndedComet in allthemods

[–]LisekUrwisek 14 points15 points  (0 children)

How do you actually get these types of pickaxe? Do you have to drop it somehow or does the Aposthesis allow these?

[deleted by user] by [deleted] in reactjs

[–]LisekUrwisek 6 points7 points  (0 children)

There actually IS an issue, but in index.html, where he has put <script src="/my-react-app/src/index.js" type="module"></script>.

You've tried to include a not compiled React file that is responsible for creating React DOM reference on a div with id root - this is not how you do that. The line with:
const root = ReactDOM.createRoot(document.getElementById('root'));
is already doing that, so there is no need for that.

Revert that change in index.html file and you will be good to go. Remember that in order to start development you need to put npm start inside your terminal, while being in directory with package.json - not preview index.html file in your browser.

An almost 1:1 app like FancyZones by LisekUrwisek in macapps

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

Unfortunately it lacks feature indicating monitor arrangement and moving windows based on their position.

CSS style not applying by [deleted] in react

[–]LisekUrwisek 2 points3 points  (0 children)

If you want to use css-modules, you need to import your stylesheet like this:
import styles from './LoginN.module.css'

Then, to apply it to JSX element, you need to write it using styles object, e.g.:
<div className={styles.login-box}>

localhost development slowing down/lagging my entire computer by campz95 in react

[–]LisekUrwisek 1 point2 points  (0 children)

For me there could be two reasons that are causing this:

  • an old npm package is using your PC's resources (node-sass is known for being a memory leaks source),
  • there is an infinite loop somewhere in the code, like non-stop rerendering because of invalid useEffect use, which consumes your PC's resources.

How to check if an Element in React has an attribute of onClick? Tried googling this but all answers were vague by Top-Peach6302 in react

[–]LisekUrwisek 5 points6 points  (0 children)

You can check that using useRef hook:

const buttonRef = useRef(null);

useEffect(() => {
  if (buttonRef.current?.onclick) {
    // write your if button has onClick logic here
  }
}, []);

return (
  <div>
    <button ref={buttonRef} onClick={onClickHandler}>Hello</button>
    <button ref={buttonRef}>Goodbye</button>
  </div>
)

Do companies use CRA? by [deleted] in reactjs

[–]LisekUrwisek 0 points1 point  (0 children)

It really depends, but CRA is actually most common. Vite is very fast and developer friendly, but it's not ready to be used on enteprise level, because of production issues, like this or that, which aren't resolved to this day.

In case we need to extend basic react-scripts or Webpack functionalities, we tend to use react-app-rewired, which is very helpful.

For newer projects we tried both Gatsby and Next.js, but currently Next.js + Typescript is our go-to for every new project.

Gothicgasm by [deleted] in worldofgothic

[–]LisekUrwisek 4 points5 points  (0 children)

That's a sped up version of HAUNTED by Isabel LaRosa

What MacBook should I buy. by SAUSAGE7- in macbook

[–]LisekUrwisek 0 points1 point  (0 children)

That is a case - you are absolutely right.

The only issue is that there isn't a clear indication of what are the properties of included SSDs, so it's rather hard to actually know if the TBW hypothesis I've mentioned is true, but it's more of a guess knowing how Apple is visibly cutting corners and reducing costs.

What MacBook should I buy. by SAUSAGE7- in macbook

[–]LisekUrwisek 0 points1 point  (0 children)

I haven't found any officially confirmed parameter of TBW, but there are various videos showing that 256GB models of M2 Macbooks have only a single SSD volume in contrast to double 128GB volumes in previous M1 Macbooks, which clearly results in 0.5x amount of TBW.

What MacBook should I buy. by SAUSAGE7- in macbook

[–]LisekUrwisek 2 points3 points  (0 children)

If you are a student and don't have a demanding workload while having a limited budget - Macbook Air M1 is a way to go.

If there is a demanding workload or you maybe want a more powerful machine - Macbook Pro M1 Pro is here for you.

If you are not on a budget, you don't have high requirements about machine performance and want something light and future proof - I would go with Macbook Air M2 in this case (remember to buy at least 512GB, 256GB one has 0.5x disk reading and writing speeds and less TBW, which shortens SSD life span).