What is the XY problem?
This is best illustrated by example:
Rails, Tekla Open API, AutoDesk .NET
This is best illustrated by example:
The notoriously detailed AutoCAD .net documentation strikes again! What exactly is meant by a collinear LineSegment2d? Who knows? Luckily the documentation is there to save the day:
Place Section Commands from Tek1 on Vimeo.
Here is the relevant GitHub issue. They were so sneaky. The posted a ruby gem, but with some sneaky additions. This was not posted on Github. They were hoping that nobody would notice. But someone did. In order to pull this off, you’d have to be a fairly sophisticated rubyist, with a good understanding of rack, and some basic security knowledge exploits. They must have some time on their hands to pursue such nefarious ends.
If you want a comprehensive tutorial, then perhaps consider getting Metaprogramming by Perotta. A huge proportion of the notes here are derived from Perotta.
Prawn is my go-to pdf generator, when using a Ruby on Rails application. I wanted to create a table in prawn, and having no idea how to do so, stumbled upon an article on-line on how to do this. Without it, I would have been lost.
Folks, don’t be afraid of the source code. It’s not all that complicated, once you know the ropes of course.
Nothing could be more paramount, in the writing of code, than to make it understandable and legible. You will be greatly assisted in the latter task, if you employ a beautifier, that styles everything automatically for you. If you are using Sublime Text 3 as your text editor, then you can employ the “BeautifyRuby” package to help automatically indent and style your rails templates.