I like your questions about this and they all seem fair but I kinda wanna encourage you to go ahead and write it yourself; it’s a fun way to convert into Roman numerals that both is and isn’t intuitive at the same time.
- 0 Posts
 - 22 Comments
 
I noticed my “and so on” is literally a noop here so yeah.
No, cause you do the replacement from large to small, I.e. you’d first check for 10 I to replace with X (none found); then replace 9 with IX (check), then check for 5, 4 and so on.
It does.
9 is IX though, and that works.
6 works fine, as it replaces the first set of 5 I with V and then there’s nothing to replace.
I’d written it in typescript for all it’s worth; go ahead and try it yourself :)
I’ve written it that way and it works, as in it will replace left to right and you replace iiii to iv after iiiii to v
It also works the other way round: wanna convert Arabic n to Roman? Just write n times ‘I’ and revert these replacement in inverse order.
Red? Hotpink or bust!
 rooroo@feddit.orgto
 Programmer Humor@programming.dev•I created the weirdest political compassEnglish
442·3 months agoIt wouldn’t be a good compass if nobody had strong issues with it:
- System vs Toy is not opposed to each other. Should have been system vs abstract or useful vs toy or whatever
 - Where LISP? Best language missing makes graph bad
 
Edit: before people tell me there’s already ‘obsolete’ on the graph, no, there’s loads of obsolete languages that are still useful, and many more new languages that are either built for fun or not used for sad or good reasons.
Edit2: I’m also halfway sure that brainfuck is older than rust (but don’t wanna look it up). But if that’s true your axis mean several things at once anyway and you should feel bad (not really though).
 rooroo@feddit.orgto
 Programmer Humor@programming.dev•I created the weirdest political compass
9·3 months agoI’m sure everyone can suggest something better regardless of what they’re looking for in a programming language.
Naaah. Good programmers know how to use
as any as anyto make this work in typescript as well.
Unless you’re in JS.
Everybody complaining about css like “but it doesn’t do what I want if to do without me investing a minute into why”.
Ironically, it’s oh so often the RTFM crowd.
I don’t see how it is a joke tbh. Thought that was one common interpretation of said law.
 rooroo@feddit.orgto
 Programmer Humor@programming.dev•When anyone questions what I do at work all day
131·7 months agoI’m what you describe: my technical skills aren’t top notch but I communicate well. But I don’t bullshit my way up any ladders, but try and do what I do best; that is, facilitate the communication between people who might not be able to communicate with each other.
Not many in my teams could put a finger on what exactly I did, but all agreed I was fairly valuable and things became worse when I left.
 rooroo@feddit.orgto
 Programmer Humor@programming.dev•Curious why they tried to send a file from a windows machine via IMessage
42·8 months agoWhat makes you think this index.html is more than a single <p>Hello World</p>?
 rooroo@feddit.orgto
 Programmer Humor@programming.dev•I want a programming language that supports German style composite words
1·9 months agoMakes sense but ugh
 rooroo@feddit.orgto
 Programmer Humor@programming.dev•I want a programming language that supports German style composite words
6·9 months agoAnd then why is Ganz in caps. I call cap on German C.
Ohhh haha that makes sense. Fun!