#CoffeeScript

¿Alguien usa, a día de hoy, CoffeeScript? No dejo de encontrarme bibliotecas con este metalenguaje.
#javascript #coffeescript

Random Geek in limborandomgeek@hackers.town
2025-04-08

Civet looks interesting. It's basically #CoffeeScript for the #TypeScript world, adding type checking and implementing several TC39 proposals along the way.

Editor support is currently limited to VS Code, but maybe that'll expand if it catches on.

import * as fs from "fs"
import * as path from "path"
import * as transit from "transit-js"

GRAPH_FILE_PREFIX := "logseq_local_"
GRAPH_FILE_PATH_SEP := "++"
GRAPH_NAME := "my-logseq-brain"

type GraphLabel =
    transit_path: string
    dir: string
    name: string

label_graph := (transit_folder: string, basename: string): GraphLabel ->
    transit_path := path.join(transit_folder, basename)
    dir := path.basename(basename, ".transit")
        .replace ///^ ${GRAPH_FILE_PREFIX}///, ""
        .replaceAll GRAPH_FILE_PATH_SEP, path.sep
    name := path.basename dir
    {transit_path, dir, name}

transit_folder := "/Users/random/.logseq/graphs/"
graph_label := fs.readdirSync(transit_folder)
    .map (name: string) => label_graph transit_folder, name
    .filter (g: GraphLabel) => g.name == GRAPH_NAME
    |> &.0
 
console.table graph_label

transit_data := fs.readFileSync graph_label.transit_path
    |> .toString()
    |> transit.reader("json").read

console.log(transit_data)> js_logseq_graph@1.0.0 main
> npx civet src/index.civet
 
transit_path: '/Users/random/.logseq/graphs/logseq_local_++Users++random++Documents++my-logseq-brain.transit'
dir: '/Users/random/Documents/my-logseq-brain'
name: 'my-logseq-brain'

{
  tag: 'datascript/DB',
  rep: {
    _entries: [ [Object], [Object], [Object], [Object] ],
    backingMap: null,
    hashCode: -1,
    size: 2,
    accesses: 0
  },
  hashCode: -1
}
Caleb Albrittoncaleb@ruby.social
2025-03-12

Probably 5+ years ago, before I started downloading any youtube video I wanted to keep I bookmarked a video.

youtube.com/watch?v=DspYurD75N

CODE GENIUS - Rise of the Transpilers by Jeremy Ashkenas.

If anyone has a copy of that video I'd greatly appreciate it.

#transpilers #coffeescript

Cédric Belincedx
2025-01-17

These are great times.
I've just created a tiny .NET Windows Forms application... in CoffeeScript! Thanks to the "Node API for .NET" library.
Just CoffeeScript, not a single line of C# code.

microsoft.github.io/node-api-d

A CoffeeScript code snippet for developing a .NET Windows Forms application.
Todd A. Jacobs | Rubyisttodd_a_jacobs@ruby.social
2025-01-12

@cedx I think it's a great option for #Rubyists that need some #JS without having to master the whole JS language or one of its many frameworks first. However, transpilers are abstractions, and all abstractions are leaky. Native idioms can sometimes be more optimal, and it can be hard to debug transpiled code if you haven't mastered the target language too.

Choosing #CoffeeScript as a transpiler over native #ECMAscript is therefore a trade-off. There's no canonical right answer.

Cédric Belincedx
2025-01-12

Is CoffeeScript dead?!?

(Go to npmjs.com...)

I don't think so: 1.2 million downloads per week! 🥳

npmjs.com/package/coffeescript

Cédric Belincedx
2024-11-01

CoffeeScript...

Me at 35-40yo: yuck!
Me at 50yo: nice! 🥰

The syntax takes a little getting used to, but in the end it's great fun and elegant.

coffeescript.org/

Makanomakano
2024-07-22

In the world of typescript and javascript had long been forgotten the existence of a mighty language, CoffeeScript, a language many lacked what they sought.

I am here to present to you Rew, A runtime that integrates tools from many people to enhance the use of coffeescript and make it a proper language, with the goal of introducing coffeescript to the world again.

kevinj045.github.io/rew-docs

Braw ☕🏳️‍🌈brawaru@mstdn.social
2023-10-05
2023-09-26

Do you like significant indentation?

(e.g., #Scala 3, #Python, #YAML, #CoffeeScript)?

2023-09-19

It's exciting to see how far one can get with #webcomponents (custom elements) and #vanillajs nowadays. If you want to follow what @_web_ is doing rewriting old #coffeescript and #jquery based JS into modern #es6 just keep an eye on latest PRs of the 7.1 milestone

github.com/AlchemyCMS/alchemy_

🙏🏻👏🏻

Christiaan KrasHtbaa@fosstodon.org
2023-07-24

@danjac I still have a couple of SPA’s to manage that are about 9-10 years old. Written in #CoffeeScript 1 (not too bad) and #BackboneJS with a #Perl #Mojolicious backend.

Getting to run the JS dev stuff and keeping it up to date, or rather working with a newer Node version is challenging. Looking back it being a SPA doesn’t do much for 85% of these apps. I should’ve used some #jQuery instead for the interactive parts. That way I could’ve moved to #htmx without any issue.

2023-07-15

Another cool presentation from TPRC. Ingy talks about a #coffeescript style destructuring syntax for #perl which he hopes to introduce as a core language feature: youtu.be/ifoYsubNRj4

Destructuring allows you to dereference and assign elements of a data structure in one go. Rather than have multiple assignment statements, you can reference key names and apply names to array elements by appropriately structuring the LHS clause of a single assignment statement.

WIP: metacpan.org/dist/assign/view/

Todd A. Jacobs | Rubyisttodd_a_jacobs@ruby.social
2023-07-12

Can anyone recommend a good #RubyLang #SDK for working with #GoogleAppsScript? I'd prefer to avoid working directly in #JavaScript, but transpilers like #CoffeeScript and others have their own problems.

2023-05-02

Back when Bruce Tate was inviting people to learn a programming language per year, I thought it was silly, but seeing people getting stuck in a single ecosystem, I can see the point.

I'm primarily a #Scala dev, as I love the language & ecosystem. My profile usually doesn't say that I've also worked professionally w/ #Python, #Ruby, #PHP, #Perl, #CSharp, #JavaScript (+#CoffeeScript, #TypeScript), #CPP, #Bash, others.

It's in the job description 🤷‍♂️

2023-02-28

Just learned about #civet (aka #CoffeeScript for #TypeScript, civet.dev).

Haven't formed an opinion on it but once I figured out the origin of it's name I burst out laughing 😂

Caleb Albrittoncaleb@ruby.social
2023-02-28

I unabashedly loved CoffeeScript and still do. I even had a little fork of CoffeeScript 2 where I integrated a rejected PR for CS 1 to add the pipeline operator, but they were all just impractical fun compiler exercises. So imagine my surprise when I saw that someone had reached up inside my brain and pulled out my worst fun idea, and made it a reality. Behold #CoffeeScript for #TypeScript with a pipeline operator and everything else you could want!

civet.dev/

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst