Now in @rinkkasatiainen's session on
functional programming with #TypeScript. #SoCraTes2022
#TypeScript
83 tweets
Tip for the #AWSCDK #TypeScript users: In order to ensure that the outputs of
your CloudFormation Stacks are typed properly, you can use this technique.
https://github.com/coderbyheart/typesafe-stack-outputs-cdk#readme
Really happy to have #rustlang in my #TypeScript toolchain. @swc/jest is so fast
it's really a joy to write tests:
https://github.com/distributeaid/needs-assessment-storage/pull/63/commits/e0d674b8e5ca0ef239e1102fccd0111cbed1fb91#diff-ca11e937780ce79128e2d43440e1168009bad2a12cc7313e6e782f5ea28326a9R207-R230
@kolencherry Sorry, no dice in #TypeScript:
I have a #TypeScript mapped type problem I don't know how to tackle:
I am looking for a way to turn this JS object: { a: true, b: false } into this
TS type: { a: string, b?: string }
Any pointers?
Are you like me drinking the @ReproBuilds
kool aid and configure your JavaScript projects using environment variables ALL
THE TIME? I use a little helper which complains if they are missing and
otherwise plays nice with #TypeScript:
https://www.npmjs.com/package/@nordicsemiconductor/from-env
#typescript 4.5 has been released and now it fails to compile code because of
TS2589: Type instantiation is excessively deep and possibly infinite.
Some combination of fp-ts, typebox is causing this now.
I am now investing more time in outreach efforts to universities, and I also
have hired a student (who is studying electrical engineering right now) and
started to teach them the necessary skills to build #serverless #iot cloud
solutions using #JavaScript / #TypeScript.
Come work with me in one of these amazing places in Europe, where
@NordicTweets has R&D offices, on the
technology that enables the next billion devices to connect to the cloud. 🌩️
#cellularIoT powered by #serverless, #typescript, and #opensource:
https://candidate.hr-manager.net/ApplicationInit.aspx?cid=278&ProjectId=176961&DepartmentId=7392&MediaId=5&SkipAdvertisement=False
#job
So many improvements to #TypeScript center around classes. I've stopped using
classes in TypeScript ~2 years ago and don't miss anything.
https://devblogs.microsoft.com/typescript/announcing-typescript-4-3-rc/
About the process: we are looking for people who love to make technology more
accessible, through great examples and documentation. That's why we try to
figure out your skills as a cloud engineer by checking for your #JavaScript and
#TypeScript skills in a coding challenge.
I already use ajv to do runtime validation but just learned from @arrowoodtech
about https://github.com/sinclairzx81/typebox which simplifies creating the
#TypeScript types for the consuming code after validation passes. #NodeCongress
Migrating to #AWS SDK v3 for JavaScript
In this blog post I will summarize my findings when migrating the AWS flavour of
Bifravst to version 3 of the AWS SDK.
First-class #TypeScript coming to version 3 of the AWS SDK:
https://aws.amazon.com/blogs/developer/first-class-typescript-support-in-modular-aws-sdk-for-javascript/
via @awscloud
It's really annoying that @Azure is not keeping
their NPM release in sync somehow.
I cannot use @azure/arm-deviceprovisioningservices and @azure/arm-appservice at
the same time without #TypeScript complaining because they depend on different
versions of @azure/ms-rest-nodeauth.
It gets a little painful to keep CRA and #TypeScript working nicely together, so
I am really thinking about trying on of the new build-free tools like @pikapkg's
Snowpack or Vite.js...
https://ts-ast-viewer.com/ by
@DavidSherret is amazing: it shows the
compiler API calls needed to created a certain #TypeScript code:
#typescript generator problem: how can I generate a type reference node with
array access?
#TypeScript 4 Beta is here and brings amongst others typing of variadic function
arguments!
https://devblogs.microsoft.com/typescript/announcing-typescript-4-0-beta/
Yes, #TypeScript should solve these ambiguities of #JavaScript.
To prevent unintended behaviour like this I have the
https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/strict-boolean-expressions.md
eslint rule enabled, which will detect this and one needs to explicitly test for
undefined or 0. https://twitter.com/boennemann/status/1275855456360153089
CodeArtifact is a new npm compatible package registry from AWS:
https://aws.amazon.com/about-aws/whats-new/2020/06/introducing-aws-codeartifact-a-fully-managed-software-artifact-repository-service/
#javascript #typescript
I've started to implement an SDK for a REST API from scratch in #TypeScript
using #fp-ts, and I like how simple the interaction with the client is, even for
following links or recursive fetching pages:
https://github.com/distributeaid/flexport-sdk-js
Hooks, because Classes in JavaScript are useless cruft.
The biggest gamechanger for #React development is using #TypeScript, so THAT as
well. https://twitter.com/ASpittel/status/1248314908535656448
Yesterday I ran into a #TypeScript challenge which I could not solve. I want a
generic wrapper function, which preserves the return type of the passed wrapped
function:
https://www.typescriptlang.org/play/?target=6&ssl=1&ssc=1&pln=17&pc=1#code/MYewdgzgLgBATgUynAnjAvDAPAJQDQwAqMCAHlAmACYQwAUAlBgHwwAKcIAtgJYQK5mzOmACuXQnB4IIALhhiuAIwRwm6VgEMIKMMHoAoAJAAzMPMJ4D65sbAIA7u069+gunUQQQAGwBuCASIAFYIwFA2xqZgjDAA9HEwAIIQEOIIMFAAFpqwZjB88EhSCFQwAAaKktIQ5Zk8XDIwKiYgiAWwhSFhFFRRRgB02ZSeMr4BDP0DwLnAWaOh4QxWRpMGCTAAwoi5TZowjdkgZdm5MA48Pj5FyGjDMAAO2vxlJqJ6UDzgMACs9Y0QAygSCwRC3P6YMGoOg-NYbMAFWgcbh8ATvADWYBADjAzAIWWxMCoIBgAEkYABzJCZEkqZwotyKFRwWzA6AKDA3VA-Dw2emuBADLzjBB0AAsACYGEx1okBvKYG1+aisNApGAKazwOzaJDiigebENMr+EKxv5RQByVogS3SmAGIA
#followerpower
JobAlert: we are hiring a #frontend developer for #Trondheim again!
If you love working on tools like
https://www.nordicsemi.com/Software-and-tools/Development-Tools/nRF-Connect-for-desktop
for multiple platforms, apply today and join an amazing team
@NordicTweets building tools using #Electron
and #TypeScript:
https://candidate.hr-manager.net/ApplicationInit.aspx/?cid=278&departmentId=7392&ProjectId=176854&MediaId=5&SkipAdvertisement=false
My equivalent is running compiled #TypeScript but forgetting that I added source
code in a new additional folder, so everything compiled now suddenly is in
subfolders. The old compiled source still exists, but is no longer updated...
https://twitter.com/christina_haaa/status/1233771761042280448
#TypeScript 3.8 has been released. It ships with top-level await!
https://devblogs.microsoft.com/typescript/announcing-typescript-3-8/
I've completed "Planet of Discord" - Day 24 - Advent of Code 2019 using
#TypeScript https://adventofcode.com/2019/day/24 #AdventOfCode
Code:
https://github.com/coderbyheart/adventofcode/tree/149e7f33479b806139d9a6c95faa2892238e8157/day24
My visualization of the example looks like a 🎄!
I just completed "Category Six" - Day 23 - Advent of Code 2019 in #TypeScript
https://adventofcode.com/2019/day/23 #AdventOfCode
Code:
https://github.com/coderbyheart/adventofcode/tree/63653be458a3c31a283f6be90a1416fd7060d740/day23
I've completed Part One of "Slam Shuffle" - Day 22 - Advent of Code 2019 using
#TypeScript https://adventofcode.com/2019/day/22 #AdventOfCode
Code:
https://github.com/coderbyheart/adventofcode/tree/1132dc3f339d28c0fca73d911b93d40f30388898/day22
I tried to solved part 2 using a linked list, but that's totally not the way to
solve it, instead it's math.
I just completed "Springdroid Adventure" - Day 21 - Advent of Code 2019 using
#TypeScript https://adventofcode.com/2019/day/21 #AdventOfCode
Code:
https://github.com/coderbyheart/adventofcode/tree/d468b580f6828f525374da4b68c4553fd2d6f394/day21
I've completed "Donut Maze" - Day 20 - Advent of Code 2019 in #TypeScript
https://adventofcode.com/2019/day/20 #AdventOfCode
Code:
https://github.com/coderbyheart/adventofcode/tree/a4b3761d996cb525839e2f29a091666eae2672e5/day20
I've completed "Tractor Beam" - Day 19 - Advent of Code 2019
https://adventofcode.com/2019/day/19 #AdventOfCode in #TypeScript
Code:
https://github.com/coderbyheart/adventofcode/tree/fef4a1d5c612d262107d70da7f3c6cf41e77ba77/day19
Didn't have so much time today, so I am going to share my partial solution for
"Many-Worlds Interpretation" - Day 18 - Advent of Code 2019 in #TypeScript
https://adventofcode.com/2019/day/18 #AdventOfCode
Code:
https://github.com/coderbyheart/adventofcode/tree/6b3d2dae0e756e276068e115bc4b557101fc8696/day18
I've completed "Set and Forget" - Day 17 - Advent of Code 2019
https://adventofcode.com/2019/day/17 #AdventOfCode using #TypeScript
Code:
https://github.com/coderbyheart/adventofcode/tree/e621d5d2b9c0c57c7f3ad492293f913884fcf099/day17
However, I solved part 2 only manually, but described how to solve it (maybe
I'll get to this later):
https://github.com/coderbyheart/adventofcode/blob/93a2d99630efe62de7aee48ff22827accdd1f01b/day17/README.md#note
I've completed Part One of "Flawed Frequency Transmission" - Day 16 - Advent of
Code 2019 in #TypeScript https://adventofcode.com/2019/day/16 #AdventOfCode
Code:
https://github.com/coderbyheart/adventofcode/tree/f1fa5e67c01fa05413de143dd7c047f1e88a8824/day16
I've completed Part One of "Oxygen System" - Day 15 - Advent of Code 2019 in
#TypeScript https://adventofcode.com/2019/day/15 #AdventOfCode
Code:
https://github.com/coderbyheart/adventofcode/tree/f8682b89308f8bb189ffcbabd2e8ee1f264587e9/day15
I only completed Pt.1, for Pt.2 I need to modify my cave explorer to explore
everything, not just to the oxygen tank...
I just completed "Space Stoichiometry" - Day 14 - Advent of Code 2019 in
#TypeScript https://adventofcode.com/2019/day/14 #AdventOfCode
Part 1 took me rather long to figure out ... and I needed to refactor it quite
significantly for the binary search in Part 2:
https://github.com/coderbyheart/adventofcode/tree/d0bcdd377b9883ea089c648d5cf136523546c1b9/day14
I just completed "Care Package" - Day 13 - Advent of Code 2019 in #TypeScript
https://adventofcode.com/2019/day/13 #AdventOfCode
Code:
https://github.com/coderbyheart/adventofcode/tree/85dcc3c0289f1ea903f9eb278b520766db5c977f/day13
I just completed "The N-Body Problem" - Day 12 - Advent of Code 2019 in
#TypeScript https://adventofcode.com/2019/day/12 #AdventOfCode
Code:
https://github.com/coderbyheart/adventofcode/tree/aeb2d6c4bc1c3bfce13029a84a11ac40dce545be/day12
I just completed "Space Police" - Day 11 - Advent of Code 2019 using #TypeScript
https://adventofcode.com/2019/day/11 #AdventOfCode
https://github.com/coderbyheart/adventofcode/tree/7b6fbf7d99c41249d3d6373fa744a4d4eae59f03/day11
I just completed "Monitoring Station" - Day 10 - Advent of Code 2019 in
#TypeScript https://adventofcode.com/2019/day/10 #AdventOfCode
Got a little bit sidetracked, because I tried to solve it first using Bresenham
line drawing, but I missed some fineprint.
https://github.com/coderbyheart/adventofcode/tree/94567bbfe6f9bf63ead0780e90d7254d2a6fa2cd/day10
I just completed "Sensor Boost" - Day 9 - Advent of Code 2019 in #TypeScript
https://adventofcode.com/2019/day/9 #AdventOfCode
Code:
https://github.com/coderbyheart/adventofcode/tree/0b9352547fab5ca25f15c0ffb5911f2cfa222050/day9
I just completed "Space Image Format" - Day 8 - Advent of Code 2019 using
#TypeScript https://adventofcode.com/2019/day/8 #AdventOfCode
Code:
https://github.com/coderbyheart/adventofcode/tree/6fc9725c229802a6031f3fc9a1f6237421612bae/day8
I've completed Part One of "Amplification Circuit" - Day 7 - Advent of Code 2019
with #TypeScript https://adventofcode.com/2019/day/7 #AdventOfCode
Code:
https://github.com/coderbyheart/adventofcode/tree/a3ce4d1fbfd2562eb045f9daeab8f92f608575b1/day7
I failed on part 2, though.
I just completed "Universal Orbit Map" - Day 6 - Advent of Code 2019 using
#TypeScript https://adventofcode.com/2019/day/6 #AdventOfCode
Code:
https://github.com/coderbyheart/adventofcode/tree/be5224e4569926b9b26530ef1fb968c497c7ccf6/day6
@Azure Inventor of #TypeScript, has broken typings:
https://github.com/Azure/azure-iot-sdk-node/pull/663
I'm happy to report that @PrettierCode and
#typescript @geteslint do work now perfectly
with the new optional chaining and nullish coalescing operators!
#prettifyalltehthings
I just completed "Sunny with a Chance of Asteroids" - Day 5 - Advent of Code
2019 using #TypeScript https://adventofcode.com/2019/day/5 #AdventOfCode
Code:
https://github.com/coderbyheart/adventofcode/tree/78439fa3cc292bc0be33e08397ac36b4e4e516a5/day5
I just completed "Secure Container" - Day 4 - Advent of Code 2019 using
#TypeScript https://adventofcode.com/2019/day/4 #AdventOfCode
Code:
https://github.com/coderbyheart/adventofcode/tree/cfeac34c9d1676fb7eed2de453e9aecf42aabb0e/day4
@chaos_monster
@kotzendekrabbe
@typescript I would, by I code #TypeScript
without interfaces.
Or Classes.
#inheritanceisalie
Anyone doing #AdventOfCode using @GiulioCanti
fp-ts (https://github.com/gcanti/fp-ts)?
Would love to use it as a learning exercise!
I have this small 40 liner of #TypeScript in now three projects, and am looking
forward to try putting it on @pikapkg:
https://www.pika.dev/code?ref=yWuYbGJiiyTO8ZTRYKa7
I've just released https://github.com/bifravst/cloudformation-cleaner which is
a #TypeScript #AWS CDK project that cleans up left-over stacks from CI runs
because although your CI runs should clean up after themselves, there still
might be stacks that get not cleaned up perfectly.
The 5 Big Features of #TypeScript 3.7 and How to Use Them
https://httptoolkit.tech/blog/5-big-features-of-typescript-3.7/
Functional programming in #typescript https://gcanti.github.io/fp-ts/
@gr2m @typescript
@StandardJS The #TypeScript linting landscape
is moving a little right now, TSLint is getting replaced by ESLint:
https://github.com/palantir/tslint/issues/4534 - so it will be a while until
this stabilizes.
Have you tried: https://github.com/standard/standard#typescript ?
Did somebody already talk / write about replaced tools like immer.js /
immutable.js with #TypeScript's readonly keyword (which is availabel for arrays
since 3.4 as well)?
https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-4.html
I blogged about the latest (and greatest?) way I could come up with to publish
@awscloud lambdas written in #TypeScript:
https://coderbyheart.com/how-i-package-typescript-lambdas-for-aws/
How are you doing that?
#TypeScript 3.4 is here and it adds readonly for array/set method parameters
(👍) and a refactoring helper for option objects (❤️)!
https://devblogs.microsoft.com/typescript/announcing-typescript-3-4/
HA!
I know use objects as arguments forever in #TypeScript to functions, because
this is always annoying:
const f1 = (arg1: string, arg2: boolean) => { // validate args, but must use
new name const _arg1 = v1(arg1); const _arg2 = v2(arg2); }
but this is cool:
I am getting more and more convinced that classes in #JavaScript or #TypeScript
are an anti-pattern. At least in the way I use them.
https://coderbyheart.com/towards-class-less-javascript/
Value Types: https://coderbyheart.com/value-types/ On runtime validation with
#typescript.
In 2019:
- Frameworks and tools don’t last in #JavaScript. Don’t hold on to your current
tools too tightly. - #React will be the dominant framework.
- You’ll need to learn #GraphQL.
- Somebody on your team will bring in #TypeScript.
https://twitter.com/npmjs/status/1070773962945245184
The #JavaScript SDK for @awscloud has been
revamped in #TypeScript and is now available as a developer preview:
https://aws.amazon.com/blogs/developer/new-aws-sdk-for-javascript-developer-preview/
Yeah! #JavaScript developers be like
<3 #TypeScript <3 #FunctionalProgramming !
https://twitter.com/marcoemrich/status/1027950956619677696
This requires substantial experience with building web-based applications on
#AWS (especially #serverless services AND #IoT) and deploying and operating
these services, as well as significant proficiency in #Nodejs, #TypeScript and
#TDD in general.
(🔁 for the night shift) Today I blogged about Value Types: a simple and
expressive way for arguments to ensure validity and convey semantic meaning in
code at the same time. Like Value Objects, but different.
https://coderbyheart.com/value-types/ #TypeScript #cleancode
I blogged about Value Types: a simple and expressive way for arguments to ensure
validity and convey semantic meaning in code at the same time. Like Value
Objects, but different. https://coderbyheart.com/value-types/ #TypeScript
#cleancode
If you'd like to build #IoT solutions using #JavaScript / #TypeScript on AWS,
you can join my team in Trondheim now!
https://candidate.hr-manager.net/ApplicationInit.aspx?cid=278&ProjectId=175679&MediaId=5
/status/1007239000053243904
Learning about #TypeScript decorators from @returnthis #ndcoslo
This requires significant experience with building web-based applications on
@awscloud (especially #serverless services and
IoT) as well as deploying and operating these services Proficiency in #Nodejs,
#TypeScript and test-driven development #TDD in general.
Yesterday I started looking into generating API clients for JavaScript off a
OpenAPI 3 definition. Using the #TypeScript Compiler API the result is pretty
neat:
https://github.com/nRFCloud/api-client-javascript/blob/71672ff51ff51b465c084ce495d31c9a44c9eac2/generated/client.ts#L49
Tried to write a connected HOC in #TypeScript that wraps another HOC now for
over two hours. TS really gets in the way in this case.
Another day where I want to shoot #TypeScript:
Post in the Tumblr Engineering blog comparing #Flow and #TypeScript:
https://engineering.tumblr.com/post/165261504692/flow-and-typescript/amp
Please, #TypeScript get out of my way, I know what I am doing. >
Why is #TypeScript killing my code here? [...Array(2)].map(() => 'f'); is
converted to Array(2).slice().map(function () { return 'f'; });
What annoys me about #TypeScript is that tslint and tsc are two separate things.
Why isn't tslint using tsc?
Should I add one more? #TypeScript and signature overloading is fun ;-)
#typescript question: https://jsfiddle.net/s14st9dm/
How can I make myProp2 have the default value if I don't supply it in the
argument object?
#TypeScript won:
https://medium.com/@basarat/typescript-won-a4e0dfde4b08#.d3h1oafxy (ok, I'll
check it out …)
