decivex

joined 1 year ago
[–] decivex@yiffit.net 1 points 4 months ago

It doesn't help that there's basically no documentation for how to use the Gecko engine either.

[–] decivex@yiffit.net 2 points 4 months ago

The engine is where like 95% of the complexity lies though. Maybe more.

[–] decivex@yiffit.net 16 points 4 months ago

In this case having more browser engines not under Google's control is probably a good thing. Although this effort might've been better spent working on Servo.

[–] decivex@yiffit.net 5 points 4 months ago

You don't really get the personal touch there though.

[–] decivex@yiffit.net 22 points 4 months ago (6 children)

I think it's most likely pressure from payment processors.

[–] decivex@yiffit.net 2 points 4 months ago (2 children)

In what way is it less effort than vim? I've tried helix a little bit and it didn't seem that different.

[–] decivex@yiffit.net 1 points 4 months ago* (last edited 4 months ago) (1 children)

I know I'm being somewhat pedantic but range() returns an iterable range type, not a list, in python 3.

[–] decivex@yiffit.net 4 points 4 months ago

Make your own rules.

[–] decivex@yiffit.net 5 points 4 months ago* (last edited 4 months ago)
  1. list.append returns None so what you've actually got is a list comprehension that generates a list containing the value None 19 times. (using functions with side effects, such as list.append, in list comprehensions are generally bad style so you should avoid this)
  2. The list[...] syntax retrieves elements from the list, which is not what you're trying to do here. (and it is actually invalid syntax in this case)
  3. You should generally avoid calling lists list, because list is already a builtin.

If you want to append the numbers 1 to 19 to a list as you're trying to do you can call the list.extend function with the list comprehension [value for value in range(1, 20)] as the argument. (Although in this case you can also just use the range directly.) To do it without list comprehensions you can simply loop over the range and repeatedly call the append function.

[–] decivex@yiffit.net 7 points 4 months ago (4 children)

Thanks! I just won the game!

[–] decivex@yiffit.net 14 points 4 months ago

It's not a paper, it's a stream-of-consciousness style blog post.

view more: next ›