Cross Code
43 subscribers
233 photos
28 videos
1 file
125 links
Everyone has a channel now why not me ig.
Expect dev and gaming stuff.
In-joy

Discussions here - https://t.me/+CkXl8tSd-Ds0YmVk
Download Telegram
HTMX suing itself lmao
Ethiopian govt be like:
>We wreck ur home.
You: 😭
>We give you land and money to build new home
You:😕 ok ig better than nothing
>*gives you land and money if ur lucky *
You: Ok ok not bad ig 😐
You: * try to build a new home with the money and land they gave you *
> No No No u gotta wait for 2 years to start construction
You: FFuck YOu You MOthEr FuCKing FUck 🤬
Forwarded from Beka (Beka)
https://docs.astro.build/en/guides/authentication/#better-auth

Better Auth is now on Astro official authentication guide 🥳
Please open Telegram to view this post
VIEW IN TELEGRAM
😁1
Madrid on that crossbar challenge 😂😂😂
🎯 Nominal vs Structural Types 🎯

Nominal Types (like in Java/C#):
Types are compared by name. Even if two types look the same, they’re not compatible unless you say so (explicitly cast it).
class Cat { public int Legs; }
class Dog { public int Legs; }

Cat myCat = new Cat();
Dog myDog = new Dog();
// Error: Cannot assign Cat to Dog, even though both have Legs.


Structural Types (like in TypeScript/Go):
Types are compared by structure. If two types have the same shape, they’re compatible—even if they have different names.

type Cat = { legs: number };
type Dog = { legs: number };

let myCat: Cat = { legs: 4 };
let myDog: Dog = myCat; // No problem! They have the same structure.

💡 TL;DR:

Nominal: Focuses on the name of the type.
Structural: Focuses on the shape of the type.
Still rocking Edge and using bing as my main search engine.
First one to answer will get unlimited nightly package:
defining a type that describes any allowable JSON value.
here is the starting code:
// @errors: 2578
type JSONObject = any
type JSONArray = any
type JSONValue = any

////// DO NOT EDIT ANY CODE BELOW THIS LINE //////
function isJSON(arg: JSONValue) {}

// POSITIVE test cases (must pass)
isJSON("hello")
isJSON([4, 8, 15, 16, 23, 42])
isJSON({ greeting: "hello" })
isJSON(false)
isJSON(true)
isJSON(null)
isJSON({ a: { b: [2, 3, "foo"] } })

// NEGATIVE test cases (must fail)
// @ts-expect-error
isJSON(() => "")
// @ts-expect-error
isJSON(class {})
// @ts-expect-error
isJSON(undefined)
// @ts-expect-error
isJSON(BigInt(143))
// @ts-expect-error
isJSON(isJSON)
Forwarded from /g/‘s Tech Memes (ᅠ ᅠ)
Forwarded from Dagmawi Babi
On November 15, we are going to have an incredible conversation with Guillermo Rauch, the founder and CEO of Vercel; the platform most of us love and use! 😍

This's going to be a first for Ethiopia and our tech community, it's going to be fascinating and influential. I am excited for this and I hope you are too! 🎉

Originally from Lanús, Buenos Aires, Argentina. He was involved in creating numerous influential open source projects and his first company Cloudup was acquired by Automattic. He later created NextJS, the most popular react framework and then Vercel the cloud infrastructure focused on DX. 🔥

Along many things he has also authored one of the first books on Node.js, authored Mongoose, SocketIO and Hyper and so much more. 🤓

This is a long conversation about his early childhood, family and friends, relationships and belief, tech and hobbies, thoughts on sensitive and philosophical topics and much more. We're all going to learn a-lot from him. 🥰

The session will be a video podcast and it will be recorded and uploaded. Can't wait and until then think of questions you'd like to ask him! 🥳

#GuillermoRauch #Vercel
@DagmawiBabiPodcasts
Please open Telegram to view this post
VIEW IN TELEGRAM
1🔥1🤯1
Madrid fans chanting !Hala Madrid¡ outside the the Ballon D'or ceremony was crazy.
Ayiiii
🤣1
The app is cooked