antiismist


21 points by antiismist over 2 years ago | link
cached 11 days ago

15 points by antiismist over 2 years ago | link
cached 13 days ago

15 points by antiismist over 2 years ago | link
cached 3 days ago

11 points by antiismist over 2 years ago | link | parent | top
cached 3 days ago
Sure, I can share some things I've learned. The caveat of course is that I am no elite hacker, so some of this is going to be obvious or not really correct...

- macros: In news.arc, they are all over the place. So I tried to code in a similar style, but it turns out that if something can be done via a macro vs being done with a function, then it is more natural for me to use a function. I work a lot with the REPL, and it turns out to be really annoying to change a macro, and then I have to track down all the places that use that macro, and "refresh" them to use the new macro. Especially with macros that call macros that call macros, and I change the macro at the end of the chain. Whereas with a function, I just have to paste in the new function and it takes effect right away.

- news.arc stores posts in a hash table. I started off modeling ballerinc that way. But as time goes on, I am starting to move things over to plain old lists. Basically, working with a hash table pushes me into code that uses side effects to get things done, like using each. Whereas with lists, the code is usually cleaner and shorter.

- repl: using the repl on the running web server is pretty amazing. Already I have pushed changes directly to the live site. For ballerinc restarting the server takes about 10 minutes, so this has been a life saver. I don't worry about "releases" at all anymore - just make the feature, test it, and deploy it.

- the codebase is about 386 LOC. For the past week I've been adding features and doing code cleanup, and the LOC keeps going down.


7 points by antiismist over 2 years ago | link | top
cached 11 days ago
Here is the site that I have been working on--a sports news aggregator. For people who think that sports news should be on the front page of the paper.

6 points by antiismist over 2 years ago | link | top
cached 13 days ago
Thanks for the suggestions. So I went with Slicehost.com

The setup so far:

apt-get install mzscheme

use wget to grab arc2

run (nsv 5555) - got the famous date error. So now the next task on my checklist is learning how to use git so I can get the date patch via anarki...


6 points by antiismist over 2 years ago | link | top
cached 2 days ago
That's a good link. But it sounds like he is working on news.arc, not necessarily arc itself.

5 points by antiismist over 2 years ago | link | parent | top
cached 11 days ago
For my deployment method, see this thread for the hosting details: http://arclanguage.com/item?id=4288

My code is a little rough - I am working on cleaning it up. Send me an email to pageonetimes@idoh.com and I will send it when it is ready.

If you're stuck on any problems or have any questions, ask away!


4 points by antiismist over 2 years ago | link
cached 23 days ago

4 points by antiismist over 2 years ago | link | parent | top
cached 13 days ago
worked like a champ, thanks!

minor point, I used

apt-get install git-core

(because just "git" didn't seem to work)