|
hail python3
|
# ? Nov 10, 2015 16:33 |
|
|
# ? May 8, 2024 23:11 |
|
Symbolic Butt posted:hail python3
|
# ? Nov 10, 2015 16:36 |
|
Bloody posted:oh lemme guess it stems entirely from people using garbage languages/libs/tools/platforms ie every one
|
# ? Nov 10, 2015 17:16 |
|
if you encode or decode a string and get an object of the same type back, you may be working with a bad language
|
# ? Nov 10, 2015 17:56 |
|
Bloody posted:why is string janitoring still a thing ityool 2015 Bloody posted:oh lemme guess it stems entirely from people using garbage languages/libs/tools/platforms human language doesn't fit a nifty box of "this is the algorithm for it" where you open a book and encode it. It goes in with calendars, time, language, grammar, cultural references and whatnot that needs to reflect real human needs rather than being able to ship an approximate model and hoping people do the effort of handling the mismatch. The real problem has been more or less a historical trend of computer people denying the complexity of the thing and shaggaring their way by saying "just use ascii you moron", shipping the first thing that works, and building systems without taking the time to figure out the underlying requirements -- just slinging solutions as fast as possible without properly studying the subject matter. If it appears to work, it works and whee off we go, wish very hard that someone can finally abstract language as an array of characters I don't want to worry about it please.
|
# ? Nov 10, 2015 18:30 |
|
also, racism
|
# ? Nov 10, 2015 18:36 |
|
and terrible engineering the history of string encodings is the history of trying and failing to have fixed width binary encodings
|
# ? Nov 10, 2015 18:37 |
|
MononcQc posted:hoping people do the effort of handling the mismatch
|
# ? Nov 10, 2015 18:38 |
|
tef posted:and terrible engineering it's me im han unification
|
# ? Nov 10, 2015 18:39 |
|
MononcQc posted:human language doesn't fit a nifty box of "this is the algorithm for it" where you open a book and encode it. It goes in with calendars, time, language, grammar, cultural references and whatnot that needs to reflect real human needs rather than being able to ship an approximate model and hoping people do the effort of handling the mismatch. use Unicode aka utf-8
|
# ? Nov 10, 2015 18:40 |
|
NFC or NFD?
|
# ? Nov 10, 2015 18:44 |
|
whichever one is the default for java or c#.
|
# ? Nov 10, 2015 18:49 |
|
near field... domination?
|
# ? Nov 10, 2015 18:56 |
|
tef posted:NFC or NFD? precomposed obviously ugh
|
# ? Nov 10, 2015 18:58 |
|
(answer is probably NFC) A: The choice of which to use depends on the particular program or system. NFC is the best form for general text, since it is more compatible with strings converted from legacy encodings. NFKC is the preferred form for identifiers, especially where there are security concerns (see UTR #36). NFD and NFKD are most useful for internal processing.
|
# ? Nov 10, 2015 19:05 |
|
remember to normalize up to a fixed point!
|
# ? Nov 10, 2015 19:06 |
|
fixed point no dynamic alloc fox only final destination
|
# ? Nov 10, 2015 19:13 |
|
JawnV6 posted:fixed point
|
# ? Nov 10, 2015 19:18 |
|
i think I'm doing the responsible thing by saying'this problem is really difficult, it should be handled by someone who cares'
|
# ? Nov 10, 2015 22:56 |
|
MALE SHOEGAZE posted:i think I'm doing the responsible thing by saying'this problem is really difficult, it should be handled by someone who cares' yah like w/ crypto
|
# ? Nov 10, 2015 23:36 |
|
i'm trying to find an essay / blog post posted here a while ago, but I'm having trouble finding it. i'm hoping someone can tell which one i mean given the vauge description below and re-post the link. i remember it being fairly lengthy and describing the history of OOP and some of the problems it was intended to solve, but how functional programming solves many of those problems better than OOP does. also i think the site had a cool domain name, or at least the blog itself did??
|
# ? Nov 11, 2015 00:35 |
|
tef posted:utf-8 read as latin-1 oh man i recently fixed a long-standing issue we had: database was created as latin1, connections had been set as utf8 from the start. were finally all utf8 ugh
|
# ? Nov 11, 2015 00:39 |
|
tef posted:and terrible engineering ever worked with pre-Unicode variable length encodings? euc, shiftjis, ISO-2022., gb2312 ... fun times (and a great way to get a feeling for why Han unification seemed like a good idea at the time)
|
# ? Nov 11, 2015 00:51 |
|
compuserved posted:i'm trying to find an essay / blog post posted here a while ago, but I'm having trouble finding it. i'm hoping someone can tell which one i mean given the vauge description below and re-post the link. it's almost certainly not this but it's a great rant and i'm linking it anyway.
|
# ? Nov 11, 2015 00:52 |
|
jony neuemonic posted:it's almost certainly not this but it's a great rant and i'm linking it anyway. yeah, this isn't it, but thanks for sharing. it is a good read
|
# ? Nov 11, 2015 01:54 |
|
compuserved posted:i'm trying to find an essay / blog post posted here a while ago, but I'm having trouble finding it. i'm hoping someone can tell which one i mean given the vauge description below and re-post the link. i dont know the blog you're talking about but oop is a giant confusing mess that's only "easy" because people have spent literally millions of hours on tooling and libraries and convinced everyone to spend years convincing themselves it makes sense somehow
|
# ? Nov 11, 2015 02:00 |
|
compuserved posted:i'm trying to find an essay / blog post posted here a while ago, but I'm having trouble finding it. i'm hoping someone can tell which one i mean given the vauge description below and re-post the link. found it!
|
# ? Nov 11, 2015 02:38 |
|
It's a reaaaaalllly long incoherant rant. much like my posting quote:I am taking an ecumenical, universalist approach to OOP. Below I will refer to all of these languages as OOP: C++, Java, Scala, PHP, Ruby, and Javascript. Is that fair? I know, from personal experience, some proponents of Java will complain that Ruby and PHP lack compile time data-type checking and therefore should not be considered OOP. And I know, from personal experience, some proponents of Ruby will argue that in Ruby everything is an object, whereas Java still has non-object primitives (such as integers), and therefore Ruby is more of an OOP language than Java. I know that some critics of PHP will argue that OOP features were bolted on to PHP and it should not be taken seriously as an OOP language. I know some people will point out that Scala is multi-paradigm and it is as easy to work in the “functional paradigm” with Scala as it is easy to work with the object oriented paradigm. Continues for a thousand paragraphs ............ quote:Consider this remark by “millstone” on Hacker News: I'd rather not
|
# ? Nov 11, 2015 02:42 |
|
i dont need to read a thing to tell me why oop is bad
|
# ? Nov 11, 2015 02:46 |
|
jre posted:It's a reaaaaalllly long incoherant rant. much like my posting it's 100x longer than i remembered and is definitely a rant... what jony neuemonic posted is better
|
# ? Nov 11, 2015 03:24 |
|
to the extent that oop is bad, it's probably more because of the p than the oo
|
# ? Nov 11, 2015 03:44 |
|
Soricidus posted:to the extent that oop is bad, it's probably more because of the p than the oo oop opo poo makes a lot more sense now
|
# ? Nov 11, 2015 03:47 |
|
MALE SHOEGAZE posted:i dont need to read a thing to tell me why oop is bad without reading imma guess it starts out nice, points out an obvious OOP deficiency, then launches into a tirade against state existing anywhere and laments our mutable universe before declaring LISP our savior
|
# ? Nov 11, 2015 03:50 |
|
yeah you dont need no state ever you just need to put up some reasonable barriers to mutating anywhere and everywhere at any time as always, dogma is bad. DONT THREAD ON ME fucked around with this message at 05:31 on Nov 11, 2015 |
# ? Nov 11, 2015 03:52 |
|
i don't recommend reading it tbh
|
# ? Nov 11, 2015 04:11 |
|
static dogma const int i=0; uh can someone loan me a universe where i is 1 e: he spends a lot of time on that hn quote JawnV6 fucked around with this message at 04:25 on Nov 11, 2015 |
# ? Nov 11, 2015 04:13 |
|
why oop bad 3 words or less
|
# ? Nov 11, 2015 05:42 |
|
And what's the deal with lines ending in semicolons!?
|
# ? Nov 11, 2015 05:46 |
|
if u dont use a language with semicolons u hosed up
|
# ? Nov 11, 2015 05:52 |
|
|
# ? May 8, 2024 23:11 |
|
sometimes i log messages that contain semicolons in my python code. does that count.
|
# ? Nov 11, 2015 06:02 |