The third problem a work around exists for: remove the default argument. If you want an empty init, provide one.
Sure it is buggy, but you can express these programs.
37 karma · joined April 15, 2012
The third problem a work around exists for: remove the default argument. If you want an empty init, provide one.
Sure it is buggy, but you can express these programs.
data MetaData = MetaData {
metadataUrl :: String,
metadataTitle :: String ...
you can use import Data.Char
...
upStr n s = toLower (head (drop n s)) : (drop (n+1) s)
$(deriveJSON (upStr 8) ''MetaData)
This will splice the `metadataUrl` to use the `url` field from JSON. The deriveJSON function takes a function to change the field names.It's pretty handy.
Maybe even taking Diaspora and taking out everything except 140char status updates AND adding an API compatible with Twitter apps would be a better approach.
edit: clarity to first sentence.
In the distributed implementation I would have a chain of trust from the people you follow, where if you report someone as a spammer, the server that represents people who follow you could look at your list and filter spammers based off this. You could also set the depth to traverse. There is a lot you could do with this.
I'm not saying my implementation is right, but someone needs to do it. Tweeting is a type of communication and needs to be distributed.
It needs to be Open Source so anyone can run it and everyone owns their data.
It needs to be compatible with current Twitter apps so all it requires is setting the API root.
It needs to be distributed so anyone can follow anyone anywhere. There is no owner or root, there is no place to shut down.
Proof of concept: https://nstatus.herokuapp.com
Source: https://github.com/maxpow4h/nekomimi
I wrote about the requirements of it here: http://maxpow4h.com/blog/twitter/
edit: you can use any username with any password to sign in to nstatus. It then uses that password for your username. You can even do this from the official iOS Twitter app, just sign in.
I've added more detail to the README on what happens (refresh, it is probably cached. GitHub pages does that). My implementation of the idea just a couple of scripts and is far from ideal (has dependencies, need twitter api key), but I hope someone likes the concept and builds on the idea.