nobu (Nobuyoshi Nakada) wrote in #note-2: > `format` is an alias of `#sprinf` inherited from `Kernel`. > ... if format is not ok, to_s will be good, like Integer, `255.to_s(16)`pynix (Pynix wang)
after 35, I lose all interests about programming. no linux, no vim, no iterm2, and no much much. when I want to format a ruby time to string. I will try `Time.now.format("yy-MM-dd")`, but I get `private method 'format' calle...pynix (Pynix wang)
I know,but this is the bad part,they are http verb,but some return response,some return body string. all verb method should return response object, modify net/http will break compatibility. so I suggest opt out net/http and webrick...pynix (Pynix wang)
HTTP.get return body as string, other http method return response there is get_print, maybe for scripting. HTTP:Client api is also hard to use. can we deprecate net/* and get an modern http client (or server) in std. h...pynix (Pynix wang)
main use case is deal binary data,a replacement of String. eg grpc bytes type, crypto key and more. maybe not same as io buffer, so Bytes or Binary is good for class name.pynix (Pynix wang)
ruby use `String` to deal with bytes, this cause error on irb "invalid byte sequence in utf-8" can we get a builtin class like Buffer or Bytes that represent as hex stringpynix (Pynix wang)