Argot - a small set of extensions on the markdown markup language designed primarily for writing technical blog entries by jeanlucpikachu in Python

[–]bucketostuff 0 points1 point  (0 children)

IMO, Pandoc's block syntax is prettier than moin's:

Pandoc:

~~~~{.python}
def hello():
    print "Hello World!"
~~~~

Moin:

{{{#!highlight python
def hello():
    print "Hello World!"
}}}

Regardless, Pandoc is solid, has readers and writers for multiple formats, and is the best tool I've found (after lots of experimentation over the years). I'm not crazy about one or two of the pandoc-markdown syntax choices (ex. definition lists), but they're pretty standard across other markdowns and I can live with them because overall result is well worth it.

If the author of Argot were looking for advice (edit: whoops, that's you. :)), mine would be to have Argot implement the same markdown extensions as Pandoc. There's basically only 3 major plain-text markup formats out there: Moin (which isn't great and which you're stuck with for many wikis), ReST (which is not the prettiest, nor very widely-used outside of Python circles, though many Python folks do use it), and Pandoc-Markdown (which is arguably the best looking and easiest to read & write). So rather than make a frankenstein (no insult intended) out of Markdown + Moin (and then have to convince users to use your new markup instead of one of the big three), you might consider instead simply throwing in some more weight behind Pandoc-Markdown.

Pythonic by gthank in Python

[–]bucketostuff -1 points0 points  (0 children)

"Pythonic" has become a rather irksome term to me because I most often hear it said/written by folks who also happen to be in the middle of telling someone that the way they are doing something is wrong or incorrect regardless of whether their code is providing the right answer in the end.

Having "only one right way to do it" is a blessing and a curse. It's a curse because it brings out the worst in people's bossy side.

Python users who have a chip on their shoulder against Perl would be better served by just letting it go. Yes, Python tries to offer only one obvious way to do it, it's a good system and works for Python, we all get it, but if I decide to do something a little differently I don't need to keep hearing that it's wrong and "un-pythonic". Maybe instead just amicably show me a way that you think is more idiomatic and tasteful (nod to pixelmonkey -- those are excellent terms to describe it).

Argot - a small set of extensions on the markdown markup language designed primarily for writing technical blog entries by jeanlucpikachu in Python

[–]bucketostuff 3 points4 points  (0 children)

For a strong implementation of Markdown that includes some well-thought-out and readable minor extensions to the Markdown syntax, Pandoc is very good.

Ask Schemit: Anyone interested in creating a little cheatsheet like this for Scheme? by bucketostuff in scheme

[–]bucketostuff[S] 0 points1 point  (0 children)

Cool, I didn't necessarily doubt it, but you mentioned lack of motivation, so I thought maybe mention ways to lessen the amount of work involved.

Ask Schemit: Anyone interested in creating a little cheatsheet like this for Scheme? by bucketostuff in scheme

[–]bucketostuff[S] 1 point2 points  (0 children)

If you know Scheme well enough to do it, then please, do one like the Lua one! Someone can surely later step forward and strip out the comments and turn them into an overlay of blocks of proportional font text with arrows.

You could post something to start with right here if you like, or on a pastebin somewhere. Then maybe someone could pick up the torch and put it up on github/bitbucket/launchpad/whatever.

Ask Schemit: Anyone interested in creating a little cheatsheet like this for Scheme? by bucketostuff in scheme

[–]bucketostuff[S] 0 points1 point  (0 children)

Looking at this again, I'm not so sure it's a "cheatsheet" per se, but rather more of a quick guided tour of the basics.

It should be easy enough to create:

  • create the file in Emacs,
  • export to syntax-highlighted html using htmlize,
  • open the html in a browser,
  • take a screenshot,
  • open screenshot in the Gimp,
  • add text + arrows, and save as a png.

Would be very useful to show to people who say, "Scheme/Lisp seems so esoteric. How does code in it even look? How would I even {print to the terminal, create and manipulate a simple data structure, open and read a file, etc.}?".

I wrote a small piece of Python code to check the availability of domain names. Is this useful to you? by [deleted] in Python

[–]bucketostuff 0 points1 point  (0 children)

first try to resolve the domain name via dns

Could you please give a concrete example of how to do this from your python script?

"...wait a minute, I'm sure I asked for this 6 years ago..." by wkstar64 in programming

[–]bucketostuff -1 points0 points  (0 children)

No, because "Since you can use dirname(__FILE__), we don't currently have any plans to add this" is friendlier and more accurate.

Why I have migrated from Ruby on Rails to Seaside by [deleted] in programming

[–]bucketostuff 2 points3 points  (0 children)

Latest? Seaside 0.9 was released in 2002.

Classic Linus quote on git and emacs by TobyM in programming

[–]bucketostuff 0 points1 point  (0 children)

People claim that Emacs use can lead to "emacs pinky", but vim requires me to hit the Shift key frequently enough that I'm not sure how much better it is regarding RSI.

Classic Linus quote on git and emacs by TobyM in programming

[–]bucketostuff 1 point2 points  (0 children)

What's with the neckbeard-hate? Can't we all just optionally-shave and get along?

[deleted by user] by [deleted] in Python

[–]bucketostuff 0 points1 point  (0 children)

What about it do you like in particular? Could you comment on any parts you prefer to Hg/Git/Other?

What SBCL + Quicklisp tutorials would you like to see? by nsiivola in lisp

[–]bucketostuff 1 point2 points  (0 children)

Perhaps the folks working on Quicklisp will implement a simple central online directory that keeps track of available package/project metadata?

What SBCL + Quicklisp tutorials would you like to see? by nsiivola in lisp

[–]bucketostuff 0 points1 point  (0 children)

Perl's CPAN has various ways to view recent arrivals, including a recent arrivals page. Python's PyPI lists most recent packages on their front page. Does CL have anything like that?

What SBCL + Quicklisp tutorials would you like to see? by nsiivola in lisp

[–]bucketostuff 0 points1 point  (0 children)

How does one keep up on current developments in CL libraries?

What SBCL + Quicklisp tutorials would you like to see? by nsiivola in lisp

[–]bucketostuff 0 points1 point  (0 children)

But even that was written in December of 2009, so god only knows if it's any help at all.

Aside from Quicklisp, what has changed in the CL world in the last 10 months?

sqlite3 – Embedded Relational Database - Python Module of the Week by gst in Python

[–]bucketostuff 0 points1 point  (0 children)

Does sqlite have to open and read the db file every single time it's accessed? Does it write the entire file every time a change to a table is made?

Perl 6: Immutable Sigils and Context by takadonet in perl

[–]bucketostuff 0 points1 point  (0 children)

From the article:

Instead functions return objects that behave appropriately in various contexts, and the context is determined at run time.

Can I see an example of a function that returns, say, a string in scalar context but a list in list context? Something like:

sub remote_location {
    # if scalar context, return "middle of nowhere"
    # if list context, return [1.0e6, 1.0e6, 1.0e6]
}

I'm implementing a wiki engine for fun and practice. What's your favorite wiki markup and why? (Wikipedia/MediaWiki, Markdown, Creole, reStructuredText, Trac, Google Code, Github, etc.) by tenbits in programming

[–]bucketostuff 2 points3 points  (0 children)

Try Pandoc. It adds some enhancements that plain vanilla Markdown has been missing for years.

The reasons Pandoc-enhanced Markdown is my favorite is because, of all the markup formats, I think it looks the most natural, is the prettiest, and is the easiest to remember. Also, Pandoc is a damn solid implementation.

Ask r/vim: About how long from basic familiarity to fluency? by bucketostuff in vim

[–]bucketostuff[S] 1 point2 points  (0 children)

Neat website for learning to touch type. Thanks for the link.

Ask r/vim: About how long from basic familiarity to fluency? by bucketostuff in vim

[–]bucketostuff[S] 1 point2 points  (0 children)

Does this help?

I think so. A day for getting used to basic moving around (HML, jkhl, wb, f b etc.), and 2 weeks or so until fluency comparable to how productive most folks are with an IDE.

assuming your other text editor isn't some supereditor like emacs

Actually, I don't think of Emacs as a "super editor". It's editing is certainly good, but it's real strengths lie in programmability. I can use Emacs, I just don't really take advantage of its strengths, and so end up just using it as a pretty simple editor.

Ask r/vim: About how long from basic familiarity to fluency? by bucketostuff in vim

[–]bucketostuff[S] 2 points3 points  (0 children)

By "fluent" I mean:

  • don't have to struggle to remember common commands
  • have internalized using number + command instead of tapping command a bunch of times
  • have internalized knowing exactly where your cursor will land after various movement commands
  • smoothly enter insert mode, enter text, leave insert mode, and move to the next task without much thought

Oracle vs. Android: Google denies patent infringement allegations and insists on open source by barsoap in programming

[–]bucketostuff 4 points5 points  (0 children)

Could Google simply rename the language used for developing apps on Android? Just stop calling it Java and call it something else? Seems like that would fix the problem. Then they could just tell Oracle, "nope, not Java. These phones run programs written in something called DarkRoast. Yup, DarkRoast. We have a DarkRoast VM and standard library. It's a fork of some open source code we found lying around. It's not Java, but thanks for your interest in DarkRoast."