Readit News logoReadit News
Grue3 commented on Blocking Kiwifarms   blog.cloudflare.com/kiwif... · Posted by u/_vvaw
Grue3 · 3 years ago
There is at least one CF customer who was doxxed by Kiwifarms after expressing displeasure with Cloudflare's initial decision. CF CEO (eastdakota) blocked this customer when he complained about it [1] So much for free speech + great customer service!

[1] https://twitter.com/GossiTheDog/status/1565629001862873088

Grue3 commented on Cloudflare's abuse policies and approach   blog.cloudflare.com/cloud... · Posted by u/jgrahamc
howdyfolks · 3 years ago
It wasn’t. That it would be dealt with by the courts if it broke the law — that was
Grue3 · 3 years ago
So you agree that Cloudflare should be criminally liable for hosting extremist content? (yes, providing CDN service counts as hosting, as the content is stored on Cloudflare's servers)

Dead Comment

Grue3 commented on Cloudflare's abuse policies and approach   blog.cloudflare.com/cloud... · Posted by u/jgrahamc
Grue3 · 3 years ago
So, Cloudflare is basically saying they would host Daily Stormer, 8chan etc. from this point on. I bet this policy will go over like a lead brick in media coverage.
Grue3 commented on Cloudflare's abuse policies and approach   blog.cloudflare.com/cloud... · Posted by u/jgrahamc
seneca · 3 years ago
It's interesting watching the responses roll in here. What CF is laying out here was essentially the standard viewpoint of western society until something like 10 years ago. "I disagree with what you say, but I'll protect your right to say it" is a basic tenant of liberalism. If you find that shocking, you should examine why that is.
Grue3 · 3 years ago
When was a platform for doxing and harassment a tenet of liberalism? "Your liberty to swing your fist ends just where my nose begins".
Grue3 commented on Python 3.9   docs.python.org/release/3... · Posted by u/sertsa
eesmith · 5 years ago
"Readable" is in the eye of the beholder, which is why I commented that this was something I personally found useful, rather than one of the two subtle flaws I mentioned.

I can also disable all print statements with "def print(* args, * * kwargs): pass" at the top of the module.

I've had times where I couldn't figure out where a print was coming from, so I could replace print() to check the arguments passed in:

   import builtins
   builtin_print = builtins.print

   def my_print(*args, **kwargs):
      if "looking for" in args: # adjust as appropriate
         1/0
      return builtin_print(*args, **kwargs)

   builtins.print = my_print
Previously I had to do that by wrapping sys.stdout with my own file-like object, to intercept write(). (Granted, not hard, but harder.)

Grue3 · 5 years ago
The fact that you can overwrite built-in functions is not a point in favor of the language. Imagine you do this in a library and everyone using print() in their project would use a modified print instead. You could've just modified sys.stdout instead.
Grue3 commented on Python 3.9   docs.python.org/release/3... · Posted by u/sertsa
eesmith · 5 years ago
Python's print statement was surface-level beautiful, with subsurface flaws:

1) it modified the file object's "softspace"

  >>> class MyFile(object):
  ...   softspace = "Hello"
  ...   def write(self, s):
  ...     pass
  ...
  >>> f = MyFile()
  >>> f.softspace
  'Hello'
  >>> print >>f, "spam"
  >>> f.softspace
  0
2) This wasn't a problem until >> was added, because of problem #2 - the print statement didn't originally let you print to anything other than stdout. Which meant that if you wanted to support writing to a file instead of a stdout then you had to re-implement print yourself.

In practice, I've also found that having print as a function adds functionality because I can do things like:

    print(*data_values, sep="\n")
which is a quick way to print each value in a list on its own line.

Grue3 · 5 years ago

    for v in data_values: print v
Is exactly the same length but much more readable.

Grue3 commented on Python 3.9   docs.python.org/release/3... · Posted by u/sertsa
musicale · 5 years ago
I'm still waiting for this:

   print "Hey, they brought back the print statement!"
   print("But you can still call the print() function!")
   print ("printing", "tuples", "works", "like", "python2")
It would be a massive QoL improvement and also accelerate Python 3 adoption.

(I'd actually be OK with allowing keywords to be used as method/function names in general, but that's a more extensive change than

  from __past__ import print_statement
)

Grue3 · 5 years ago
This. It's hilarious how the parser knows what you're trying to do when using print statement in ipython and such, but still raises an Exception instead of printing the damn thing. Am I in the REPL to work on something, or to be frustrated by the ridiculous syntax? Just DWIM, Jesus Christ.
Grue3 commented on The Era of Visual Studio Code   blog.robenkleene.com/2020... · Posted by u/robenkleene
no_wizard · 5 years ago
Question I have for everyone who doesn't use an IDE

What is your workflow? I find the following to be true, in that one of 3 things happens inevitably:

1. The Text Editor becomes the IDE, (e.g., with VSCode, if you just live in plain HTML, CSS/SCSS/LESS and JSX/TSX/JS/TS all day, its actually pretty great, lots of well maintained extensions and Microsoft really put their energy into capturing into this market with VS Code I think. If you have more than ~10 extensions installed, I'd argue you got an IDE (not including themes or colorizers))

2. They have extensively curated vim or emacs setups that were built over time to add IDE-like features, in some cases I'd argue they become IDEs themselves via deep customization

3. They move to an IDE

So my question is if none of the 3 are true, whats your workflow like?

For context of my own workflow, it slowly over time is all around my IDE (JetBrains user, hardcore. You'll pry it from my cold dead hands). With the exception of running scripts (sometimes, like builds) and using git (git CLI is the best git interface IMO) I have moved it 100% into my IDE, and I'm so much faster at things, including picking up new languages

When I started, I used VS Code heavily professionally, and vim before that, and relied on the CLI for anything outside of editing the code (basically, I think I had some auto formatting setup too), but I hit a wall at some point where I never turned back and went full into JetBrains to this day

Grue3 · 5 years ago
For Python work I use a pretty much out-of-the-box Emacs, with "magit" being the only plugin of note installed. And I also used "web-mode" when I was doing webdev. magit is the best Git interface ever, and a built-in Emacs feature called TRAMP allows for remote editing. I'm running ipython in a separate terminal. I don't really understand why you'd need something more than a text editor to edit Python code.

Now for Common Lisp I use SLIME, which I guess does count as IDE, seeing as it's much more powerful than most IDEs.

Grue3 commented on Learning How to Learn Japanese   zachdaniel.dev/learning-h... · Posted by u/falava
Grue3 · 5 years ago
I'm using 2 Anki decks to learn Japanese: one was something named "COREplus" with keys in kana and the answers showing kanji and definition of the word. I figured it would be useful to pick out words from their pronounciation alone, despite the amount of homophones. The second deck I generated myself [1], it includes kanji and words containing kanji, and also statistics on how often each pronounciation of kanji is encountered. Finishing this deck allows you to read quite a lot of things (although it doesn't cover words containing non-Joyo kanji).

Now when I wanted to take an JLPT exam, I realized that my listening skills are awful, and my grammar skills aren't very good either. I started watching grammar lessons on Youtube in Japanese, as well as random videos in Japanese (mostly about trains/traveling). In the end I just barely passed listening (JLPT N2) but my grammar skills were really good.

[1] https://ankiweb.net/shared/info/831167744

u/Grue3

KarmaCake day4020March 13, 2013
About
Smug Lisp Weenie

Current project: http://ichi.moe (Japanese to English translation tool)

View Original