Masthash

#Javascript

Rémi Eismann
24 minutes ago

One day, one decomposition
A051635: Weak primes: prime(n) < (prime(n-1) + prime(n+1))/2

3D graph, threejs - webGL ➡️ https://decompwlj.com/3Dgraph/Weak_primes.html
2D graph, first 500 terms ➡️ https://decompwlj.com/2Dgraph500terms/Weak_primes.html

#decompwlj #maths #mathematics #sequence #OEIS #javascript #php #3D #numbers #weak #primes #primenumbers #graph #threejs #webGL

Decomposition into weight × level + jump of weak primes in 2D (log(weight), log(level))
Decomposition into weight × level + jump of weak primes in 3D (threejs - WebGL) (log(weight), log(level), log(jump))
EdTheDev
54 minutes ago

At long last, here's a very quick overview of how my website works.
https://edward.delaporte.us/meta/

#website #selfhosting #kinda #howto #javascript #devops

Ed
5 hours ago
kalvn
7 hours ago

Une explication détaillée et claire de la façon dont le système de prototype de JavaScript fonctionne. Lecture requise si vous développez en JS, que ce soit dans le navigateur ou avec Node et consorts.

Inheritance and the prototype chain - JavaScript | MDN
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Inheritance_and_the_prototype_chain

#javascript #goodpracticehttps://links.kalvn.net/shaare/sBNVrA

kalvn
7 hours ago

Une sorte de SDK non-officiel pour YouTube, en JavaScript.

> A full-featured wrapper around the InnerTube API
> InnerTube is an API used by all YouTube clients. It was created to simplify the deployment of new features and experiments across the platform 1. This library manages all low-l…

GitHub - LuanRT/YouTube.js: A wrapper around YouTube's internal API — reverse engineering InnerTube
https://github.com/LuanRT/YouTube.js

#youtube #sdk #javascript #libhttps://links.kalvn.net/shaare/HMUUkg

kalvn
9 hours ago

Un très bon article (écrit il y a 2 ou 3 ans je pense, en réalité) qui revient sur l'historique de JavaScript et sur la raison marketing derrière certains choix.

L'article revient notamment sur l'aspect "Prototype" de JavaScript qui est souvent incompris et camouflé derrière ce qu'on appelle du "syntactic sugar".

How Marketing Changed OOP In JavaScript — Smashing Magazine
https://www.smashingmagazine.com/2023/12/marketing-changed-oop-javascript/#if-only-javascript-embraced-its-prototypes

#javascript #histoirehttps://links.kalvn.net/shaare/fnQ2MQ

Mark Gardner ‍:sdf:
9 hours ago

@nixCraft #Mojolicious for #Perl, because it combines maximum power with maximum whipitupitude: https://mojolicious.org

There is also a #JavaScript (via #TypeScript, natch) flavor: https://mojojs.org

/cc @mojolicious

Marcel Waldvogel
15 hours ago

@stefan @cybeardjm @cheeaun Since just over a month, all major desktop and mobile browsers should support this (first browser started supporting it in April 2023). So it is still fairly new and polyfills are required for older browsers.

Edit: I thought the article had mentioned polyfill. But it didn't. And it seems hard to polyfill this. So, your code still needs fallbacks 😕
#UnicodeSets #Unicode #RegEx #JavaScript
https://caniuse.com/mdn-javascript_builtins_regexp_unicodesets

Screenshot from the linked CanIUse web page for JavaScript built-in: RegExp: unicodeSets. Showing support for most major current browsers.

I probably turned somewhere wrong direction, if buggy #javascript of #mastodon keeps loading bullshit to my feed.

Daishi Kato
17 hours ago

Waku-Waku excited to share my latest achievement! A React Server Components app built with Waku runs on Cloudflare Workers! Can you guess the challenges I faced?

https://waku-counter.muddy-unit-2d56.workers.dev/

This is my first time using Cloudflare Workers, so please forgive me for any possible misunderstanding.

Note that it doesn't use Node compatibility flag.

I haven't released this new version yet. Stay tuned.

https://github.com/dai-shi/waku

#ReactJS #React #JavaScript #TypeScript #Waku

Leanpub
18 hours ago

The bundle .NET 5.0 by Dr. Holger Schwichtenberg (MVP) is on sale on Leanpub! Its suggested price is $124.97; get it for $49.50 with this coupon: https://leanpub.com/b/net50/c/LeanpubWeeklySale2023Dec08 #Html #Dotnet #CSharp #Aspnet #Javascript #WebDevelopment #Databases

@Dr_Muesli

Cookie blocker would require java..
*sob*

Mini game.. Hmm...
I wonder what kind of game.

Most already have a implementation...

A colleague recently told me about a electronics program in #java ..
https://github.com/mpue/blackboard

But porting it to #javascript / #html would be a #payed job lol

Shame tho.
Looks cool

Blinking keyboard
You know what ?
I once had a #piano that could make the keys light up for practice. ( https://www.youtube.com/watch?v=U-6OzukqI94 )

It was terrible. 😸

Leanpub
19 hours ago

The bundle A Better Way to Learn JavaScript Book Series by Ajdin Imsirovic is on sale on Leanpub! Its suggested price is $145.00; get it for $69.97 with this coupon: https://leanpub.com/b/a-better-way-to-learn-javascript-book-series/c/LeanpubWeeklySale2023Dec08 #Javascript

Rémi Eismann
1 day ago

One day, one decomposition
A051634: Strong primes: prime(k) > (prime(k-1) + prime(k+1))/2

3D graph, threejs - webGL ➡️ https://decompwlj.com/3Dgraph/Strong_primes.html
2D graph, first 500 terms ➡️ https://decompwlj.com/2Dgraph500terms/Strong_primes.html

#decompwlj #maths #mathematics #sequence #OEIS #javascript #php #3D #numbers #primes #strong #primenumbers #graph #threejs #webGL

Decomposition into weight × level + jump of strong primes in 2D (log(weight), log(level))
Decomposition into weight × level + jump of strong primes in 3D (threejs - WebGL) (log(weight), log(level), log(jump))
ThomasAPowell
1 day ago

So about 140 CS and CS adjacent students just finished my front end course at UC San Diego and know semantic #html, respect #css, started with vanilla #javascript and care about #a11y oh and they learned the DOM and #webcomponents plus the web platform properly. Here’s a small sampling. You want to attract interns that know legit #webdev message me. I got some friends. Also we are in good hands 🙌 some young eager and capable devs are coming!

Prof Powell with a few CSE 134B students celebrating the end of the course
Leanpub
1 day ago

Building Office Add-ins using Office.js by Michael Zlatkovsky is on sale on Leanpub! Its suggested price is $19.99; get it for $9.59 with this coupon: https://leanpub.com/sh/ZDVLfVii #Javascript #Software

Doug Parker 🕸️
1 day ago

Does anyone have any good tricks for testing that a #JavaScript module does not leak memory?

I'd love to do something close to:

```
const mem = trackMemory(() => {
doSomethingThatMaybeLeaks();
});
expect(mem.increases).toBe(0);
```

The only tools I've found so far are `leakage` and `node-memwatch`, neither of which seem well supported atm.

* https://github.com/andywer/leakage/
* https://github.com/airbnb/node-memwatch/

Any tools out there worth knowing about?

Leanpub
1 day ago

Awesome Coding by Engin Arslan is on sale on Leanpub! Its suggested price is $24.99; get it for $7.99 with this coupon: https://leanpub.com/sh/dTGjz9uB #Javascript #NodeJs

conputer dipshit
1 day ago

TIL #deno compile lets you make binaries for all platforms from the same computer. presumably because it's bundling together prebuilt platform-specific binaries with your interpreted code (or v8 snapshots) #javascript #typescript
https://docs.deno.com/runtime/manual/tools/compiler

Cross Compilation

You can compile binaries for other platforms by adding the --target CLI flag. Deno currently supports compiling to Windows x64, macOS x64, macOS ARM and Linux x64. Use deno compile --help to list the full values for each compilation target.
sumiyaki
1 day ago

Base64かなにかでテキスト化したバイナリーデータをQRコードにしておいて、それをQRコード読み取りアプリで読み込み、それをTextAreaにペーストしてJavascriptで処理するHTML、みたいな構成で行こう。
#base64 #javascript

Leanpub
1 day ago

Running Serverless by Gojko Adzic is on sale on Leanpub! Its suggested price is $34.99; get it for $27.99 with this coupon: https://leanpub.com/sh/HRQKQjxk #Javascript #AmazonWebServices #SoftwareArchitecture

CodePen.IO :verify:
1 day ago

RT Jordan Dey
Did you know you can achieve a parallax effect using the CSS 'perspective' property?
It's surprisingly simple! Take a peek at this #StarWars inspired CodePen to see the magic unfold🌌✨
🔗@CodePen: https://codepen.io/DeyJordan/pen/WNPmxro
72 lines of #CSS 🤏
23 lines of #javascript ⚛️

:sys_twitter: https://twitter.com/DeyJordan/status/1733172307596554727

Media source: https://video.twimg.com/ext_tw_video/1733170926944964608/pu/vid/avc1/720x720/Jtu1ZtZQ24NPLsDR.mp4?tag=12
Leanpub
1 day ago

The Road to GraphQL (The Bare Essentials) by Robin Wieruch is on sale on Leanpub! Its suggested price is $49.00; get it for $36.75 with this coupon: https://leanpub.com/sh/3qkvOVp4 #ComputerProgramming #Javascript #React #NodeJs #WebDevelopment

Habr
1 day ago

Тесты производительности фреймворка Cample.js. Отчёт № 0

В данной статье содержатся тесты фреймворка Cample.js бета-версии 3.2.0-beta.6 . Это нулевой отчёт о тестах. По мере изменения результатов фреймворка, возможно, смогут выйти ещё несколько отчётов. Отчёт включает в себя сравнения по скорости с популярными фреймворками и библиотекой, а также сравнение с реализацией на чистом javascript.

https://habr.com/ru/articles/779240/

#cample #camplejs #javascript #benchmark #benchmarks #testing #typescript

Leanpub
1 day ago

Large Scale Apps with React and TypeScript by Damiano Fusco is on sale on Leanpub! Its suggested price is $29.99; get it for $22.49 with this coupon: https://leanpub.com/sh/bjIuoMaO #ComputerProgramming #React #Javascript #WebDevelopment #SoftwareArchitecture #Typescript #Vuejs

pranabekka
1 day ago

i definitely didn't make a wordle :D

https://pranabekka.github.io/not-wordle.html

it's pretty terrible, but kinda fun (especially as a creative way to send a message)

features:
- no custom keyboard
- incomplete validation (any letters work; type gibberish!)
- incomplete yellow letter highlight (duplicates)
- dynamic instructions, like how many remaining letters to type!
- horrible markup and code!
- shmancy corner rounding!
- only one word! forever! (unless i change it)

#javascript

Screenshot of a web page.
Title: "Not Wordle".
Faded text: "Type guess below. NOTE: There is only one of each letter. (If yellow guesses repeat, they're incorrect)"
Then there are six rows divided into 6 cells. All the cells are empty.
Below the rows, there's an input form, with the letters "c" and "a", and below the input form is faded text saying "Type 4 letters".
TAO
2 days ago

[JsonHilo.js](https://github.com/xtao-org/jsonhilo) is participating in a [Githelp](https://githelp.app/repos/jsonhilo) trial.

At the moment this is a limited opportunity to try an early version of Githelp where you can get help and support, including direct online assistance, related to JsonHilo.js [here](https://githelp.app/repos/jsonhilo).

#jsonhilo #help #support #githelp #trial #json #parser #minimal #fast #lossless #event #streaming #sax #javascript #deno #typescript #bun #node #nodejs

Mark Croxton
2 days ago

'Fun' bug I just discovered: Cookiebot's auto cookie-blocking feature sets a MutationObserver that keeps a reference to things that you load in the DOM. Consequently, in any kind of SPA, you'll find a lot of detached nodes accumulating and you have yourself a memory leak. My solution: nuke the f*king observer, since they handily attach it to a global. If anyone has a better idea do let me know! #javascript #gdpr #cookiebot

David Dorward
2 days ago

I’ve just been debugging some #frontend code where there was an issue with the styling of some content which is removed from the DOM when the focus leaves an element.

Problem: putting the focus on the element inspector triggers the removal of the element I want to inspect.

Solution: setTimeout(function () { debugger; }), 5000) gives me five seconds to make the element display, then pauses #JavaScript so the code to remove it won’t run and I can inspect it.

Leanpub
2 days ago

The Road to Firebase by Robin Wieruch is on sale on Leanpub! Its suggested price is $49.00; get it for $36.75 with this coupon: https://leanpub.com/sh/2TYDeSLZ #ComputerProgramming #Javascript #React #WebDevelopment

Vince Aggrippino 🇺🇸🇲🇾
2 days ago

I'm using #TypeScript type checking with #JSDoc in client-side #JavaScript and I encountered this problem:

> Property 'innerText' does not exist on type 'Element'

It took a bit of searching, but I've learned that the solution for me is:

```javascript
/** @type {NodeListOf<HTMLElement>} */
```

I don't like how this is documented. It's on a page about DOM manipulation with TypeScript, which makes some sense, but I didn't see anything about doing this in JS with JSDoc. It says it's defined in lib.dom.d.ts and I thought I might have to import a type definition somehow.

I found it here:
https://www.typescriptlang.org/docs/handbook/dom-manipulation.html#the-queryselector-and-queryselectorall-methods

Error: Property 'innerText' does not exist on type 'Element'.
Paweł Grzybek
2 days ago

The `Object.groupBy()` static method is now on Safari TP. Soon to be widely available. Sick! Very useful method!

Safari TP announcement:
https://front-end.social/@jensimmons/111541780045014085

Object.groupBy() MDN docs:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/groupBy

#javascript

Steve Frenzel
2 days ago

@heydon I feel like a tool when using #JavaScript so I guess I have to spread some hate

אלה התגיות שמופיעות אצלי עכשיו ב„נושאים חמים” (סיור ← תגיות). אתן יודעות הדברים הרגילים שחנוניות קוויריות מתעניינות בהם, כפי שהיה ניתן לצפות מהפדיוורס…

#python #javascript #genocide #rstats #cats #gamedev #queer #press #linux #tech

‏😔

Webdev Weekly
2 days ago

Show HN: Recompyle – A JavaScript developer-friendly console / debugger

https://www.recompyle.com/

Discussions: https://discu.eu/q/https://www.recompyle.com/

#javascript #programming #webdev

Inautilo
2 days ago

#Development #Courses
SVG tutorial · Learn SVG step by step, from basic to advanced concepts https://ilo.im/15xcxv

_____
#Design #WebDesign #SVG #Animation #Interactivity #WebDev #Frontend #CSS #JavaScript

crs1138
2 days ago

Is it just me or is the #javascript tag for random people to have a rant about how JS is not like the other programming language they use? It’s ok to ventilate now and then but every single day?

To be different and to provide some value, here’s a link to one of my favourite YT channels dedicated to #reactjs

https://youtube.com/@cosdensolutions?si=UN7tlku375_-rjzj

quoll (√)
2 days ago

please hard code inline styles into this component.
- nobody ever

#javascript

🅰🅻🅸🅲🅴
2 days ago

Hey, I made a thing again! But it doesn't work because I don't know JavaScript or web development very well.

I would absolutely LOVE it if someone who *does* know anything about Firefox extensions, JS, or web development could take a look.

https://codeberg.org/alicewatson/paraminator

#JavaScript #Firefox #UTM #DataPollution #Data #Web #Data #Hacktivism #FuckCapitalism

Robin
2 days ago

Last month in Wasm - JavaScript
#javascript #node #wasm #componentmodel

Guy Bedford (@guybedford) from Fastly spoke at NodeConf EU last month talking about WebAssembly Components and JavaScript.
https://www.nodeconf.eu/guy-bedford-webassembly-components-and-javascript

JCO now passes 86 of the 97 test programs from Wasmtime and expects to pass all of them by end of year.

JS Party 🪩
2 days ago

💃 New episode of JS Party!

Gregg Tavares (author of WebGL/WebGPU Fundamentals) joins @jerod & @Amal to give us a tour of these low-level technologies that are pushing the web forward into the world of video games, machine learning & other exciting rich applications.

#webgl #webgpu #webplatform #javascript #videogames #totk #machinelearning #ml #browsers #podcast

🎧 https://jsparty.fm/304

Steve Frenzel
3 days ago

Anyone wants to share their long-term experience with #GitHub #CoPilot?

I'm thinking about giving it a shot for a year, especially for more complex #JavaScript stuff. And yes I know: I need to test it's output and so on.

Feel free to boost or mention anyone who might want to share 🤗

#html #css #ai #llm

ECMAScript News
3 days ago

Linear matching of JavaScript regular expressions
https://arxiv.org/abs/2311.17620

#ECMAScript #JavaScript

ECMAScript News
3 days ago

28 years ago (1995-12-04): “Netscape and Sun announce JavaScript, the open, cross-platform object scripting language for enterprise networks and the internet”
@BrendanEich
https://web.archive.org/web/20070916144913/http://wp.netscape.com/newsref/pr/newsrelease67.html

#ECMAScript #JavaScript

ECMAScript News
3 days ago

Why is `MouseEvent.target` an `EventTarget` and not a `HTMLElement`?

Why cant i do
```
onClick(event : MouseEvent) {
console.log(event.target.textContent)
}
```

It gives the error: `Property 'textContent' does not exist on type 'EventTarget'.ts(2339)`

#JavaScript #TypeScript

Harry W.
3 days ago

It's been a while since I last saw a repo that made me laugh

https://github.com/christina-de-martinez/babel-plugin-glowup-vibes

(Also, check out the issue page for extra fun)

#JavaScript #Node #JS #Programming #Funny #Tech

Karthikeyan A K
3 days ago

In #Reactjs, JavaScript contains HTML which has #JavaScript which has HTML in it. 😵‍💫😵‍💫

I'm not joking.

It's like inception.

#WebDev

Doug Parker 🕸️
3 days ago

I've been thinking about a couple topics recently and feel knowledgeable enough to write some non-bullshit content about them, so I'm curious if there's any interest on here for a #blog post on one or both of:

1. Writing optimizable #JavaScript libraries.

How bundlers work, how tree shaking and code splitting works, pure vs. impure code, top-level side effects, multiple entry points, `sideEffects`, common deoptimizations, etc.

2. #TemporalDeadZone - What is it, how you can identify it, why it's so tricky, and how to avoid it.

(You better believe #DBZ #GarlicJr is going to be the preview image for that one.)

Greatly appreciate any feedback!

tbeseda
3 days ago

If you need a #JavaScript function for “tall" strings side-by-side in the terminal: https://gist.github.com/tbeseda/4ee8ca5d41008937a18cbb3ea01de664
It could definitely be code-golf’d from 40 lines to <10, but that's not my style 🤘

@nixCraft +9001%

Same goes for all websites that prevent #AdBlocker|s from working and/or require #JavaScript and #Cookies to load.

randomMDN
3 days ago

🦖 Date.prototype.toLocaleDateString() 🦖

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toLocaleDateString

The toLocaleDateString() method of Date instances returns a string with a language-sensitive representation of the date portion of the specified date in the user agent's timezone. In implementations with Intl.DateTimeFormat API support, this method simply calls Intl.DateTimeFormat.

#webdev #JavaScript

kaiserkiwi :kiwibird:
3 days ago

Someone at work tries to push a switch to #TypeScript.

We have some problems with code quality currently but TypeScript definitely won't solve any of that. It would just introduce more problems.

It's funny that he now comes with the "shiny new thing!!!" as the whole web is deciding to completely drop TypeScript in favor of JSDoc and simple native #JavaScript.

I always dodged TypeScript and every time I had to work with it, it was just a terrible experience. I don't get why people always try to abstract stuff to learn something different instead of just learning the thing they already use correctly.

#WebDev #Coding

I created a WCtest – which is not about restrooms but web components and testing.

Ever wondered about how you could test web components with the node test runner?

Try Linkedom, which provides a minimal DOM API :)

https://github.com/learosema/wctest

#Javascript #WebComponents

data0
3 days ago

#jsonb support for #sqlite is here! I've become a big fan of using the sqlite #wasm build in the #browser. Storing #json works great and the built-in `json_*()` helpers keep abstractions in check. They're often faster than doing it in #JavaScript too. Now it's even getting better!

https://sqlite.org/forum/forumpost/fa6f64e3dc1a5d97