Inline Code in DokuWiki
You probably want to use ”%%here is code%%”. This formats it in monospace (”) and prevents any interpretion of possible wiki markup (%%).
You probably want to use ”%%here is code%%”. This formats it in monospace (”) and prevents any interpretion of possible wiki markup (%%).
One big argument against inline event handlers, and the argument that is addressed by the other answers here is the separation of presentation and logic. However, there is actually a bigger problem IMO: The somehow elusive way how inline event handlers are evaluated. As you may know, the content of the on* attributes will be … Read more
It’s absolutely fine – although there are two caveats: If you’re modifying a local variable from within a closure, you should make sure you understand what you’re doing. You won’t be able to unsubscribe from the event Typically I only inline really simple event handlers – for anything more involved, I use lambda expressions (or … Read more
In Java, the optimizations are usually done at the JVM level. At runtime, the JVM perform some “complicated” analysis to determine which methods to inline. It can be aggressive in inlining, and the Hotspot JVM actually can inline non-final methods. The java compilers almost never inline any method call (the JVM does all of that … Read more