Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 794 795 [796]

Author Topic: if self.isCoder(): post() #Programming Thread  (Read 1003451 times)

taat

  • Bay Watcher
  • Doesn't notify people when putting them in the sig
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #11925 on: May 03, 2024, 04:42:09 am »

if you want to use notepad++ to append to the end of a file, you can search replace..

select regular expression as search mode and then put in

find what: \Z
replace with: \n your text here

if you want it at the start of the file usa /A instead of /Z
but if you want it at some specific line in the middle of the file, you're probably going to need an actualy script instead of these kinds of tricks
Logged
Hypothesis: I will kill all dwarves in a horrible fashion

McTraveller

  • Bay Watcher
  • This text isn't very personal.
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #11926 on: March 20, 2025, 11:32:27 am »

Whoever decided on the OpenXML format for things like office files.... why? You have created so much accidental complexity1 that I have to jump through a million hoops to do what I want, just because the information I need in the files is spread around.  And yes I count "find a tool/library that already parses the information" to be annoying, because then I have to manage the third party resource, make things that might be tool/library specific, etc.

Drives me nuts.

1"Accidental complexity refers to the unnecessary challenges that developers create for themselves while trying to solve a problem, which can often be fixed or improved. In contrast, essential complexity is inherent to the problem itself and cannot be removed." - the AI generated answer when I search for it. I was trying to find the 1980s paper where I first saw the term, but that's buried in the search results and I couldn't be bothered to sort through the ad and blog links to find the actual reference.
Logged
This product contains deoxyribonucleic acid which is known to the State of California to cause cancer, reproductive harm, and other health issues.
Pages: 1 ... 794 795 [796]