u/AntigravityHat - 8 Archived Voat Posts in v/programming
u/AntigravityHat
  • home
  • search

u/AntigravityHat

0 posts · 8 comments · 8 total

Active in: v/programming (8)

  • ‹‹‹
  • ‹‹
  • ‹
  • 1
  • ›
  • ››
  • ›››
Comment on: Hi everyone!

What is the intended output?

chr(42 - 10 * (ord("hiihiihhhhiihiiihihhhhiiihihiihiiihihiihiihhh"[p]) - 104))

Outputs either a '*' or ' '

Also, in case you didn't notice, you are repeatedly importing sys.stdout

Edit: This is with Python 3

Edit 2: That's pretty creative. I got it working with this:

text = ""
for p in range(45):
    text += chr(42 - 10 * (ord("hiihiihhhhiihiiihihhhhiiihihiihiiihihiihiihhh"[p]) - 104)) + "\n"[:(not (p + 1) % 9)]
print(text)
1 28 Jun 2015 03:53 u/AntigravityHat in v/programming
Comment on: List of all programming subverses

Thanks, I just added it.

0 14 Jun 2015 04:57 u/AntigravityHat in v/programming
Comment on: Is there m.voat or mobile app in progress ?

The two main ones I've heard of so far are /v/versa and /v/vulcan. I don't use either, so I unfortunately can't comment on their quality.

0 12 Jun 2015 21:37 u/AntigravityHat in v/programming
Comment on: List of all programming subverses

If anyone has anything to add to my programming set, please comment or pm me.

0 31 May 2015 17:15 u/AntigravityHat in v/programming
Comment on: List of all programming subverses

I turned the current suggestions into a set

2 31 May 2015 17:01 u/AntigravityHat in v/programming
Comment on: List of all programming subverses

I did a subverse search, and got this list:

/v/learnprogramming, /v/gamedev, /v/python, /v/CSharp, /v/ruby, /v/cpp, /v/Lisp, /v/programmingtalks, /v/golang,

/v/shittyprogramminh, /v/dailyprogrammer, /v/haskell, /v/Swift, /v/rstats, /v/programmingchallenge, /v/ocaml, /v/perl, /v/PLCs

This list is ordered by subscriber count and most aren't very active.

2 31 May 2015 16:32 u/AntigravityHat in v/programming
Comment on: List of all programming subverses

That set only contains /v/programming, /v/Linux, /v/FreeBSD, /v/webdev, and /v/php

Maybe we can use this thread to compile a list?

0 31 May 2015 16:04 u/AntigravityHat in v/programming
Comment on: What do you think is the best programming style?

indent

One tab or two spaces

That depends on the language. In python, it is common to indent 4 spaces.

Also, it might be a good idea to check out Google's style guides.

0 31 May 2015 15:56 u/AntigravityHat in v/programming
  • ‹‹‹
  • ‹‹
  • ‹
  • 1
  • ›
  • ››
  • ›››

archive has 9,592 posts and 65,719 comments. source code.