Show newer

@cam sorry cam you aint beating the pervert allegations

I find it very interesting that when I write words with a mouse on a computer program it looks like my handwriting if I use pen and paper

re: fantastic four 

@soft was it fun not good or bad not good

I went on wplace and tried to draw a circle and ran out of paint and was going to have to wait 10-15 minutes to recharge enough paint to close the circle and I was like "fuck this" so sorry @amy I am never unlocking medium gray

My greatest character flaw is that I'm excited that football season is almost back

@cam @Kirito are these the same people who held the pervert vote

@coriander goblins have better things to than work on esoteric programming problems

I love when you encounter a leetcode problem that is one of the most challenging problems you have ever seen in your life and you look up the solution and it is the most brilliant thing you've ever seen, and website only lists the problem as medium difficulty

@vaporeon_ I tried rewriting it with let and const and there was no real impact on the speed

@vaporeon_ I don't know Go. I said I would probably like it, but that is a gut instinct based on, like, reading Wikipedia. I've never actually used it at all.

If I ever learn Go I will happily share horrendous code I make with it to :vaporeon:

@vaporeon_ Array is the ordinary JavaScript array. using the constructor is abnormal but I know the exact size of the array so it is (probably) slightly more efficient to use the constructor so I can initialize it to an exact size.

in my experience var runs faster than let/const and its goofy scoping rules let me make the code more golfy. (I declare m in the first for loop and the return statement uses m! its terrible and i love it!!!!!!)

@vaporeon_ it is 100x slower than the optimal solution and it is Worth It

@vaporeon_ look at this beauty:

var change = function(amount, coins) {
for (var i = 0, m = new Array(coins.length); i < coins.length; ++i) m[i] = new Array(amount + 1).fill(0), m[i][0] = 1;

for (var r = coins.length - 1; r >= 0; --r) for (var c = 1; c <= amount; ++c) for (x = r; x < coins.length; ++x) if (c - coins[x] >= 0) m[r][c] += m[x][c - coins[x]];

return m[0][amount];
};

@vaporeon_ @aescling explain to me why we don't have the confused psyduck emojo

@vaporeon_ C++'s type system, since it always make me feel like :psyduck:

Show older
📟🐱 GlitchCat

A small, community‐oriented Mastodon‐compatible Fediverse (GlitchSoc) instance managed as a joint venture between the cat and KIBI families.