summaryrefslogtreecommitdiffstats
path: root/2020/info/14.md
diff options
context:
space:
mode:
authorBhavin Gandhi <bhavin192@geeksocket.in>2020-12-10 23:56:58 +0530
committerBhavin Gandhi <bhavin192@geeksocket.in>2020-12-10 23:57:11 +0530
commitec176e1c2629b7118eaeb5decc1a4f36d6cf45ff (patch)
treed65b2dae5a068b7c96644f1a62e953a184178ece /2020/info/14.md
parent05ac00d1637be3ac876aad2c1ecbb15ccdbcade9 (diff)
downloademacsconf-wiki-ec176e1c2629b7118eaeb5decc1a4f36d6cf45ff.tar.xz
emacsconf-wiki-ec176e1c2629b7118eaeb5decc1a4f36d6cf45ff.zip
Formatting, typos - talk 14-20
Diffstat (limited to '2020/info/14.md')
-rw-r--r--2020/info/14.md119
1 files changed, 71 insertions, 48 deletions
diff --git a/2020/info/14.md b/2020/info/14.md
index 2a65c88e..55f86fcc 100644
--- a/2020/info/14.md
+++ b/2020/info/14.md
@@ -11,73 +11,96 @@ documentation. This strategy is a great way to keep your documentation
from getting outdated, and it allows you to use all the other
wonderful features of org-mode. Watch "README-Driven Design" to see
exactly how to make your README file a powerful literate document.
-- [Companion Blog Post](http://adamard.com/literate_programming.html)
-- [Extended Version of Demo File](https://github.com/adam-ard/literate-demo)
-- [Literate Static Website](https://github.com/adam-ard/static-website-literate-demo)
-<!-- from the pad --->
-- Actual start and end time (EST): Start 2020-11-28T14.15.00; End: 2020-11-28T14.34.46
-
-
-# Questions
-
-
-## If you put all your code in an org file (in addition to prose), doesn't that make the file very large for medium/large projects? (Since all the code across all files is tangled from a single README.org)
-You are right it would get pretty large. I haven't hit that point yet, but plan to experiment with separate org files that are imported into a master file.
-
-
-## If a collaborator edits the tangled file(s), is reverse-tangling in org reliable? How do you integrate the reverse in a safe way?
-
-So, I actually think this is the big unsolved problem right now. How to do reverse tangling. As far as I know, emacs doesn't do that. But it would really cool. I think it is probably a hard problem.
-- actually it does! you have to enable comments that mark the boundaries of the code blocks. (org-babel-detangle) -> org-babel-detangle is pretty fragile right now.
-- Oh wonderful! I will have to check that out. There is always more to discover in emacs. Thanks!
+- [Companion Blog Post](http://adamard.com/literate_programming.html)
+- [Extended Version of Demo File](https://github.com/adam-ard/literate-demo)
+- [Literate Static Website](https://github.com/adam-ard/static-website-literate-demo)
+<!-- from the pad --->
-## Would this approach make it harder to collaborate with contributors who don't use org?/How to rectify these difficulties? (Thank you!)
+- Actual start and end time (EST): Start: 2020-11-28T14.15.00; End:
+ 2020-11-28T14.34.46
-I have had some sucess at work by managing an org file myself, then I commit the tangled code and a README.md. I have to manually update my org file though when someone makes a change to the raw source files. That process can be a pain. It would be awesome to find a way to make this easier. So that non-emacs users can collaborate and be unaware of the source org file. To have an annotation free reverse tangling process would be the holy grail of literate programming. Would be a great thesis project for someone.
+# Questions
+## If you put all your code in an Org file (in addition to prose), doesn't that make the file very large for medium/large projects? (Since all the code across all files is tangled from a single README.org)
+You are right it would get pretty large. I haven't hit that point yet,
+but plan to experiment with separate Org files that are imported into
+a master file.
+
+## If a collaborator edits the tangled file(s), is reverse-tangling in Org reliable? How do you integrate the reverse in a safe way?
+So, I actually think this is the big unsolved problem right now. How
+to do reverse tangling. As far as I know, Emacs doesn't do that. But
+it would really cool. I think it is probably a hard problem.
+
+- Actually it does! You have to enable comments that mark the
+ boundaries of the code blocks. (org-babel-detangle) ->
+ org-babel-detangle is pretty fragile right now.
+- Oh wonderful! I will have to check that out. There is always more to
+ discover in Emacs. Thanks!
+
+
+## Would this approach make it harder to collaborate with contributors who don't use Org? / How to rectify these difficulties? (Thank you!)
+I have had some sucess at work by managing an Org file myself, then I
+commit the tangled code and a README.md. I have to manually update my
+Org file though when someone makes a change to the raw source
+files. That process can be a pain. It would be awesome to find a way
+to make this easier. So that non Emacs users can collaborate and be
+unaware of the source Org file. To have an annotation free reverse
+tangling process would be the holy grail of literate
+programming. Would be a great thesis project for someone.
## Interesting. Did you ever use this approach on a large project? Could one incorporate also TDD into this workflow?
+I have only really hit the medium size. But would love to try a larger
+one. I have seen people write whole books in literate progamming
+though. (Not sure if they were using Emacs) (one example:
+<http://www.pbr-book.org/> ). Here is a pretty large one I found on
+GitHub: <https://github.com/nakkaya/ferret>.
-I have only really hit the medium size. But would love to try a larger one. I have seen people write whole books in literate progamming though. (Not sure if they were using emacs) (one example: <http://www.pbr-book.org/> ). Here is a pretty large one I found on github: <https://github.com/nakkaya/ferret>
-
-TDD is an interesting idea. I haven't tried doing that, but org seems flexible enough to build a workflow around that.
-
+TDD is an interesting idea. I haven't tried doing that, but Org seems
+flexible enough to build a workflow around that.
## Could you share the snippet for adding these source code blocks, it seems much better than the one I am using currently. Thanks!
-
-Sure, it is documented in the literate programming demo here (<https://github.com/adam-ard/literate-demo> )
+Sure, it is documented in the literate programming demo here
+(<https://github.com/adam-ard/literate-demo>).
-## In Python, indentation is part of the syntax. How is this handled when <a id="orgd70b75b"></a>-syntax is used for functions or even a few lines of codes that are get re-used in multiple functions? Does the user have to define different <a id="org3552e1e"></a> snippets for different indentations but otherwise identical code?
-
-Not the speaker, but :noweb will add the prefix characters to all lines, see <https://orgmode.org/manual/Noweb-Reference-Syntax.html>. Python identation is fine (and used as an example in the manual :))
-- exactly, I have done a lot of python this way, it works great!
+## In Python, indentation is part of the syntax. How is this handled when <<foo>>-syntax is used for functions or even a few lines of codes that are get re-used in multiple functions? Does the user have to define different <<foo>> snippets for different indentations but otherwise identical code?
+Not the speaker, but `:noweb` will add the prefix characters to all
+lines, see
+<https://orgmode.org/manual/Noweb-Reference-Syntax.html>. Python
+identation is fine (and used as an example in the manual :))
+- Exactly, I have done a lot of Python this way, it works great!
## Could this structure be used with a SQL query with the output being an Org table?
-
-Yep, I have done that before too. Org will send the query to a database and insert the results. It is super nice. You can add block properties to set the hostname of the database too, so it isn't limited to just databases running on your local machine.
+Yep, I have done that before too. Org will send the query to a
+database and insert the results. It is super nice. You can add block
+properties to set the hostname of the database too, so it isn't
+limited to just databases running on your local machine.
## Why do you export to Markdown when GitHub and others are supporting rendering Org directly?
-
-Good question. I do this because I usually work with people that don't use emacs :( so I usually take the source files and the markdown and commit them to git. I keep the org file to myself. If everyone used emacs, I wouldn't bother with that step.
-
+Good question. I do this because I usually work with people that don't
+use Emacs :( so I usually take the source files and the Markdown and
+commit them to Git. I keep the Org file to myself. If everyone used
+Emacs, I wouldn't bother with that step.
## This file would be very useful to have for us for reference, could you also share it please?
-
-Yep! See the links below for a couple template files. An extended one from the talk is at: <https://github.com/adam-ard/literate-demo>
-
+Yep! See the links below for a couple template files. An extended one
+from the talk is at: <https://github.com/adam-ard/literate-demo>
# Notes
-- Adam Ard: I'll be answering questions here in the pad or in #emacsconf (aard3)
-- Companion Blog Post: <http://adamard.com/literate_programming.html>
-- Extended Version of Demo File: <https://github.com/adam-ard/literate-demo>
-- Literate Static Website: <https://github.com/adam-ard/static-website-literate-demo>
-- If you want to learn what GitHub is able to render in Org syntax: <https://github.com/novoid/github-orgmode-tests>
-- <https://en.wikipedia.org/wiki/Literate_programming>
-- I am thinking about org-transclusion; similar ideas to deal with notes instead of codes
- - FYI: <https://github.com/alphapapa/transclusion-in-emacs>
-
+- Adam Ard: I'll be answering questions here in the pad or in
+ #emacsconf (aard3).
+- Companion Blog Post: <http://adamard.com/literate_programming.html>.
+- Extended Version of Demo File:
+ <https://github.com/adam-ard/literate-demo>.
+- Literate Static Website:
+ <https://github.com/adam-ard/static-website-literate-demo>.
+- If you want to learn what GitHub is able to render in Org syntax:
+ <https://github.com/novoid/github-orgmode-tests>.
+- <https://en.wikipedia.org/wiki/Literate_programming>.
+- I am thinking about org-transclusion; similar ideas to deal with
+ notes instead of codes.
+ - FYI: <https://github.com/alphapapa/transclusion-in-emacs>.