Live data from Hacker News

Carbon – Create and share images of your source code

carbon.now.sh

21–30 of 40 posts

Re: Carbon – Create and share images of your source code

#21
When adding code to tweets, IMO the most important thing is legibility on all devices. That means a large font size with minimal distractions.

In the example code snippet from their site more than half of the vertical space is taken up by unnecessary details added by Carbon (huge shadows, the window icons, borders and white space). Why would you want to waste half of your image on non-code elements when the goal is to share code?

Re: Carbon – Create and share images of your source code

#23
post #21

When adding code to tweets, IMO the most important thing is legibility on all devices. That means a large font size with minimal distractions. In the example code snippet from their site more than half of the vertical space is taken up by unnecessary details added by Carbon (huge shadows, the window icons, borders and white space). Why would you want to waste half of your image on non-code elements when the goal is t…

You can turn those elements off by clicking the gear icon.

Re: Carbon – Create and share images of your source code

#24
post #10

What are usecases of sharing text as image? Is it to force user type from from image or use OCR to get the text?

Where the code is illustrative not intended on being literal copy paste, and the sharing of text without formatting hinders readability and illustrative intent

Re: Carbon – Create and share images of your source code

#25
post #14

Earlier quoted context omitted.

Slides are often (usually?) shared, which would now be rendered uncopyable.

You could include a text file with the full source.

True, I guess a code repository link is common and even more useful than just a code snippet.

Re: Carbon – Create and share images of your source code

#27
Reminds me of this site that I can no longer find called something like "instacode" (instacode.com is not it, at least not anymore). It had a more tongue in cheek vibe but it let you select different themes and even rotate your code in 3D and apply blur effects and such, then save an image. People got pretty creative.

Re: Carbon – Create and share images of your source code

#28

Earlier quoted context omitted.

How do you share code snippets on Twitter?

You upgrade to a platform that was made for sharing code snippets and not flinging insults and blogspam

I find it frustrating that you not only failed to answer the question to which you responded, but you also failed to provide the name of the alternative platform you so condescendingly espoused.

Re: Carbon – Create and share images of your source code

#29
post #11

People use this in presentations, but wait if you make a mistake across many slides :) I think it’s worth looking into a better way to create presentations with code (there are many).

People who are using solutions like this for slides, please try out pandoc.

Pandoc is usually associated with Latex, but in reality its scope is really broad. I have been using it to convert markdown to slides for a while and it works quite well (Plus you get good syntax highlighting through pygments).

Ref: https://pandoc.org/MANUAL.html#producing-slide-shows-with-pa...

Post reply on HN