ayo, to random
@ayo@ayco.io avatar

I kept my twtr account for a while because brands I occasionally reach out to were still exclusively there. It’s now no longer the case so I put the account down for real :)

levlaz,
@levlaz@hachyderm.io avatar

@anze3db @ayo thanks! I saw this doc, but I meant how do you choose which tags to include in the first place.

For example i notice things like #typescript and #kubernetes might belong there. Is there a place to add suggestions?

anze3db,
@anze3db@fosstodon.org avatar

@levlaz @ayo Ah, sorry for the misunderstanding. I add tags based on suggestions 😃

I'll add and and let me know if you have any other suggestions!

leanpub, to typescript
@leanpub@mastodon.social avatar

Node-OPCUA by example Edition 2024 by Etienne Rossignon is on sale on Leanpub! Its suggested price is $249.00; get it for $55.99 with this coupon: https://leanpub.com/sh/ydNmEDkM #InternetOfThings #Typescript #Robotics #Messaging #EmbeddedSystems #Cryptography

toxi, to typescript
@toxi@mastodon.thi.ng avatar

🚀 — This week's second round of releases is featuring:

https://thi.ng/geom — added support for more shape pairings in the polymorphic intersection function to altogether 18, now also including: line↔︎group (incl. nested groups), line↔︎polygon, line↔︎polyline, ray↔︎group, ray↔︎line

https://thi.ng/geom-isec — simplified intersection result type (intersection point(s) now always in an array), added computation of point-inside-shape flags to more shape types, bug fixes

https://thi.ng/meta-css — more updates to CSS template handling, spec doc system and tons more additions to the generative baseframework specs/templates, now already consisting of 932 CSS utility classes (incl. 61 callable templates/functions/macros), which can be used as-is or as starting point to define your own custom CSS framework(s). All explained in the readme... This toolchain will likely keep on seeing a flurry of other updates since I'm heavily using it for the design of the new thi.ng website too! Together with mprocs[1] and Vite it also offers a very nice hot-reloading workflow...

https://thi.ng/hiccup-css — added support for SASS-style &-parent reference when defining nested selectors, updated readme w/ examples

https://thi.ng/random — added a weightedProbability() function to simplify dealing with arbitrarily shaped distributions (attached code example to compute the histogram & visualize results as ASCII-art is from the API docs)

As usual, please check the readmes and changelogs for more details!

[1] https://github.com/pvolok/mprocs

toxi, to typescript
@toxi@mastodon.thi.ng avatar

Earlier today[1], helped my son with a raycasting issue and then ended up updating/extending the 2D shape intersection function in https://thi.ng/geom, which now also supports ray intersections with nested shape groups/hierarchies (via same single function call) and a new option to return all intersection points found (rather than just the first/closest). Both of these features are shown in a new example project (forthcoming) and in the anim below...

[1] It also was the first day of the year for us working outside on a bench in the woods, yay!

2D line art animation showing some shapes (rectangles, circles, hexagon, wavy polyline...) and a line/ray rotating anti-clockwise. The intersection points between that ray and the static shapes are highlighted as pink dots. Each dot also has a label showing the distance from the ray origin (center of image). Depending on the angle and shapes intersected, the number of intersections varies (max. approx. 10 points)

deshipu, to python
@deshipu@fosstodon.org avatar

deleted_by_author

  • Loading...
  • docRekd,

    @deshipu @orsinium
    So the thing you're objecting is that they're run time objects.

    There is advantage to that tradeoff: unlike with erased types like in can introspect its types and do all kind of interesting things like allowing https://docs.python.org/3/library/dataclasses.html to introspect they type of its fields and check them

    henrikjernevad, to programming
    @henrikjernevad@mastodon.social avatar

    I recently stumbled upon a pretty nice example of when TypeScript and a single type eliminated two classes of real-world bugs!

    https://henko.net/blog/kill-two-bugs-with-one-type/

    leanpub, to programming
    @leanpub@mastodon.social avatar

    Build Your Own Web Server From Scratch In Node.JS: Learn network programming, HTTP, and WebSocket by coding a Web Server https://leanpub.com/byo_web_server by build-your-own.org is the featured book on the Leanpub homepage! https://leanpub.com

    rauschma, to typescript
    @rauschma@fosstodon.org avatar

    1/ : Common approach for validating untyped data—e.g. Zod: https://2ality.com/2020/06/validating-data-typescript.html
    – Encode type via runtime data (“schema”).
    – Schema is converted to static type for type-checking.

    New approach—Typia. https://typia.io/docs/setup/
    – Compile static type to (runtime) validation code.
    – Downside: Tools don’t work that strip out types and run result.

    Rust does latter approach well. For TS, I prefer former.

    toxi, to animation
    @toxi@mastodon.thi.ng avatar
    leanpub, to typescript
    @leanpub@mastodon.social avatar

    Node-OPCUA by example Edition 2024 by Etienne Rossignon is on sale on Leanpub! Its suggested price is $249.00; get it for $55.99 with this coupon: https://leanpub.com/sh/fpLGshJq #InternetOfThings #Typescript #Robotics #Messaging #EmbeddedSystems #Cryptography

    leanpub, to typescript
    @leanpub@mastodon.social avatar

    Node-OPCUA by example Edition 2024 by Etienne Rossignon is on sale on Leanpub! Its suggested price is $249.00; get it for $34.99 with this coupon: https://leanpub.com/sh/CBvYi4AZ #InternetOfThings #Typescript #Robotics #Messaging #EmbeddedSystems #Cryptography

    joshhunt, to typescript
    @joshhunt@hachyderm.io avatar

    Inspired by a recent conversation, I wrote down my thoughts on why Typescript's user-defined type guards are still not safe, and a few alternatives

    https://joshhunt.dev/posts/typescripts-user-defined-type-guards-are-not-safe

    boris, to fediverse
    @boris@toolsforthought.social avatar

    Fedify:

    …is a Deno/TypeScript library for building federated server apps powered by ActivityPub and other standards

    Still in early development. Also using Deno’s new JSR packaging format.
    #ActivityPub #Fediverse #Deno #TypeScript #JSR https://dahlia.github.io/fedify/

    f3rno64, to programming
    @f3rno64@aus.social avatar

    Hi everyone,

    I'm currently looking for a new job, something remote, full-time, or contract. A freelance opportunity would be welcome as well.

    I'm a senior software engineer specializing in web app development, full-stack.

    I primarily work with Node.JS, React, and TypeScript, along with Python if needed. I know several other languages as well.

    If you know of any open positions or opportunities, please reach out!

    This is my GitHub: https://github.com/f3rno64

    And LinkedIn: https://www.linkedin.com/in/crismihalache/

    daishi, to reactjs
    @daishi@fosstodon.org avatar

    I just released use-context-selector v1.4.4,

    found out it's the 50th version,

    and found out it has 100 dependents!

    #ReactJS #React #JavaScript #TypeScript #ReactHooks

    toxi, to typescript
    @toxi@mastodon.thi.ng avatar

    🚀 - This week's releases are mainly related to ShaderAST & ongoing repo-wide documentation updates of all 190 packages...

    https://thi.ng/shader-ast — Added polymorphic syntax sugar versions of various math ops to simplify "self-assignments" aka ops in the form of x = x+ 2, which would in shader AST syntax looked like assign(x, add(x, 2)), now addSelf(x, 2)... See changelog & docs for details of supported ops.

    https://thi.ng/shader-ast-stdlib — The "standard library" for https://thi.ng/shader-ast has had several new additions of useful helpers & metaprogramming tools, e.g. a new branches() function (see screenshot) to simplify n-ary A/B testing of params (or debugging of shader outputs) as is commonly done by e.g. visualizing different versions as columns based on fragment position. Other additions include surface normal calculation from a 2D terrain/grayscale texture (e.g. for GIS or fluid sims), float packing/unpacking (to/from 8bit/channel RGBA textures as a lot of mobile devices still don't support float render textures in WebGL)...

    https://thi.ng/shader-ast-optimize — This package is used to apply various optimizations on a given shader AST program (or expression). Recursive constant folding has been extended to more ops & built-in functions. There's also a new wrapper function defOptimized() which can be used in place of defMain() to create auto-optimized shader main functions. The new version also has several bug fixes and more tests... See updated readme for examples.

    As mentioned in earlier toots, I've also been doing several large rounds/commits of general documentation related updates/revamps, incl. updating all code examples in readmes & API docs to provide all required import statements, writing a new tooling (see below) to extract said code blocks from their original files and export them to their own source files for easier testing/trying them out from the command line. That work is only partially completed (with still hundreds of files to edit/update), but if you've got a clone of the https://thi.ng/umbrella repo, you can already try it out by running yarn tool:tangle (to extract examples from API docs in source files) or yarn doc:readme (to extract from readmes). In both cases, make sure your first build everything via yarn build. The tools will log where each of the examples is written to. Once I'm done, there will be ~800 example files extracted via this process... 💪

    toxi, to art
    @toxi@mastodon.thi.ng avatar
    toxi, (edited ) to generative
    @toxi@mastodon.thi.ng avatar

    Revisiting an old unfinished project with new eyes & new colors...

    toxi, to opensource
    @toxi@mastodon.thi.ng avatar

    Just finished manually updating in total ~780 code blocks & snippets in over 400 files (readme's & source code), adding import statements of all used functions & updating comments over the past week (in addition to the 1st round last weekend[1])... Would be super great to hear if people find this useful/helpful (other than the two who were proposing it in the survey feedback)... 😉

    Over the next months I will do another pass over the readmes to make it easier to auto-extract various code examples[2], to try them out and/or test them... Also going forward, new code examples added to readme's will aim to support this feature, but there's a huge backlog of existing ones too.

    [1] https://mastodon.thi.ng/@toxi/111997356595048440
    [2] https://mastodon.thi.ng/@toxi/111959275083112668

    sirber, to ai
    @sirber@fosstodon.org avatar

    Boss wants to get us gitlab copilot licenses. Is it good?

    schizanon, to typescript
    @schizanon@mastodon.social avatar

    Typescript is just JavaScript for people who hate freedom.

    Agree?

    schizanon, to typescript
    @schizanon@mas.to avatar

    Typescript is just JavaScript for people who hate freedom.

    Agree?

    nosherwan, (edited ) to javascript
    @nosherwan@fosstodon.org avatar

    :nodejs: :javascript: :typescript:

    State of JS Runtime

    I suggest we have a new survey similar to state of JS called state of JS runtime, to get an idea of which runtimes are most popular in the industry & what are they being used for. (its merely a question in StateOfJS)






    🙋🏽‍♀️
    Which runtime do you use & for what purpose?

    sirber,
    @sirber@fosstodon.org avatar

    @nosherwan node hasn't fully embraced ES6 modules that came out almost ten years ago, let alone typescript. Bun is fast, yes, they support typescript, but that's about it. also has built-in, and adds extra security, a new package system, and lots of new features. I can even compile a binary.

    ondrejsevcik, to typescript
    @ondrejsevcik@hachyderm.io avatar

    For many projects, JSDoc may be better choice than TypeScript. Less tooling, less complexity, no build step, but still have the benefit of types.

    https://alexharri.com/blog/jsdoc-as-an-alternative-typescript-syntax

  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • GTA5RPClips
  • DreamBathrooms
  • InstantRegret
  • magazineikmin
  • khanakhh
  • Youngstown
  • ngwrru68w68
  • slotface
  • everett
  • rosin
  • thenastyranch
  • kavyap
  • tacticalgear
  • megavids
  • cisconetworking
  • normalnudes
  • osvaldo12
  • ethstaker
  • mdbf
  • modclub
  • Durango
  • tester
  • provamag3
  • cubers
  • Leos
  • anitta
  • lostlight
  • All magazines