101010.pl is one of the many independent Mastodon servers you can use to participate in the fediverse.
101010.pl czyli najstarszy polski serwer Mastodon. Posiadamy wpisy do 2048 znaków.

Server stats:

476
active users

#preact

0 posts0 participants0 posts today

A Quick Way To Evaluate Software Frameworks

One of the most impressive bits of #software I’ve used is #Python. When I started to learn Python, it was version 1.5, a long time ago. I was immediately impressed with the tutorial. It was the first port of call. Here it is now:

<docs.python.org/3/tutorial/ind>

Read the tutorial basics and you could start exploring the language library

<docs.python.org/3/library/inde>

knowing you could master enough to move to more advanced concepts. Want to do something more complicated? Say build a web server?

First you might try the #HOWTO pages trying #sockets:

<docs.python.org/3/howto/index.>

After reading about the limitations you might try the #PEPS (Python Enhancement Proposal) What is a PEP? Try reading this page:

<peps.python.org/pep-0001/)

Finally you might decide #WSGI is what you want and read the specification at
<peps.python.org/pep-0333/>. I travelled this path in 2007/8 to build a version of my blog engine. ☺️

<seldomlogical.com/redux.html>

So I go the latest build on #Deno, install it and try a simple blog engine to see how it works

<deno.com/blog/build-a-blog-wit>.

The example code fails, the source code fails. I see the basic documentation for it (yet to try, but skimming through, it appears okay.) The tutorial only a couple of years old has rusted, the source is unmaintained. The issue is with JS / #React / #Preact where plain old #HTML5 and #CSS will do. 😔

A quick example how the basics have to documented, correct in bite sized pieces. The #HOWTOS maintained and blog #examples periodically revised.

Python documentationThe Python TutorialPython is an easy to learn, powerful programming language. It has efficient high-level data structures and a simple but effective approach to object-oriented programming. Python’s elegant syntax an...

I have occasionally been asked why Preact's string renderer doesn't do scheduling and defaults to synchronous. Here's your reason (it's so fast that doing so is generally net-negative for both response time and throughput, making it undesirable by any metric)
#preact

Has anyone here got opinions about Preact vs React?

Specifically, I'm weighing up migrating a large-ish codebase to Preact instead of upgrading React, and I'd be interested to hear from anyone who a) has done this, b) has decided not to do this, c) can think of solid reasons to stick with React.

I can't see much benefit to choosing React over Preact, but is there anything I'm overlooking?

I've known about Preact Signals for a while but, I took the time to read the source code and I'm very impressed. Preact, and by extension Signals, feels a lot like backbone.js, clean, elegant and clearly written by people who understand the problem they're trying to solve.

github.com/preactjs/signals/bl

GitHubsignals/packages/core/src/index.ts at main · preactjs/signalsManage state with style in every framework. Contribute to preactjs/signals development by creating an account on GitHub.

Oh yeah, I'm doing it this week: I'm refactoring #Preact signals to a highly complex #React component.

The starting point is a component that currently takes in 26 props, and some of those props can be very complex.

And yes, that is somewhat poor original design considerations combined with 5 years of feature development on top of it. I already refactored lots of the internals 3 years ago for better functionality and performance.