hazelweakly, to random
@hazelweakly@hachyderm.io avatar

Super useful CLI idea:

I want bash scripts, but with conveniences and lightweight dependencies that can be inlined.

Imagine a "direnv-like" standard library of functions, alongside the ability to fetch-if-not-installed certain binaries, and maybe even a super simple module system.

Then, you bake the script, and it becomes a single file bash script.

To be clear, I want to write it in bash, and have it turn into "bash that I can curl".

kkarhan,

@hazelweakly I know and I really would love to see that.

Basically porting a lot of advantages from , and to ...

Pretty shure this would require either a derivative language [i.e. "enhanced bash" / "ebash"] or require some preprocessor approach like [] and []...

kepic, to programming
kepic avatar

Functional JavaScript

Hi, as a beginner, I'd appreciate any guidance. Links to in-depth discussion, examples, and summaries would be great. I'm pretty fine with overall, and have used some FP features, but strict FP is new to me.

kepic,
kepic avatar

@ncrav
I'm probably going to do (and ), leveraging and for . Planning still going on. , on the other hand, is as much educational thing for me as it is an attempt to figure out cleaner and more readable code.

and look good, although I'm not looking to start learning yet another (meta)language at this point.

ashwin, to programming

Note to self: is really cool! Must remember to brush up on , download and install the , and start tweaking. Start with investigating why some users cannot be followed on Calckey. Something to do with older Misskey servers. Oh GOD! This just one of my gajillion unfinished projects. When am I ever going to finish them? Maybe one day, when I die, many projects will still be unfinished. I'm always a work in progress, and need not despair. 🥲

sirber, to javascript
@sirber@fosstodon.org avatar

I'm gonna remake my backup app with , instead of . More flexibility, more .

jrefior, (edited ) to javascript
@jrefior@hachyderm.io avatar
hugoattal, to javascript

I built a magnifier with @TauriApps, @vite, and called "Milky Warp" 🌌! I'm doing a few presentations for http://roller-coaster.app, and I noticed it's not easy to read text on a screen or a small video. I couldn't find a good magnifier tool, so I built one!

Of course, I didn't want to go through the hassle of setting up a C++ project with some weird shaders, so I decided to go with the awesome . Milky Warp is open source, you can give it a look, or follow this thread for a few technical explanations.

https://github.com/hugoattal/milky-warp

video/mp4

woodsbythesea, to javascript
@woodsbythesea@fosstodon.org avatar

"TypeScript sucked out much of the joy I had writing JavaScript. I’m forever grateful that @yukihiro_matz didn’t succumb to the pressure of adding similar type hints to Ruby. May we forever enjoy this beloved language without 🙏"

https://zverok.space/blog/2023-05-05-ruby-types.html

chris_hayes,
@chris_hayes@fosstodon.org avatar

@woodsbythesea As a web dev I still use both, js for simple stuff on generally static sites. But, I absolutely use TS for anything web-app-ish. I would never want to refactor a web app in JS, that's like "break stuff and move slow".
Not using TS because it's occasionally unwieldly is the same as not using AI because it occasionally makes a mistake.

hl, to programming
@hl@social.lol avatar

@sarajw This seemed to be what I needed to convince the checker that a variable was not undefined when it was in an if statement that checked exactly that, but the checker didn't realise: https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#non-null-assertion-operator-postfix-

Does seem like cheating though.

LarsFosdal, to programming
@LarsFosdal@mastodon.social avatar
itnewsbot, to programming

Angular 16 previews new reactivity model - Angular 16, the latest iteration of Google’s popular TypeScript-based web development ... - https://www.infoworld.com/article/3695589/angular-16-previews-new-reactivity-model.html#tk.rss_all

itnewsbot, to programming

Deno 1.33 debuts built-in key-value database - With newly published Deno 1.33, the project’s developers are preparing users of the Ja... - https://www.infoworld.com/article/3694935/deno-133-debuts-built-in-key-value-database.html#tk.rss_all .js

janriemer, to programming

If you thought had a crazy then you probably haven't heard of yet (by kaleidawave):

Introducing Ezno:
https://kaleidawave.github.io/posts/introducing-ezno/

"In short, it is a featuring checking, and for building full-stack (rendering on the client and server) websites."

Ezno in '23:
https://kaleidawave.github.io/posts/ezno-23/

This type system is craaaazyyy!🤪

Can't wait for 1.0! :awesome: 🚀

podperson, to programming

I think I just leveled up in , I used keyof typeof

wiredprairie, to programming

I'm enjoying the ease of use of the npm package 'postgres'. I'd tried a few other options that were a bit more "ORM" and not had great success.

It's not simple -- but that's good as it's feature set is definitely robust. Also works well with Typescript.

It took me about 45 minutes to swap from Kysely.

https://www.npmjs.com/package/postgres

#NodeJS #JavaScript #Deno #Postgresql #ECMAScript #TypeScript #NPM

wiredprairie,

@nosherwan That looks nice too!

I'm including in my project an abstraction layer for data access so that when I inevitably feel the need to switch to a different library (or database!), the code I'll need to change will be contained.

One option I'd tried was TS first, but couldn't represent all the column/indexing/FK relationships.

ricard, to javascript
@ricard@ricard.social avatar

:javascript: moving from TS to JSDoc, love it 💜

➡️ https://github.com/sveltejs/svelte/pull/8569

Comment from Rich Harris: https://news.ycombinator.com/item?id=35892250

vintprox,
@vintprox@techhub.social avatar

@ricard

It's an interesting route, and I didn't see much projects that would move away from to type hints. I tried writing generics in it some months ago and didn't find this experience pleasing at all. But I hope this doesn't serve as a limitation for making type-safe.

nosherwan, to javascript
@nosherwan@fosstodon.org avatar

:javascript: :typescript:

JavaScript framework fatigue is real.

Especially for full stack devs.



mojoaxel, to programming German
@mojoaxel@social.tchncs.de avatar

Wenn ihr z.B. von den #layoff bei #shopify betroffen seit und mal was ganz anderes braucht schaut doch mal die #Stellenanzeige von uns an.

Wir bieten #remotejobs mit #teilzeit option unter sehr flexiblen und entspannten Bedingungen. Stack ist #angular und #svelte.

Wir sind zwar nur ein sehr kleines Team aber z.B. jungen Eltern oder Menschen in einer psychischen Krise können wir eine echte Alternative bieten!

#FediJob #FediJobs #FediHired #hiring #job #finta #FintaJob

https://fullstax.de/jobs/

mojoaxel,
@mojoaxel@social.tchncs.de avatar

@below Hate is a strong a word!
has it's usecases!
If you for example have a project that could be realized with one developer in 1 month but you have 3 developers that need work just tell the client that your team uses typescript and that it costs 3 developers for 3 month.
So I learned to embrace in my company 😉

mojoaxel,
@mojoaxel@social.tchncs.de avatar

We are a small fully remote team and we offer very flexible working conditions on high-quality business applications for people who love and but may need a break from big corporations and over-demanding agencies.

https://www.linkedin.com/jobs/view/3382606723/

podperson, to programming

I think needs to be described as a programming language for describing types that generates error messages which are often helpful, sometimes perplexing, and occasionally make you want to set fire to something, rather than a “superset of Javascript” (which it most definitely is not*).

(* Want an example? Javascript has true private class properties.)

jamesshore, to random
@jamesshore@mastodon.online avatar

This week on my stream with @jitterted, we discuss estimation, responding to dealine pressure, academic studies, and more. Oh, and our tests find a bug that only could expose!

Episode 19: For the Win. https://www.jamesshore.com/v2/projects/nullables/jitterted-livestream/19-for-the-win

jamesshore,
@jamesshore@mastodon.online avatar

This is the final episode of the season, but we'll be back in two weeks with an interesting new problem: a natural-language role-playing game. We'll be using + with a + back end to integrate with . Should be super interesting.

That starts in two weeks—the livestream is May 8th from 1-4pm Pacific, and the recording will go up on May 12th. Calendar reminder here:

https://www.jamesshore.com/v2/calendar/nullables-livestream

SenseException, to programming German
@SenseException@phpc.social avatar

Don't export in that shouldn't be accessible. You can find unused exports with ts-unused-exports.
https://github.com/pzavolinsky/ts-unused-exports

sirber, to random
@sirber@fosstodon.org avatar

I'm not a front-end developer.

nosherwan,
@nosherwan@fosstodon.org avatar

@sirber I am not a full-stack web developer I am a mental patient

#fullstack
#webdev
#javascript
#typescript

full stack web developers sleep wide awake.

anders, to javascript
@anders@mastodon.cyborch.com avatar

Was C++ always super annoying to work with, or did I just grow dumber with age? Was Visual Studio always so fragile and error-prone, or did I just get used to good IDEs?

Confusingly, VS Code seems massively better than Visual Studio. Intellisense handling for TypeScript in VSCode seems so much more stable than it does for C++ in VS.

Wasn't VS supposed to be an upgrade from VSCode?

Wasn't C++ supposed to be more type-safe than TypeScript?

  • All
  • Subscribed
  • Moderated
  • Favorites
  • provamag3
  • InstantRegret
  • mdbf
  • ethstaker
  • magazineikmin
  • GTA5RPClips
  • rosin
  • thenastyranch
  • Youngstown
  • osvaldo12
  • slotface
  • khanakhh
  • kavyap
  • DreamBathrooms
  • JUstTest
  • Durango
  • everett
  • cisconetworking
  • Leos
  • normalnudes
  • cubers
  • modclub
  • ngwrru68w68
  • tacticalgear
  • megavids
  • anitta
  • tester
  • lostlight
  • All magazines