Masthash

#Typescript

manlycoffee
9 hours ago

I just don't do default exports in JavaScript/TypeScript anymore #typescript #javascript

susomejias
12 hours ago

After updating my Intellij to the latest version I realize that now they have introduced a preview of the types inferred by the TS compiler 😍 #intellij #typescript #compiler #types #developer

Screenshot where you can see a preview of the types inferred by the typescript compiler
Michael Houmann
15 hours ago

Still waiting for a date for my operations, so I am just "chilling" with some #Python, #Webdevelopment and #Typescript. Stille not ready to start the #100DaysOfCode challenge again, before the medical is done, and I feel better and are painfree

Michigan TypeScript
16 hours ago

There's simply no way to complete this challenge without knowing a trick. It's a trick. That's all there is to it. Unfortunately, as well, it's a trick that's going to come up again soon in some hard and extreme challenges.

Union to Intersection: https://youtu.be/43aKbkDgN_w

#TypeScript #TypeChallenge

Stefan Baumgartner
19 hours ago

The recording of my talk "The Lies We Tell Ourselves Using #TypeScript" is online:

https://www.youtube.com/watch?v=qH_WsIZ23YU

Juan Luis
1 day ago

Amusing to read this article from @passle about #TypeScript from a #Python perspective: https://dev.to/thepassle/using-typescript-without-compilation-3ko4

Looks like parts of the #JavaScript ecosystem are abandoning TypeScript and putting types in docstrings and header files.

Meanwhile, in Python we are going in the opposite direction: moving types from docstrings to signatures (making them hard to read, quite frankly), and giving up on using stubs because of #MyPy https://github.com/python/mypy/issues/5028

Could we do things differently? #DEVCommunity

corentin.js
1 day ago

A new tool is out : an IPv4 subnet calculator ! 🥳

Parse your IPv4 CIDR blocks and get all the info you need about your sub network.

https://it-tools.tech/ipv4-subnet-calculator

#ittools #javascript #typescript #vue #json #developers #tool #free #opensource #online #github #ip #cidr #netmask

Fell
2 days ago

#VSCode cannot even render text at 60 FPS on my 2013 laptop. Any other program does, even games.

#Electron is a waste of resources. A high price to pay for the convenience of easy multiplatform applications.

But sure, just go ahead and buy new #hardware. Everyone has so much #money these days, right? Just chuck your old stuff in the bin. Just look how shiny this new device is!

#javascript #typescript #webdev #apps #dev

Webdev Weekly
2 days ago
Michigan TypeScript
2 days ago

Named after the mathematician Haskell Curry, this challenge exercises a very common and very useful skill you'll need when doing functional programming: Currying! Also known as "partial application" in some circles.

Currying 1: https://youtu.be/UGV00B8824w

#TypeScript #TypeChallenge

Ingo Richter
2 days ago

I worked on a small project to get better with my #reactjs #typescript #webdev skills https://github.com/ingorichter/eff-dice-generated-passphrase

Josh Caluette
2 days ago

@corentin

#docker #github #online #opensource #free #tool #developers #json #vue #TypeScript #javascript #ittools
Awesome! I just ran across it-tools.tech on the r/selfhosted SR just a couple of days ago. And then this pops up in my Mastodon home timeline. Very cool, and quite an awesome toolset.

corentin.js
2 days ago

A new tool is out : a Docker run to Docker compose converter ! 🥳

Turns docker run commands into docker-compose files!

https://it-tools.tech/docker-run-to-docker-compose-converter

#ittools #javascript #typescript #vue #json #developers #tool #free #opensource #online #github #docker

Mockup of the page Docker run to Docker compose converter in it-tools.tech
Astra Kernel :verified:
2 days ago
conputer dipshit
2 days ago

#deno is so so good. 20 lines for a server to serve a websocket connection for local dev purposes #javascript #typescript #webdev

#! /usr/bin/env -S deno run --allow-run --allow-net
import { delay } from 'https://deno.land/std@0.181.0/async/delay.ts'
import { serve } from 'https://deno.land/std@0.181.0/http/server.ts'

/*
 * This exists because MSW does not support websockets. So in MSW mode, we also
 * run this little server and configure Vite to proxy WS requests to it.
 */

async function streamString(socket: WebSocket, s: string, delayMs = 50) {
  for (const c of s) {
    socket.send(new TextEncoder().encode(c))
    await delay(delayMs)
  }
}

async function serialConsole(req: Request) {
  await delay(500)
  const { socket, response } = Deno.upgradeWebSocket(req)
  console.log(`New client connected`)

  // send hello as a binary frame for xterm to display
  socket.onopen = () => {
    setTimeout(() => {
      streamString(socket, 'Wake up Neo...')
    }, 200)
  }

  // echo back binary data
  socket.onmessage = (m) => socket.send(m.data)

  socket.onclose = () => console.log('Connection closed')

  return response
}

serve(serialConsole, { port: 6036 })
Lucas Santos
2 days ago

JÁ É SEMANA QUE VEM! 😱😱 A #SemanaTS está vindo com tudo pra quem quer aprender #TypeScript com conteúdos exclusivos! Ela vai rolar dos dias 2 a 7 de Abril e é totalmente grátis! Pra se inscrever é só entrar no site aqui embaixo!

👉https://news.lsantos.dev

WDRL 310

4-day Work Weeks, Awesome CSS, Image Performance, and Type-safe APIs.

https://wdrl.info/archive/310

#webdev #typescript #js #css #worklife #ux #newsletter

Karsten Schmidt
2 days ago

#TypeScript 5.0 has a new compiler flag "verbatimModuleSyntax" which supersedes the now deprecated "importsNotUsedAsValues" and changes how type-only imports are being treated[1]. TypeScript catches most (not all!) of these occurrences as bugs, and after reviewing imports all 4000(!)+ resulting JavaScript files over the weekend (and finding & fixing another dozen or so cases), I just pushed new releases of all 179 #ThingUmbrella packages[2], now compatible with TS5.0! 🎉

One other (somewhat related) still outstanding issue to address soon is the new TC39-compatible decorator handling/behavior... I already tried updating these semi-successfully, but then deferred the work again when I realized that I'll first have to do a lot more reading & experimenting with this new setup (esp. related to mixins). The changes are quite major... Anyhow, steady progress, small steps, more often...

Happy Coding! :)

[1] https://devblogs.microsoft.com/typescript/announcing-typescript-5-0/#breaking-changes-and-deprecations

[2] https://thi.ng/umbrella

Webdev Weekly
3 days ago

Web Development recap for week 12/2023

https://discu.eu/weekly/webdev/2023/12/

#css #javascript #nodejs #programming #typescript #webassembly #webdev

Get RSS feeds and support this bot with the premium plan: https://discu.eu/premium

Daishi Kato
3 days ago

Wakuwork, a React Framework, v0.8.3 is released!

You can try new router implementation, and see how React Server Components work.
Repo: https://github.com/dai-shi/wakuwork

#ReactJS #React #JavaScript #TypeScript #ServerComponents

maxoid
3 days ago

Hey 👋 I'm Max, a software developer currently based in Europe.

I work as a developer almost 5 years, started as a PHP developer, then so-called FullStack, and now work as a #typescript dev in one company that provides cloud backup solutions.

I am also actively interested in #golang #go programming language and work on several side projects related to this great language.

My interests:
📝 #writing #zettelkasten
📖 #reading #books
👨‍💻 #vim #neovim #linux #unix #terminal #cli

#Introduction

Michigan TypeScript
3 days ago

`DeepMutable` is the last stop on the train until we arrive at the "hard" difficulty set. It's been fun, but now things get considerably more esoteric! haha

DeepMutable: https://youtu.be/OQMkaxNAV90

#TypeScript #TypeChallenge

Ratul Maharaj
3 days ago

#TIL that you can run `npm version patch` to do a patch (or minor, major etc) version increment which will update your package.json file and create a new git tag. Very cool.

#javascript #typescript #opensource #foss #fosstodon #npm #git #github #pnpm

Stefan Baumgartner
3 days ago

I'm struggling with TypeScript generics (again) : How pass an Interface to a method using generics ?

https://stackoverflow.com/questions/75853970/how-pass-dynamically-interface-to-a-method

#Dev #Reactjs #Nextjs #frontend #Help #TypeScript #Generics

corentin.js
3 days ago

🥳 IT Tools has reached 1k GitHub stars! 🎉

Thank you all for the support, it means a lot 🙏

#ittools #javascript #typescript #vue #json #developers #tool #free #opensource #online #github

https://it-tools.tech/

#TIL when #Typescript is borked in #VSCode and you want to "Restart Typescript Server" you have to have a .js/.ts file *focused* in an editor or else the option doesn't appear. Even when the #TS error in question is appearing on the `jsconfig.json` file.

How does this pass as acceptable #developerExperience for all these years?

#webDev #JavaScript #programming #devEx

Adam Nelson
3 days ago

New Spartan Schema release (v1.1), with actual detailed error messages! You can now use `assertMatchesSchema` to throw an exception on a validation failure, and the exception will contain the full JSON and the exact locations and details of every schema error.

https://deno.land/x/spartanschema@v1.1.1

#JavaScript #Typescript #NodeJS #Deno #JSON

Brian LeRoux 💚
3 days ago

For no reason whatsoever a good set of resources on how to use #typescript *without* a transpiling build step. This is the way.

https://github.com/DavidWells/types-with-jsdocs

corentin.js
3 days ago

A new tool is out : an Html wysiwyg editor ! 🥳

Online HTML editor with feature-rich WYSIWYG editor, get the source code of the content immediately.

https://it-tools.tech/html-wysiwyg-editor

#ittools #javascript #typescript #vue #json #developers #tool #free #opensource #online #github #wysiwyg #html

Webdev Weekly
3 days ago

Kysely: a type-safe SQL query builder for TypeScript

https://www.kysely.dev/

Discussions: https://discu.eu/q/https://www.kysely.dev/

#programming #typescript #webdev

When I started doing #Typescript I thought this was my fault

Jobs for Developers
4 days ago
Michigan TypeScript
4 days ago

MUST WATCH this one: `ToPrimitive`. The problem itself isn't that interesting to be honest, but there's one extremely amazing solution I found that is absolutely transcendent! So exciting!

ToPrimitive: https://youtu.be/oh4KYm5-3KA

#TypeScript #TypeChallenge

Daishi Kato
4 days ago

Playing with Wakuwork, Minimalistic React Framework with React Server Components!

RSC supports streaming, so can we send infinite data?

Yes!

#ReactJS #React #JavaScript #TypeScript #ServerComponents

Daishi Kato
4 days ago

Wakuwork v0.8.0 is released! https://github.com/dai-shi/wakuwork
Wakuwork is Minimalistic React Framework that extensively uses React Server Components.

On top of the minimal API, we added a router API. The router API is also minimal for the start.

#ReactJS #React #JavaScript #TypeScript #ServerComponents

Jobs for Developers
4 days ago

WalletConnect is hiring Full-Stack Javascript Engineer

🔧 #javascript #typescript #react #blockchain #cryptocurrency #web3 #aws #postgresql
🌎 Remote; New York, United States
⏰ Full-time
💰 $90k - $210k (Estimate)
🏢 WalletConnect

Job details https://jobsfordevelopers.com/jobs/full-stack-javascript-engineer-at-walletconnect-com-aug-3-2022-34b88a?utm_source=mastodon.world&ref=mastodon.world
#jobalert #jobsearch #hiring

Karsten Schmidt
4 days ago

Current status: Updated ~625 (out of ~4250) source files in all 180 packages and ~120 examples for #TypeScript v5.0 (released 10 days ago)... This time mainly `import type` related, but also needing to work around some new regressions with suddenly missing/wrong type inferences...

Again almost 3 hours of my life gone and the biggest part is still outstanding: Updating/refactoring (possibly rewriting???) all decorators & mixins for the standard ES semantics (this is unrelated to TS, but a good moment, since these are now officially supported...)

I ❤️ TS, but as a mainly solo dev maintaining a huge monorepo (https://thi.ng/umbrella), I wish fewer TS releases would cause this kind of maintenance effort, just to keep code compiling... every few months! Especially after using the lang for ~7 years (and coming from Clojure, which is on the opposite spectrum, i.e. super conservative re: breakage), will there ever come a time when the inferencer will be (more) stable or will ever more features be added ad infinitum?

cc/ @SeaRyanC

Jobs for Developers
4 days ago

Metatheory is hiring Full Stack Engineer

🔧 #nft #javascript #typescript #react #node #graphql #rest #blockchain #web3 #aws
🌎 Remote; California, United States
⏰ Full-time
💰 $95k - $210k (Estimate)
🏢 Metatheory

Job details https://jobsfordevelopers.com/jobs/full-stack-engineer-at-metatheory-jan-10-2022-c50025?utm_source=mastodon.world&ref=mastodon.world
#jobalert #jobsearch #hiring

Astra Kernel :verified:
5 days ago

which one you listen to?

#rustlang #rust #typescript

Credit: @kobigurk

Molly Draven
5 days ago

👋

Hello, #TypeScript famity. Can you please point me to a good, working example of how to declare #NodeJS package subpath exports, and then import the same in the the package?

I believe the example I saw what so that the tests could import the API, but the API would not be able to import the tests in error.

I'm getting everyone's favorite "Cannot find module" error 🙏

Daishi Kato
5 days ago

Just released jotai-redux v0.2.1! https://github.com/jotaijs/jotai-redux

Someone filed a PR and it's merged. Super nice to see this integration library being used.

#ReactJS #React #JavaScript #TypeScript #Jotai #Redux

cruzin
5 days ago

I’m getting my ass handed to me with #TypeScript generics. I’m trying to learn them, but my brain is refusing to cooperate for some reason.

Mathias Fußenegger
5 days ago

With the 1.77 release of vscode-java-debug and a small change in nvim-dap, vscode-java-debug is finally working wihout custom off-spec extensions.

By following the setup instructions on https://github.com/mfussenegger/nvim-dap/wiki/Debug-Adapter-installation#vscode-js-debug you should now be able to debug #javascript and #typescript in #neovim

Yves Van Goethem
6 days ago

I'm hiring an experienced Frontend Engineer!

Experience with Atomic Design Systems? Web & Mobile? a11y? perf? theming? Want to ship code to prod on your first day?
Remote is possible ±2h Berlin time.

Interested? DM me.
RTs appreciated ❤️

#typescript #react #designsystems #webdev

More info: https://www.tooltime.de/jobs#job-1255804

heise Developer
6 days ago

JavaScript-Runtime: Deno 1.32 schließt kritische Sicherheitslücke

Die JS-Runtime Deno 1.32 liefert weitere Verbesserungen für die Kompatibilität mit Node.js und neue Funktionen für den Befehl deno compile.

https://www.heise.de/news/JavaScript-Runtime-Deno-1-32-schliesst-kritische-Sicherheitsluecke-7971810.html?wt_mc=sm.red.ho.mastodon.mastodon.md_beitraege.md_beitraege

#JavaScript #TypeScript #news

KubikPixel™
6 days ago

Ach guck, danke @heisedeveloper für den kostenlosen Download der Beilage "We Are Developers" von deinem Frühjahrsmagazin 2023.

📖 [PDF] https://www.heise.de/ix/downloads/05/3/7/2/5/1/5/0/we-are-developers-01-23-ib2301_Gesamtseiten_Links.pdf

--
#Entwickler #dev #download #pdf #ml #ki #rust #programmierung #webdev #software #typescript

Guido Schmidt
6 days ago

Some earlier results from the past week. These structures were formed using only modulo operators. I'm just amazed how simple math can form these complex structures.

#3dstructure #patterndesign #mathart #creative #threejs #typescript #webdeveloper #artandmath #creativity #patternlove #webgl #generative

heise Developer
6 days ago

We Are Developers! Das Frühjahrsmagazin 2023 ist da – Download kostenlos

Die Frühjahrsausgabe der "We Are Developers"-Beilage zu c't und iX bietet Artikel zu Rust/Linux, Urheberrecht für KI-Bilder, ein Python-Tutorial und Mastodon.

https://www.heise.de/news/We-Are-Developers-Das-Fruehjahrsmagazin-2023-ist-da-Download-kostenlos-7620905.html?wt_mc=sm.red.ho.mastodon.mastodon.md_beitraege.md_beitraege

#Softwareentwicklung #KünstlicheIntelligenz #MachineLearning #Programmierung #Rust #TypeScript #news

We Are Developers – Heise-Magazin als Beilage zu iX und c't, Frühjahr 1/2023
DevOps Weekly
6 days ago
Dan Shappir
6 days ago

The latest episode of @JSJabber isn't an easy one, but it's worth it: we discuss Functional Programming in #JavaScript, #TypeScript and #React with Ian Schwartz https://www.youtube.com/watch?v=2aRCrV1Jhsk

Stefan Baumgartner
1 week ago

The crusher of hopes and destroyer of dreams!

Rehearsing my #TypeScript talk for tomorrow: The lies we tell ourselves using TypeScript

My notebook with the slides open
Zander :jquery:
1 week ago

Did you know you can get the specific #TypeScript type for an array item (if you don’t have that item as a type already) by using `ArrayType[number]`?

Screenshot of example code
Martijn Faassen
1 week ago

It's interesting the functions I write in Rust tend to be longer than the functions I write in TS or Python.

Only partially explained by Rust being a bit more verbose.

Another part of the explanation is types giving confidence even in long functions, maybe.

match expressions versus more OOP style of dispatch play a role.

Refactoring in Rust is different than in the other languages, so keeps functions larger?

#rustlang #python #typescript

Application Security Weekly
1 week ago

This week @JoshuaKGoldberg ‌shared his expertise on #TypeScript. It improves JavaScript safety, and can lead to code that's better documented and easier to maintain -- all of which contribute to secure code.

https://youtu.be/8wsbKu3ldJw

You can find out more about TypeScript from his book at https://www.oreilly.com/library/view/learning-typescript/9781098110321/.

But be sure to check out the segment to see how enthusiastic he is about the topic, as well as what other web technology makes him excited about coding.

Show notes at https://www.scmagazine.com/podcast-episode/application-security-weekly-233

Guido Schmidt
1 week ago

Ported my modulo patterns into 3D space using three.js. In three dimensions every axes can represent another modulo controlled pattern approach which leads to all kind interleaving patterns.

#threejs #webgl #creativecoding #genartclub #generative #design #programming #typescript