u/sir_hanselot - 5 Archived Voat Posts in v/programming
u/sir_hanselot
  • home
  • search

u/sir_hanselot

0 posts · 5 comments · 5 total

Active in: v/programming (5)

  • ‹‹‹
  • ‹‹
  • ‹
  • 1
  • ›
  • ››
  • ›››
Comment on: NPC Programming

You make it sound like they have the ability to drink anything but soy...

0 15 Oct 2018 11:10 u/sir_hanselot in v/programming
Comment on: [Humor] How to save the princess using 8 programming languages

Valid - See updated code.

1 06 Oct 2016 16:05 u/sir_hanselot in v/programming
Comment on: [Humor] How to save the princess using 8 programming languages

Patched to include countermeasures...

0 06 Oct 2016 13:28 u/sir_hanselot in v/programming
Comment on: [Humor] How to save the princess using 8 programming languages
import heroic_knight
from global_standards.western import legal_age
princess_store = {}
if princess.age < legal_age: 
    princess = heroic_knight.do_rescue(princess)
    princess_store[princess.name] = princess
elif princess.age <= 29: heroic_knight.do_rescue(princess)
else: pass
4 06 Oct 2016 12:55 u/sir_hanselot in v/programming
Comment on: We need more programming challenges. We should start off small: First non-repeating character of a string. Any language you like.

Less Python:

def non_repeat(some_string):
    return [char for char in some_string if some_string.count(char) < 2][0]
6 15 Apr 2016 15:41 u/sir_hanselot in v/programming
  • ‹‹‹
  • ‹‹
  • ‹
  • 1
  • ›
  • ››
  • ›››

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