Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Post
  • Reply
DONT THREAD ON ME
Oct 1, 2002

by Nyc_Tattoo
Floss Finder
'welp this api is dumb and doesn't conform to its own spec but we're not gonna fix it because the primary consumer is us.'

Adbot
ADBOT LOVES YOU

Sapozhnik
Jan 2, 2005

Nap Ghost
three weeks later the private api becomes public

a few years after that and it's underpinning a gigantic software ecosystem

Shaggar
Apr 26, 2006
I was looking at integration for athenahealth (another emr) and while they have a pretty good api + open documentation they also have this: http://www.athenahealth.com/cmp/more-disruption/more-disruption.php lol

The MUMPSorceress
Jan 6, 2012


^SHTPSTS

Gary’s Answer

Shaggar posted:

I was looking at integration for athenahealth (another emr) and while they have a pretty good api + open documentation they also have this: http://www.athenahealth.com/cmp/more-disruption/more-disruption.php lol

Their CEO is a big ole silicon valley dick head too. There's plenty of video of him at various conferences implying his competitors' leadership are dumb, or idiots, and at one point he implied everyone else was a "dinosaur", which is just startup code for "well established in this market and solving problems we haven't 'disrupted' yet."

DONT THREAD ON ME
Oct 1, 2002

by Nyc_Tattoo
Floss Finder
they should accelerate Turing pharmaceutical out of the market

but probably they'll just partner

Shaggar
Apr 26, 2006
they list already integrated partners on their site which is pretty cool though. it would be useful when submitting rfps for Athena customers.

GameCube
Nov 21, 2006

is this the thread where i post this https://github.com/dotnet/coreclr/issues/2285

fart simpson
Jul 2, 2005

DEATH TO AMERICA
:xickos:

the talent deficit posted:

i use and love elm. your work is much appreciated

i'm in the erlang contributors.txt for telling them they handled unicode noncharacters wrong and having the patch i submitted completely rewritten

what's your elm workflow btw, i'm curious

MononcQc
May 29, 2007

we have an internal protocol that uses HTTP chunked encoding to delimit JSON objects. It is a piece of garbage and I am constantly angry at it.

Suspicious Dish
Sep 24, 2011

2020 is the year of linux on the desktop, bro
Fun Shoe

This is why I stopped working on open-source.

JawnV6
Jul 4, 2004

So hot ...

love the way the guy keeps dangling "well, MAYBE I WONT HELP U" with the expectation that the thread will immediately rend their garments that this amazing talent is slipping through their fingers

GameCube
Nov 21, 2006

for me it's the way he completely rejects the idea that he could be wrong, because his is clearly the objectively correct opinion and is beyond discussion

tef
May 30, 2004

-> some l-system crap ->

Symbolic Butt posted:

didn't you contribute to the ruby parser and talked to matz and stuff? or were you just studying it?

i was asking questions on behalf of someone else asking about it

i did learn what EXPR_MID was though

raminasi
Jan 25, 2005

a last drink with no ice

JawnV6 posted:

love the way the guy keeps dangling "well, MAYBE I WONT HELP U" with the expectation that the thread will immediately rend their garments that this amazing talent is slipping through their fingers

quote:

All what you are saying doesn't make any sense! You are talking about applications. You are not facing the problem as a programmer, but as a user!

i originally thought he was arguing that breaking the api is worth it, but he apparently doesn't understand what "breaking the api" even means

quote:

You seriously think that if Decimal.Parse fails in certain situation, all the applications relying on it would fail too?! Only the applications built by incompetent programmers would fail. Competent programmers create applications which will always work independently upon virtually anything else (e.g., the errors of the given programming language, how clueless the given user might be, etc.)!

the talent deficit
Dec 20, 2003

self-deprecation is a very british trait, and problems can arise when the british attempt to do so with a foreign culture





fart simpson posted:

what's your elm workflow btw, i'm curious

i'm using vscode with the elm plugin, elm-reactor and manually refreshing firefox

i'm still relatively new to elm but i built an internal interface to our database management tools with elm + python/flask and it was basically the greatest experience of my professional career

Dylan16807
May 12, 2010

oh well that sounds like a reasonable thing to discu--

quote:

Ey, stupid: I can laugh at you (at your ignorance and at your lack of capability to understand even the simplest idea) and let you think that you have everything under control. But, piece of poo poo, don't ever dare to insult me on my face.

You can go now to got back with your friends (the pure idiots, cowards) to talk about me (or anyone who thinks that you are stupid) and then, eventually, get a bit of courage to say something ambiguous enough at my face, and perhaps I will tolerate it, but this is it. Idiot.

:yikes:

Ochowie
Nov 9, 2007

Shaggar posted:

http://www.asp.net/

install vs community 2015 and play around. a fun and easy demo project is to create a web chat using MVC for the UI and then SignalR for the realtime chat.

How;s ASP.NET doing on non-windows platforms? I've pretty much moved off of Windows at this point but drat if I don't miss C# especially LINQ.

Notorious b.s.d.
Jan 25, 2003

by Reene

Ochowie posted:

How;s ASP.NET doing on non-windows platforms? I've pretty much moved off of Windows at this point but drat if I don't miss C# especially LINQ.

mono has a reasonably complete implementation but i've never heard of anyone using it for real work.

the official microsoft .NET and ASP.NET stacks have been ported to linux but they are very much alpha quality right now. a cool tech demo not a finished product.

aardvaard
Mar 4, 2013

you belong in the bog of eternal stench

Notorious b.s.d. posted:

mono has a reasonably complete implementation but i've never heard of anyone using it for real work.

the official microsoft .NET and ASP.NET stacks have been ported to linux but they are very much alpha quality right now. a cool tech demo not a finished product.

that sounds about 50% more complete than most rails-inspired tech stacks

tef
May 30, 2004

-> some l-system crap ->

Dylan16807 posted:

oh well that sounds like a reasonable thing to discu--


:yikes:

this reads like a dril tweet

distortion park
Apr 25, 2011



He's right though. 1,2 equalling 12 is dumb.

Symbolic Butt
Mar 22, 2009

(_!_)
Buglord
imagine working with this cool guy

quote:

@MartinJohns I was (kind of) sarcastic too. With "kind of" I meant that I got your idea (= how this should work), but the reality (= what I have seen here, mainly today) doesn't seem to prove it (= lots of people wasting time, getting offended and trying to offend; just a few trying to understand the underlying problem and trying to help). In any case, thanks for your contribution (I love Dr. Who).

PS: I haven't ever seen a Dr. Who episode.

GameCube
Nov 21, 2006

pointsofdata posted:

He's right though. 1,2 equalling 12 is dumb.

lol

The MUMPSorceress
Jan 6, 2012


^SHTPSTS

Gary’s Answer
He starts from such a sane place ("1,2 parsing to 12 is weird"), then goes off the rails immediately. He could propose adding a function, say something like tryParseStrict, or suggesting adding an overload with a DelimiterCulture argument, or any other number of solutions that doesn't break other people's code, but he's dead set that anyone who did depend on "1,2"=12 is an idiot so gently caress their code.

distortion park
Apr 25, 2011


LeftistMuslimObama posted:

He starts from such a sane place ("1,2 parsing to 12 is weird"), then goes off the rails immediately. He could propose adding a function, say something like tryParseStrict, or suggesting adding an overload with a DelimiterCulture argument, or any other number of solutions that doesn't break other people's code, but he's dead set that anyone who did depend on "1,2"=12 is an idiot so gently caress their code.

It took my several posts before I went woah he's mental

Ochowie
Nov 9, 2007

LeftistMuslimObama posted:

He starts from such a sane place ("1,2 parsing to 12 is weird"), then goes off the rails immediately. He could propose adding a function, say something like tryParseStrict, or suggesting adding an overload with a DelimiterCulture argument, or any other number of solutions that doesn't break other people's code, but he's dead set that anyone who did depend on "1,2"=12 is an idiot so gently caress their code.

I think he has a better argument with the fact that "1,,,,,," parses to 1 but honestly I fail to see how ignoring the grouping delimiter isn't always the sane thing to do. One question I had reading that thread, how does .NET currently treat locale-specific grouping delimiters (e.g. In many countries '.' is the group delimiter).

Edit: The guy is batshit crazy though. That was a pretty funny read. Also, I feel like this guy read some of Linus's rants and felt they're something he should emulate.
Edit #2: Also he completely fails to grasp the difference between a group delimiter and the decimal delimiter.

Ochowie fucked around with this message at 21:43 on Dec 11, 2015

distortion park
Apr 25, 2011


Ochowie posted:

I think he has a better argument with the fact that "1,,,,,," parses to 1 but honestly I fail to see how ignoring the grouping delimiter isn't always the sane thing to do. One question I had reading that thread, how does .NET currently treat locale-specific grouping delimiters (e.g. In many countries '.' is the group delimiter).

Edit: The guy is batshit crazy though. That was a pretty funny read. Also, I feel like this guy read some of Linus's rants and felt they're something he should emulate.

You can pass it a culture which deals with that sort of thing

The MUMPSorceress
Jan 6, 2012


^SHTPSTS

Gary’s Answer

Ochowie posted:

I think he has a better argument with the fact that "1,,,,,," parses to 1 but honestly I fail to see how ignoring the grouping delimiter isn't always the sane thing to do. One question I had reading that thread, how does .NET currently treat locale-specific grouping delimiters (e.g. In many countries '.' is the group delimiter).

Edit: The guy is batshit crazy though. That was a pretty funny read. Also, I feel like this guy read some of Linus's rants and felt they're something he should emulate.
Edit #2: Also he completely fails to grasp the difference between a group delimiter and the decimal delimiter.

True. Either way, if you want "1,,,,," to return a failure instead of 1, the right thing to do is either write a new function that enforces strict grouping or add an additional locale-sensitive argument to the existing function in such a way that it doesn't break existing code.

GameCube
Nov 21, 2006

GrumpyDoctor posted:

You seriously think that if Decimal.Parse fails in certain situation, all the applications relying on it would fail too?! Only the applications built by incompetent programmers would fail. Competent programmers create applications which will always work independently upon virtually anything else (e.g., the errors of the given programming language, how clueless the given user might be, etc.)!

oh yeah this is definitely the best part

Ochowie
Nov 9, 2007

LeftistMuslimObama posted:

True. Either way, if you want "1,,,,," to return a failure instead of 1, the right thing to do is either write a new function that enforces strict grouping or add an additional locale-sensitive argument to the existing function in such a way that it doesn't break existing code.

Oh, I totally agree. I actually think parsing "1,,,," to "1" is the most sane thing to do it just looks really weird.

pointsofdata posted:

You can pass it a culture which deals with that sort of thing

I figured it was something like that but it's been a while.

The MUMPSorceress
Jan 6, 2012


^SHTPSTS

Gary’s Answer

Ochowie posted:

Oh, I totally agree. I actually think parsing "1,,,," to "1" is the most sane thing to do it just looks really weird.


I figured it was something like that but it's been a while.

Yeah. It's the right thing to do until it's not, which is why there should be a separate function for strict behavior. If I had his use case, I'd probably just write my own wrapper around tryParse that does the grouping checking (probably using a regex?) and then call tryParse itself.

VikingofRock
Aug 24, 2008




I agree with the guy that 1,,,,,,5 should probably not be considered a valid representation of 15, but as people have said the change should probably be implemented by introducing a new ParseStrict function or whatever.

karms
Jan 22, 2006

by Nyc_Tattoo
Yam Slacker
What I'm wondering, is it better to have a parseStrict() included in the language or is it smarter to tell users to implement it themselves? Having a parseStrict() to paper over an older, probably not correct, function gives me strong mysql_real_escape_string vibes. You could put a notice in the docs of parseStrinct() saying that it probably doesn't do what you want it to, and everyone needs to reimplement the more correct function themselves. I'd probably would go for the latter option in this case.

Volte
Oct 4, 2004

woosh woosh
Not to mention it's a parser, not a validator. If you need it to fit a specific format, validate the input. Plenty of integer parsers will parse "154foobar" as 154 and i've never heard anyone complain of that. Hell I'm happy if it parses "foo" to 0. If I actually care that the input matches a sane definition of valid (as opposed to just a sufficient one), then I'll do extra validation.

I've had many arguments with people like this. Usually it's first- or second-year students who have attained enough confidence to know the black-and-white rules about what you should and shouldn't ever (EVER) do in your code, without any of the experience or rationale to back any of it up. Someone with roughly one fifteenth of my programming experience (just in terms of years) got very passionate and livid that I was okay with using multiple return statements in a single function, and told me that I was being irresponsible. See also: Rob Pike's weird opinions about pretty much everything.

edit: Considering it's a lot easier to constrain the behaviour of Parse by wrapping it than it is to relax its strictness after-the-fact without completely reimplementing it, it's not even a question that should be asked. Next we're going to be complaining about HTML parsers that accept malformed HTML.

Volte fucked around with this message at 22:33 on Dec 11, 2015

GameCube
Nov 21, 2006

i didn't come here to have this discussion. i've already pointed out that it's wrong and i can implement it myself so please just tell me how to do that and i will fix it

The MUMPSorceress
Jan 6, 2012


^SHTPSTS

Gary’s Answer

KARMA! posted:

What I'm wondering, is it better to have a parseStrict() included in the language or is it smarter to tell users to implement it themselves? Having a parseStrict() to paper over an older, probably not correct, function gives me strong mysql_real_escape_string vibes. You could put a notice in the docs of parseStrinct() saying that it probably doesn't do what you want it to, and everyone needs to reimplement the more correct function themselves. I'd probably would go for the latter option in this case.

I'd say that the right answer is having users write their own wrapper. I can't think of many situations off-hand where you'd be putting input like that into tryParse (maybe if it was end-user input, but I imagine your front-end is doing some validation on the user input first unless it's like a console utility), so if it genuinely comes up for you you should write it yourself to ensure it truly fits your specific use-case.

Every consumer is likely to have a different idea of what strictParse should be strict about, so trying to accommodate everyone's edge cases in library code is a path to a big mess. Maybe I want 1,,,,,, to be valid input, but 1,,,,,,,,. not to be, but maybe I want it the other way around.

JawnV6
Jul 4, 2004

So hot ...
1,,,,,,5 being 15 seems like some goofy euler problem where you're finding bigints with some reduction down to other properties

if he's so convinced it's a technical problem, i'd poke at understanding if the existing cultural hooks are rich enough to describe the Indian comma formatting

Maluco Marinero
Jan 18, 2001

Damn that's a
fine elephant.

As a Millennial I posted:

oh yeah this is definitely the best part

haha, competent programmers make things work independent of virtually anything. look Ma, I'm a loving wizard, no dependency changes can harm me.

Cybernetic Vermin
Apr 18, 2005

guy is certainly right that it was a sort of bad implementation choice, but i hold it pretty likely that it exists for some good reason (windows having a locale thing for those separators but ancient myanmar script having a rule that they should be placed at every prime number of digits or some poo poo, a locale piece of information the system did not export and which was horrific to recreate, so, whatever, just permit them everywhere). it certainly can't be changed loving peoples code over (if the value of the code implementing the platform is not a tiny fraction of the value of the code running on the platform you are a failure and should just give up anyway), and, more than anything, no one, except perhaps yospos, should care enough to write more than 10 words on the matter. if you're going to type hundreds of words you can write your own parser with less effort

Adbot
ADBOT LOVES YOU

Soricidus
Oct 21, 2010
freedom-hating statist shill
lol if your code would break simply because a core platform api suddenly started rejecting input that was previously stated to be valid in the formal documentation, just lol

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply