#coffeescript

Alavi | علویalavi@techhub.social
2025-11-11
Alavi | علویalavi@techhub.social
2025-11-03

Today I forked the somewhat abandoned PivotTable.js and spent my time upgrading it's dependencies to the latest versions, even JQuery from v1 to v3, and rewriting parts of it for cleaner code and much better performance, using conditional rendering.

The library is written in #coffeescript which makes sense for the time it was created in (~10 years ago I think). But coffeescript seems downright idiotic compared to modern #javascript it only adds overhead and you will get a very unoptimized and bad js output.

I was thinking of rewriting the whole library in #typescript with functional programming patterns, or #clojurescript . I was leaning more towards clojurescript tbh.
But I realized too much work is put in this library and fully rewriting it would be very costly for me. Even though I'm getting paid to do it, we got a lot more to do.
The library is very well put together and has many capabilities. You can tell it has took a lot of time & effort.
But the code is very questionable.
Full rewrite some day maybe

Steve BarnesStarfia
2025-09-22

Night Of The Cakefile.

Steve BarnesStarfia
2025-09-21

I've always thought Nova was cool, but haven't bought it largely because neither it nor extensions have ever supported my preferred preprocessors for Web dev.

So I finally used the current free trial to make two extensions: one that nicely combines CoffeeScript and CoffeeLint for simple validation and compiling, and one nice dark theme.

Well, the trial's over. Perhaps I'll return someday and use them. ^ ^

A wide rectangular code editor in dark brown tones.
2025-06-30

6 языков программирования, которые устареют к 2026 году (вы все еще ими пользуетесь?)

Это холодная, суровая правда нашей отрасли: язык программирования, на освоение которого вы потратили годы, может устареть. В то время как программисты COBOL по-прежнему получают шестизначные зарплаты за поддержку древних банковских систем, большинство языков не наслаждаются столь длительными сумерками. Вместо этого они уходят в небытие по мере появления новых, более эффективных вариантов.

habr.com/ru/articles/923256/

#perl #coffeescript #objectivec #ruby #visual_basic_net

¿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_

🙏🏻👏🏻

Client Info

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