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
Blotto Skorzany
Nov 7, 2008

He's a PSoC, loose and runnin'
came the whisper from each lip
And he's here to do some business with
the bad ADC on his chip
bad ADC on his chiiiiip
quick someone write Tie::INIFile

Adbot
ADBOT LOVES YOU

cowboy beepboop
Feb 24, 2001

Condiv posted:

last time I used it, rust seemed like your average strongly typed language. which is good, gently caress c and c++'s middling type strength.

also, as an absolute beginner to the language, pointers were kind of tough for me (mainly because the program I wrote exposed like 6 compiler bugs), but not anything like the template errors in C++

i haven't hit an compiler bug for ages rust is growing up :3:

it's going to take me a while to wrap my head around lifetimes though. wtf rust.

Bloody
Mar 3, 2013

hey serialization nerds just use protobufs

minidracula
Dec 22, 2007

boo woo boo

Notorious b.s.d. posted:

we had this discussion earlier, like 100 pages ago. i'm just gonna give the main points here
  • json schemas are non-standard.

  • json itself is nonstandard, parsers vary in strictness

  • interoperability matters. every language/platform has a parser generator library but i don't want to port my fuckin grammar to every platform's parser generator and hope i didn't create subtle bugs

serialisation and deserialisation is one of those things people like to pretend is easy
but it's not
I guess I'll go ahead and agree with all the above, but I still ended up specifying a dumbed-down subset of JSON for an interop log file thing for some hardware because it was pulling enough teeth to do that than to end up with something I felt would be "worse" (i.e. some sort of CSV thing) for my needs. XML would have likely made my known and unknown counterparts freak out even more.

It's bad in at least a few ways (before we even get to potential JSON-badness), but it's what seemed like a compromise between what I wanted and what wouldn't unduly explode brains elsewhere. I already want to change a few things about it, but I'm not sure I'll be able to. Here's hoping. I'll find out soon enough if I can make it slightly less bad.

minidracula
Dec 22, 2007

boo woo boo

Otto Skorzeny posted:

bought an impreza outback yesterday, good tymes
I didn't know you moved to Seattle?!

Janitor Prime
Jan 22, 2004

PC LOAD LETTER

What da fuck does that mean

Fun Shoe

Bloody posted:

hey serialization nerds just use protobufs

Came here to post this, gently caress your bespoke dtd

Pollyanna
Mar 5, 2005

Milk's on them.


Despite Python's appeal to many different communities, you may still wonder "why Python?" or "why teach programming with Python?" Answering these questions is no simple task especially when popular opinion is on the side of more masochistic alternatives such as C++ and Java. However, I think the most direct answer is that programming in Python is simply a lot of fun and more productive.

Workaday Wizard
Oct 23, 2009

by Pragmatica
python is ok for quickies but if you want long meaningful relationship go for a member of the c family

Pollyanna
Mar 5, 2005

Milk's on them.


Shinku ABOOKEN posted:

python is ok for quickies but if you want long meaningful relationship go for a member of the c family

look at this wrong post

double sulk
Jul 2, 2010

use ruby 2.0

Pollyanna
Mar 5, 2005

Milk's on them.


roaby

Pollyanna
Mar 5, 2005

Milk's on them.


i still need a good tutorial for that one


also what if i dont really want to do web development. im used to like apps and stuff
or is that a retarded idea

Shaggar
Apr 26, 2006
use wpf for apps

double sulk
Jul 2, 2010

Pollyanna posted:

i still need a good tutorial for that one


also what if i dont really want to do web development. im used to like apps and stuff
or is that a retarded idea

if you want to make real apps you can use php.

Zlodo
Nov 25, 2006

Shaggar posted:

use wpf for apps

no use qt

Posting Principle
Dec 10, 2011

by Ralp
can i write iphone apps in mostly c++ because objc is terrible poo poo that should have died with nextstep

Pollyanna
Mar 5, 2005

Milk's on them.


Shaggar posted:

use wpf for apps

but im on osx :(

gucci void main posted:

if you want to make real apps you can use php.

pls no

Pollyanna
Mar 5, 2005

Milk's on them.


gently caress it ill do web development

Shaggar
Apr 26, 2006

Pollyanna posted:

but im on osx :(

sorry for your lots

double riveting
Jul 5, 2013

look at them go
the reason plang people hate xml:

design goal: xml does everything
design outcome: xml does everything badly

it is the php of data serialization.

Zlodo
Nov 25, 2006

Pollyanna posted:

but im on osx :(

use qt wpf is bad anyway

Zlodo
Nov 25, 2006

double riveting posted:

the reason plang people hate xml:

design goal: xml does everything
design outcome: xml does everything badly

it is the php of data serialization.

Shaggar
Apr 26, 2006

double riveting posted:

the reason plang people hate xml:

design goal: xml does everything
design outcome: xml does everything badly

it is the php of data serialization.

this is wrong. xml does everything well. it just might could be better with what we know now, but the chance of a standard coming around to replace it is non-existant

Pollyanna
Mar 5, 2005

Milk's on them.


Zlodo posted:

use qt wpf is bad anyway

ok qt ;-*

quote:

Qt is a cross-platform application and UI framework for developers using C++ or QML, a CSS & JavaScript like language. Qt Creator is the supporting Qt IDE.


cool

Shaggar
Apr 26, 2006
someone hating xml is a sign they don't understand what they're doing

uG
Apr 23, 2003

by Ralp
use Qt with ur favorite plang!

Pollyanna
Mar 5, 2005

Milk's on them.


at least xml isnt html

Zlodo
Nov 25, 2006

uG posted:

use Qt with ur favorite plang!

no use it with c++
best language with best toolkit

Shaggar
Apr 26, 2006

Pollyanna posted:

at least xml isnt html

the best html is xml tho

Pollyanna
Mar 5, 2005

Milk's on them.


Shaggar posted:

the best html is xml tho

i remember writing html in notepad back in loving like 2000 and even then i thought it was a pain

ahhhh childhood

Pollyanna
Mar 5, 2005

Milk's on them.


also i have bonnie tyler stuck in my head now god dammit

MononcQc
May 29, 2007

XML does everything well, except unambiguously representing lists, which needs to be using a format agreed upon for each dtd I guess? Also binary blobs.

prefect
Sep 11, 2001

No one, Woodhouse.
No one.




Dead Man’s Band

Pollyanna posted:

also i have bonnie tyler stuck in my head now god dammit

she had a couple of pretty good songs

Workaday Wizard
Oct 23, 2009

by Pragmatica

MononcQc posted:

XML does everything well, except unambiguously representing lists, which needs to be using a format agreed upon for each dtd I guess? Also binary blobs.

ummm... just use multiple nodes under a container node?

am i misunderstanding somethign

double riveting
Jul 5, 2013

look at them go

MononcQc posted:

XML does everything well, except unambiguously representing lists

that's actually the funniest way of saying "bad serialization format" i've heard in a while. :)

Notorious b.s.d.
Jan 25, 2003

by Reene

suffix posted:

well guess what, those xml interfaces are going to be just as broken and ad-hoc as any json parser.

like one of them ignores any encoding you specify and just reads everything as ISO-8859-15,
and one of them runs a bunch of perl regexes on the input and fails if you have whitespace in a self-closing tag,
and one of them just uses print statements and doesn't escape any output data.

lol nope

Notorious b.s.d.
Jan 25, 2003

by Reene

Shinku ABOOKEN posted:

ummm... just use multiple nodes under a container node?

am i misunderstanding somethign

if you want an ordered list, you have to do specify that behavior in your dtd/schema. e.g. an attribute for the ordinal value of each child node

i agree that this is one of the worst of XML's many warts, but, as we have repeated ad infinitum, there is no viable alternative. we must choose between bad (everything but xml) or ugly (xml)

Notorious b.s.d. fucked around with this message at 17:05 on Sep 23, 2013

Notorious b.s.d.
Jan 25, 2003

by Reene

Shaggar posted:

someone hating xml is a sign they don't understand what they're doing

i have encountered lots of people who "hate xml" because they prefer a builder pattern or attributes/decorators to having an xml config file and that is ok

hating xml as a format is a sign you just have no. loving. clue.

MononcQc
May 29, 2007

Shinku ABOOKEN posted:

ummm... just use multiple nodes under a container node?

am i misunderstanding somethign

code:
<list type="car">
  <item>a</item>
  <item>b</item>
  <item>c</item>
</list>

<list>
  <item type="car">a</item>
  <item type="car">b</item>
  <item type="car">c</item>
</list>

<list>
  <car>a</car>
  <car>b</car>
  <car>c</car>
</list>

<cars>
  <item>a</item>
  <item>b</item>
  <item>c</item>
</cars>

<cars>
  <car>a</car>
  <car>b</car>
  <car>c</car>
</cars>

<car>a</car>
<car>b</car>
<car>c</car>

pick your poison.

It's a well-known XML problem and comes from the fact you try to represent a list from a tree, and there's just plenty of ways to do it. Usually people will then need to define a list as a DTD and you go on from there, each type of document with its own way of writing a list or whatever.

To some extent that's fine because that's what DTDs are for, but yeah. It's still a wart.

Adbot
ADBOT LOVES YOU

Notorious b.s.d.
Jan 25, 2003

by Reene

MononcQc posted:

XML does everything well, except unambiguously representing lists, which needs to be using a format agreed upon for each dtd I guess? Also binary blobs.

xml is a structured document format, accommodating binary blobs well wasn't a design goal. if you have unstructured data, it doesn't belong in xml

that is one wart i can fuckin forgive

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