Hacker Newsnew | past | comments | ask | show | jobs | submit | more wildlogic's commentslogin

FBI file here also for hacking in middle school... later added onto for messing around making tesla coils and mixing up rocket fuel.


Looks good, half-life builtins would be great, thanks for sharing.


I'm hesitant to add more because half-life is so dependent on the ROA (route of administration) and individual characteristics. For example, caffeine's half-life in a baby is multiple days.


yes.


This is a random tangent, but if are visually impaired and you look through a pinhole in your hand, you can see clearly!


I almost used Coldfire last year for a life-critical application.


Realy wild to me that horse and zebra are so different that one can be domesticated and the other cannot.


I know for sure this is possible because I helped build it (embarassingly, I'm working on being a jeweler now).


...Why?

I mean, we all make mistakes and decisions we regret down the road, but even in my Maverick days I'd have given that type of work a wide berth


Could you expand in the general idea and goal of such a system?


yeah, these days you can tune into a twitch stream and grab some top grandmaster games any day of the week


please let me know if you see any issues!


same goes with python -

  def foo(x=None, y=None):
    ...

  foo(x=1, y=2)
  foo(1, y=2)
  foo(1, 2)


You can also disable positional handling via * to require keywords in function calls, e.g.:

    def add(*, l, r):
      return l + r
    
    add(l=1, r=2)
    >>> 3
    add(1, r=2)
    >>> [...]
    >>> TypeError: add() takes 0 positional arguments but 1 positional argument (and 1 keyword-only argument) were given
I believe 3.8 is adding / (I think) to do the same but for positional arguments, i.e., arguments you cannot give by keyword.


Just be careful not to use mutable objects as your default args.


A great reason to add flake8 to your CI

edit: forgot that flake8 doesn't check for mutable arguments by default – need to add https://github.com/PyCQA/flake8-bugbear


Pylint does


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: