Anshuman Khanna
banner
anshumankhanna.bsky.social
Anshuman Khanna
@anshumankhanna.bsky.social
Software dev | Live project https://grievance.msit.in/ | I'll make everything open source
This code is very bad, tell why
April 27, 2025 at 9:55 AM
Is this fact that we can do this in C/C++ good or bad?

I find it very cool but at the same time it is doing so much in one line which seems very unreadable if it was part of production codebase
April 24, 2025 at 6:58 PM
Used \x1b[am

Where 'a' are values from 1-9
April 23, 2025 at 4:51 PM
First is using bash in vs code, second is using powershell in vs code

For both I ran using the command node --experimental-strip-types, yet I got different results, why?

@nodejs.org @mrpowershell.bsky.social

Testing ANSI sequences
April 23, 2025 at 3:46 PM
Try this
April 23, 2025 at 2:55 AM
Thanks to @t3.gg I am finally throwing errors
April 15, 2025 at 3:26 PM
I had my doubts while playing this move but it is always awesome when it works
April 13, 2025 at 6:59 PM
New high?
April 8, 2025 at 5:40 PM
You think JS has weird data type glitches?

Check out Lua

Strings and numbers can be added and can't be added depending on what the string is
April 5, 2025 at 8:27 AM
Open this site: luabinaries.sourceforge.net/download.html

Fetch binaries in the image below

Extract them and put all their contents in one folder and name that folder lua & remove '54' from the name of all .exe files

👇
April 4, 2025 at 11:44 PM
I may just start working on my portfolio with Neovim...
April 3, 2025 at 12:30 PM
This looks so cool

Command: <space>sf
April 3, 2025 at 12:24 PM
As some may know I am making a language or learning to for very near future

And I find this 👇 by @tsoding.bsky.social , is this destiny?
March 27, 2025 at 3:09 PM
This is one of the rare days when I feel real OP about my LC skills

Today's daily question (image below)

I remembered there's an alg as soon as I saw the ques but didn't remember the name so I just asked chatgpt for the name by describing the use of the alg

And solved it 😎
March 27, 2025 at 11:11 AM
Avg tech youtuber: "This is the difference between 10x (or some synonym) developer and a fresher..."
March 26, 2025 at 3:56 AM
Scripting languages devs, this is how you print an object in C++

Respect your elders
March 24, 2025 at 1:50 PM
The perfect software developer lifecycle graph doesn't exist...
March 24, 2025 at 5:23 AM
WE ARE THE TRUE LLMS
March 24, 2025 at 5:21 AM
Proof that TS is corrupted by the JS underneath

You can have ';' and ',' both as newline characters when defining an interface

Who did this and how is this still valid?

PS: This isn't my code, I strictly use ';'
March 21, 2025 at 2:25 PM
Realisation: if you are testing against constant values then 'switch' is better than 'if' because it'll raise an error if you by mistake check the same value twice

Small wins be like
March 21, 2025 at 2:19 PM
So I just saw a yt short in which someone posted a real cool animation with a few lines of CSS

I even checked out the channel to see if there the actual video has been posted only to find very basic HTML, CSS vids

I can't believe this is what people are doing now
March 20, 2025 at 9:22 PM
Binary expressions check ✅

While making this I had a doubt, it seems to me that it would be harder to implement a loosely typed language, why does JS add strings and numbers?
March 20, 2025 at 6:13 PM
I can add
March 19, 2025 at 8:43 PM
Currently my REPL can't evaluate and just outputs AST
March 19, 2025 at 8:33 PM
Someone has written an intellisense for writing out all of the possible cases while dealing with TS enums

I can't believe the level of detail here

This is not github co-pilot or some AI, this is just intellisense
March 19, 2025 at 5:43 PM