Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Garbage Ideas

Name: Anonymous 2010-05-01 9:08

ITT: Post those lame software development ideas you have in the ideas.txt that you are sure you will never get to try them out.

Name: Anonymous 2010-05-10 4:31

>>40
I call bullshit. Even if it's true, XML is hardly more flexible.

Name: Anonymous 2010-05-10 5:45

>>41
Try sending a date as JSON. The only way to do this is to convert it to a string and tell the other guy ``Oh, and by the way, this field is ostensibly a string/list/mapping/number, but you actually need to interpret it in a specific way to get a date.''. Now it may seem that XML has the same problem, but you can use XML schemata to tell the other guy's parser which fields are dates.

YAML probably solves this in a better way with user defined data types, but ONE WORD, THE FORCED INDENTATION OF DATA, THREAD OVER.

Name: Anonymous 2010-05-10 6:09

>>42
What? Either send a date string, an unix timestamp, or an object with year, month, day. Exactly like XML, only you don't need to support retarded entities and CDATA and EBCDIC encoding and doctypes and namespaces and crap just because.

Name: Anonymous 2010-05-10 6:52

>>43
Is the encoding part of the JSON specification? I don't see why EBCDIC JSON shouldn't be possible, or why JSON parsers shouldn't support it.

Name: Anonymous 2010-05-10 7:41

>>43
I don't want to sent a date string or a timestamp. I want to send a date. I want account.expiry_date to be a date so I can compare it to the current date, show it as a string or check the day of the week.
One thing I absolutely do not want to do is litter my code with json_date_to_real_date(account.expiry_date), because after I parse something, I expect it to be fully parsed. The type of the data should be in the data, not in the code that uses it after `parsing'.

Of course XML has its flaws, but when it's a huge pain to just to send a date in JSON1, you know something's wrong there too.

1 http://weblogs.asp.net/bleroy/archive/2008/01/18/dates-and-json.aspx

Name: Anonymous 2010-05-10 8:37

>>45
So you're in a tizzy because JSON doesn't have an exhaustive list of types? Is that right?

Name: Anonymous 2010-05-10 8:50

>>45
You seem to be using JSON for purposes it wasn't designed for. If you really want disgusting, complicated type support, use XML Schema.

Name: Anonymous 2010-05-10 9:56

>>46
No, I think JSON sucks because there is no standard way to extend it with user-defined types. With Crockford making ridiculous statements like ``JSON is not extensible. It does not need to be.''1 it is no suprise that using JSON often results in trying to put a square peg into a round hole.

>>47
Is {'expiry_date': date('2010-09-09')} or equivalent too much to ask for? You could use the identity function by default.

1 http://www.json.org/fatfree.html

Name: Anonymous 2010-05-10 11:05

JSON MY ANUS

Name: Anonymous 2010-05-10 13:52

>>48
At first I thought >>47 was being a bit irrelevant, but now I agree with him. Just use YAML or whatever and get over it. Or continue using XML, really. There's no need to complain about JSON though. You don't find people who use JSON don't complain that XML isn't native code, despite the fact that it is exactly why many of them are using it whether they realize it or not.

Name: Anonymous 2010-05-10 15:25

>>48[1]
What lovely diagrams.

Name: Anonymous 2010-05-10 15:46

>>45,48
JSON is good precisely BECAUSE it doesn't have a metric shit ton of useless types. Look at how short and simple a JSON parser is to write:

http://planet.plt-scheme.org/package-source/dherman/json.plt/1/1/json.ss

If you really want your data to be 'fully parsed', you can just wrap your json parser with a thin layer that converts your user defined types based on a table of keys and types. In other words you just tell it 'expiry_date' and 'creation_date' are both dates, and have it convert them for you. You can write this in ten lines of scheme.

One thing I absolutely do not want to do is litter my code with json_date_to_real_date(account.expiry_date)
Really? You can't do that conversion in the one place where you read the date, in the actual place it belongs? Instead you want to write a gigantic extensible XML parser than you can program your types into? Ah, you must be the J2EE programmer that makes my day job a living hell.

Name: 52 2010-05-10 15:49

>>45
I just read your link, and it's really, really fucking stupid.

These are both almost acceptable compromises (if everyone agrees on them) but have a fundamental flaw which is that there can be false positives: what if you want to serialize the "1997-07-16T19:20:30.45+01:00" string, as a real string, not as a date?
Context. Jesus fucking christ. What is the point of correctly parsing the data if you have no idea what it is?

Name: Anonymous 2010-05-10 16:23

>>44
3.  Encoding

   JSON text SHALL be encoded in Unicode.  The default encoding is
   UTF-8.

   Since the first two characters of a JSON text will always be ASCII
   characters [RFC0020], it is possible to determine whether an octet
   stream is UTF-8, UTF-16 (BE or LE), or UTF-32 (BE or LE) by looking
   at the pattern of nulls in the first four octets.

           00 00 00 xx  UTF-32BE
           00 xx 00 xx  UTF-16BE
           xx 00 00 00  UTF-32LE
           xx 00 xx 00  UTF-16LE
           xx xx xx xx  UTF-8

Name: Anonymous 2010-05-10 17:13

>>54
So basically, the spec is ambiguous because the authors don't know what the fuck ``Unicode'' means. Great.

Name: Anonymous 2010-05-10 18:13

>>52
An ad hoc extension/schema for JSON is hardly better than an ad hoc data format.
Parsing should be done in the parser.

>>53
The guy is writing the ASP.NET framework for JSON and as such has no idea what users will create with it.

Name: Anonymous 2010-05-10 20:27

>>56
"ad hoc schema" I hope I'm supposed to be laughing at that.

Name: Anonymous 2010-05-10 23:29

>>55
Not really, no. Basically a JSON file is represented as an Unicode stream, if serialized into a byte stream it will be one of the five listed UTF formats, and in real life it will always be UTF-8.

Name: Anonymous 2010-05-21 17:02

>>1
.txt
No. I write my ideas down with a pen and dead tree format. Like the hackers of old used to do.

Name: Anonymous 2010-05-21 17:21

>>59
Dead tree? What is that, some kind of NoSQL data storage solution?

Name: Anonymous 2010-05-21 17:49

also very linear, access times and searching is a bitch

Name: Anonymous 2010-05-21 18:13

>>55 does not know what the fuck ``unicode'' means.

Name: Anonymous 2010-05-21 21:56

>>60
Yeah, it's part of the EXPERT HIPSTER SOLUTIONS SUITE included in your HipsterPALMPILOT©.

Name: Anonymous 2010-05-22 7:55

Kleene-star and Kleene-plus macros for cl-yacc.

Name: Anonymous 2010-05-22 8:13

Create my own programming language. With syntax similar to ruby, but static typed and uses LLVM as end-end.

Though despite the fact that I didn't managed to complete its syntax, I still dream that someday I will implement it

Name: Anonymous 2010-05-22 9:34

I didn't managed to complete its syntax,
Ruby
not surprised

Name: ont !.LlKAkH4Jk 2010-05-22 15:39

sweet

Name: Anonymous 2010-06-21 16:11

>>63

HipsterPALMPILOT

Lulz

Name: Anonymous 2010-06-21 19:56

An on-line editable (wiki-like) story directed-graph mixed with a state machine.

So basically you get a window with the main vertex, some text based on your current state, and links to other vertices describing what action/choice clicking on that link will do/imply/&c.
Embedded in the text is a simple CPP-like programming language that changes state as you land on vertices and go about your day.

TiddlyWiki-like navigation/editing interface and moderator pages with lists of recent changes, abandoned nodes, &c. (perhaps also "this subtree is X deep and Y wide" after the links, though that would require something clever with back-references (i.e. the graph-part))

Inspired by http://www.asstr.org/~Arthur_Saxon/Your_Wild_Day_js.html

Name: Anonymous 2010-06-21 20:05

>>69
There was a game almost just like that on Madness Temple back when it wasn't a hosting site.

Name: Anonymous 2010-06-22 4:07

>>70
Please, tell me more. Googling "Madness Temple" yielded no results.

Name: Anonymous 2010-06-22 6:15

>>71
I can't find it at all either. All I remember about it is that it also had a few other home-grown games, as well as a music video discussing the differences between `eggplant' and `aubergine.'
It was basically a smaller version of b3ta and 4rthur.

Name: Anonymous 2010-06-22 6:50

* super conversion tool, with pluggable conversion.

eg: one interfact would be a right click context menu, dynamiacally generated to offer releveant targets.

eg right click mp3, show "convert to ogg, convert to flac etc"

eg right click jpg, show "convert to gif, convert to png etc"

plugins would be DLLs that offer conversion to a particular mime type (audio, image, video, text etc)

---------

super color edit. allows you to select a section of code and put in a certain background color.  or have auto coloring based on programming language  (different to syntax highlighting)

Name: Anonymous 2010-06-23 21:56

>>73
super conversion tool
Write a gui to ffmpeg + imagemagik's convert

Name: Anonymous 2010-12-10 14:12

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List