- Joined
- Sep 11, 2024
Care to elaborate?Go language, and at least half of the problems with which those fuckwits masturbate themselves
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Care to elaborate?Go language, and at least half of the problems with which those fuckwits masturbate themselves
niggerliciousand its name is POSIX
niggerlicious
Whether you think this type of behavior should happen is still a matter of intense debate decades later.
Every forum software's implementation is a little different, but xenforo's uses an interesting hybrid approach with regex and a traditional tag stack setup. I get the impression the inline tags (e.g. formatting) are inherently more flexible than the block style tags.niggerlicious
If you count only rendered glyphs as being affected by BBCode tags, this is totally acceptable. It just reveals a stateful interpreter instead of some tree structure, I guess.
protected $ast = [];
protected $astReference;
protected $tagStack = [];
protected $pendingText = '';
protected $plainTag = null;
protected $depth = 0;
protected $maxDepth = 20;
while (preg_match(
'#(?:\[(\w+)( |=|\])|\[/(\w+)])#i',
$text, $match, PREG_OFFSET_CAPTURE, $position
))
There is never a situation where regular expressions are mandatory.any time I have to use regular expressions
This should be a hard error that rejects the input as malformed.What should happen when you do something like this?
Code:[B][I]niggerlicious[/B][/I]
They key word here is should.This should be a hard error that rejects the input as malformed.
That everyone doesn't just use PCREs at this point (including and especially Python), is a fucking travesty.
re
is mostly compatible with the PCRE format. What were you looking for in particular?People who can't into nesting when faced with an error explaining why their shit is wrong are a genuine safety risk to themselves and to society. They will be immediately plugged into the matrix once it has been built, where they will be used as biological transistors in order to mine bitcoin.They key word here is should.
For retard-friendly text formatting, hard errors and input rejection only create headaches for users who have never used anything resembling markup. Do you want slightly fucky formatting or a million "bug" reports about rejected user inputs? Any problem that has to be solved by a giant flaming disclaimer at the top of some FAQ page is the result of shitty design and planning.
I 100% agree, but fighting the end-user and making their retardation apparent to them through bad design is a great way to write software that no one else ever uses. I was never a UX guy, but I learned pretty quickly that most users need to be spoonfed. Also, nesting is easy to fuck up if you copy and paste stuff a lot.People who can't into nesting when faced with an error explaining why their shit is wrong are a genuine safety risk to themselves and to society. They will be immediately plugged into the matrix once it has been built, where they will be used as biological transistors in order to mine bitcoin.
I would rather be told about a dumb mistake I made when copy-pasting, than it be accepted and potentially lead to buggy states that are hard to reason about and that were not intended by the programmer. Outside of the learned helplessness goycattle, I think most people want this too even if they don't concretely know why.I 100% agree, but fighting the end-user and making their retardation apparent to them through bad design is a great way to write software that no one else ever uses. I was never a UX guy, but I learned pretty quickly that most users need to be spoonfed. Also, nesting is easy to fuck up if you copy and paste stuff a lot.
Practicality and pragmatism are all about trade-offs and compromises. This sort of thing is why you never see markup tags anymore. It's all variants of markdown now; markdown is easy.
<a><b></a></b>
problem is trivially identifiable with a parser, and you can output helpful contextual error messages for the specific scenario that occurred. This is always better than quietly accepting it and either re-writing it like what a web browser does, or leaving it to cause problems elsewhere in the document.Several things have bit me over the years with Python's module versus PCREs:re
is mostly compatible with the PCRE format. What were you looking for in particular?
Any language based on Meta Language is extremely good for writing interpreters. I would genuinely suggest Haskell, it's ungodly fast if you put the time and effort into learning the language + the quirks of how it compiles (like when to use foldl vs foldr vs foldl' vs foldr'). Basically you can unintentionally end up using a ton of memory on accident if you don't understand what the compiler is doing. Richard Bird's books are a great resource for this. But once you get it right it's fucking miraculous how fast it is. I love writing toy languages and at this point would only choose Haskell for that job. If you're the kind of person who would like to write a toy language you're also probably the type of person who will find Haskell fun to write.
This is sorta not a regex language as most people imagine them, but SRE is basically how you'd do a regex language right.Just good luck maintaining any regex strings more than 10 characters long
jupyter lab
to work through the exercises. I'm liking this approach so far. I tried QGIS earlier and I walked away with the impression that is a very solid and capable piece of software but using it reminded me of this old Calvin and Hobbes Sunday strip:This is a trick question!What should happen when you do something like this?
Code:[B][I]niggerlicious[/B][/I]
[b][i]niggerlicious[/b][/i]
<b><i>niggerlicious</b></i>
This depends on how you define BBCode. If it's "markup that compiles to HTML" (per bbcode.org), then mostly yes, and everything that displays prettily formatted BBCode documents must have a HTML parser (its own or a third-party one). But if it's taken to mean an independent language for text files (like Markdown now is, but initially wasn't), then you have to make a decision.The obvious and sole correct answer is to defer it to the browser’s HTML parser.
In some applications, yes, but BBCode was intended as a writing format. There are two common scenarios that are not served well by throwing out a babby with the bbathwater:This should be a hard error that rejects the input as malformed.
it's yanderedev so he probably wont (ever)View attachment 6735955
Im not even gonna test this but Im pretty sure he can just do
C#:return number % 2 == 0;
Jnstalling a package from npm specifically to check if something is an even number is more niggerlicious than doing if else statements.