TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: My weekend project - Codestagram

75 pointsby abemassryover 12 years ago

21 comments

JoeCortopassiover 12 years ago
I would love this idea, if it was limited to 10-20 lines. The forced conciseness of it would make devs focus on brief concepts and structure, rather than complex methods. It would end up being like Dribble rather than Gist/PasteBin, and be a great place to browse for techniques I hadn't previously encountered. Think about how fun it would be to scan through an Instagram style list of stuff like this:<p>############~C~#############<p><pre><code> if ((1?1:var)/2) { /* it's floating point */ } else { /* it's an integer */ } </code></pre> #######~Objective-C~########<p><pre><code> + (NSString *) append:(id) first, ... { NSString * result = @""; id eachArg; va_list alist; if(first) { result = [result stringByAppendingString:first]; va_start(alist, first); while (eachArg = va_arg(alist, id)) result = [result stringByAppendingString:eachArg]; va_end(alist); } return result; } </code></pre> #########~PHP~##############<p><pre><code> $object = new StdClass; $object-&#62;foo = 'bar'; echo json_encode($object); </code></pre> ############################<p>I know they aren't the best example, but I would love to be able to scan through a list of small code snippets (by language) that demonstrate concepts. On the plus side, it would be an easier way to show some competence in a language (for future employers) than having to do massive contributions to open source projects (don't have that much free time). <i>The thing that makes or breaks this project is a smallish limit on lines.</i> Without it, you are just another Gist/Pastebin, without the benefits of the wide user base and additional features. I have <i>zero</i> desire to chill at night and scan through a bunch of random 100+ line snippets that I have no context for, but I <i>love</i> goofing around on Stackoverflow, looking at fancy code snippets
评论 #4999031 未加载
评论 #4999571 未加载
评论 #4999347 未加载
ruswickover 12 years ago
It's a nice novelty, but it certainly won't ever usurp Gists. I'm not sure that it was intended to. However, there is one aspect of the site that really irks me: the wood grain background. For whatever reason, this style has become really pervasive among "hacked-together" sites. Moreover, it sucks. The site would be better served with a geometric pattern, or no background at all.
评论 #4999717 未加载
Hawkeeover 12 years ago
So ACE editor + GitHub API + Commenting and Liking. It's a very, very simple concept. I think mainly what it has going for it is the limited barrier to entry. I'm just not sure what the long term sustainability is. Mainly its lacking the personal network aspect. I have no way of finding the developers I'm following on GitHub.
justjimmyover 12 years ago
I see it more akin to Dribbble than Instagram. You could also introduce 'rebound' - which is improving/optimizing/add your personal touch to the 'shot' (uploaded image, or code in this case).<p>I'm actually going to try and redesign this as my case study for this weekend, thanks for sharing!
评论 #4998322 未加载
mjt0229over 12 years ago
If you want to hipster it up, you can convert the code to punchcards.
prezjordanover 12 years ago
Not sure I understand. Is it just a pasteboard?
评论 #5000116 未加载
travisbyover 12 years ago
I would benefit from a "copy" button. When I highlight the code snippet, I also got the line numbers with it. Would be a hassle for large codestagrams
jvictor118over 12 years ago
It'd be cooler if you could evaluate the expressions. I saw an API for save evaluation of user's code somewhere on reddit the other day, that might help
solox3over 12 years ago
So many solutions, so few problems :/
m_pagliazziover 12 years ago
Don't see the difference with github gists...
评论 #4997375 未加载
sturmehover 12 years ago
Awesome, but I can't delete my comments or posts. D:<p>Also I think a great purpose for this would be to highlight particular bits of code/changes found in git, even if it is just a part of a gist.
sundaraover 12 years ago
Nice Idea - I had developed <a href="http://www.Codeshelve.com" rel="nofollow">http://www.Codeshelve.com</a> sometime back - might want to check that out.
vojantover 12 years ago
Really nice weekend project.<p>Only one column layout isn't the best idea for such site. Maybe 3 thumbnail in a row would be better?
intermeddleover 12 years ago
This is similar to <a href="https://snipt.net" rel="nofollow">https://snipt.net</a>
rmanyariover 12 years ago
Really interesting idea, could become something big for the opensource community.
pablassoover 12 years ago
I got the feeling that this got to the frontpage mostly because of the name.
cpdeanover 12 years ago
where are the cross-processing filters? Where's the vignette button?
shuzchenover 12 years ago
This project is missing one major, necessary feature: direct submission from your IDE/editor of choice. Creating a write-enabled API is probably the first step towards that.
评论 #5000417 未加载
smonteover 12 years ago
I also had a similar weekend project, but specific to Java, <a href="http://javasnips.com/" rel="nofollow">http://javasnips.com/</a>
thomasvendettaover 12 years ago
Nice job Abe, keep up the good work!
bennygover 12 years ago
No Objective-C?