tyler

joined 2 years ago
[–] tyler@programming.dev 2 points 5 hours ago

I agree with everything you said. I tried the Sonic kart game recently and it just felt like a cheap knockoff of mario kart. Like yeah they added new stuff, but it wasn't fun. Idk how to explain it.

[–] tyler@programming.dev 1 points 6 hours ago

I'm not saying I don't understand them. I'm saying the syntax is terrible. Compare it to Ruby (or any other modern language) and it's abundantly clear.

python (uses syntax not available in any other top 25 language)

print([j**2 for j in [2, 3, 4, 5]]) # => [4, 9, 16, 25]

ruby (normal chain syntax with map)

puts [2, 3, 4, 5].map{|j| j**2}

even kotlin is more readable, even though you have to convert to a double and back kotlin

val list = listOf(1,2,3,4)
println(list.map{it.toDouble().pow(2.0).toInt()})

For nested cases it's even more apparent:

python

digits = [1, 2, 3]
chars = ['a', 'b', 'c']    
print([str(d)+ch for d in digits for ch in chars if d >= 2 if ch == 'a'])    
# => ['2a', '3a']

ruby

digits = [1, 2, 3]
chars = ['a', 'b', 'c']   
digits.product(chars).select{ |d, ch| d >= 2 && ch == 'a' }.map(&:join)

kotlin

val digits = listOf(1, 2, 3)
val chars = listOf('a', 'b', 'c')
println(digits.flatMap { d ->
    chars.filter { ch -> d >= 2 && ch == 'a' }.map { ch -> "${d}${ch}" }})

just from a base level, you have to read the middle of the comprehension first, then the end, then the beginning. It's a completely backwards way to write and read code. unlike other languages that use a 'functional' approach, where it's chained methods or pipes, etc. Even Elixir, which does have list comprehensions, reads and writes in the proper order:

elixir

for x <- 0..100, x * x > 3, do: x * 2
[–] tyler@programming.dev 1 points 6 hours ago

That was with an essentially infinite supply of people to sell to. There’s only 10k of these things, and putting it on the internet insures that you’re only going to get an incredibly small fraction of the gold sold back to gold stores.

[–] tyler@programming.dev 1 points 6 hours ago

If there’s only 10k of them, you would definitely make more money collecting those yourself. Putting it on the internet like that ensures that every gold store in the country starts getting those.

[–] tyler@programming.dev 2 points 19 hours ago

So now imagine that penetrating an entire company now just involves sending the right email to the new AI CEO.

[–] tyler@programming.dev 18 points 19 hours ago

This isn’t dull. What is this?! /c/excitingwildlifestories!?!?!

So damn cute.

[–] tyler@programming.dev 3 points 1 day ago (1 children)
[–] tyler@programming.dev 38 points 1 day ago (8 children)

Why would you reveal this with a video? Like…this is literally free money for the taking.

[–] tyler@programming.dev 43 points 1 day ago (9 children)

I in fact do not know the one on the right.

[–] tyler@programming.dev 9 points 1 day ago

lol get wrecked felon

[–] tyler@programming.dev 2 points 1 day ago

Probably because the air is so incredibly thin because of incredibly tight tolerances.

view more: next ›