Recent content by SlurrerOfSpeech

  1. S

    C/C++ Could someone translate this Donald Knuth algorithm to C/C++?

    I do own the book, but I've mostly been able to get through it without learning MIXAL by just reading his paragraph descriptions or his pseudo-code. In this case I'm not quite getting it and I'm wondering if someone could either translate it to C code or direct me to a link online where it is...
  2. S

    C/C++ Could someone translate this Donald Knuth algorithm to C/C++?

    [Can't embed image. Keep getting 500 Internal Server Error ...] https://i.stack.imgur.com/rmDuR.jpg Image added by mentor
  3. S

    Text color detection algorithm giving pixels of text

    No, I'm saying that I have the coordinates of the pixels, e.g. a 2-d array of booleans where true is a text pixel and false is a background of the text, and choosing the 1st most common color among the true coordinates within a region containing text. Below is a better example of the pixels of...
  4. S

    Text color detection algorithm giving pixels of text

    I'm creating a type of image processing software and I have a need to get the color that best represents text once I have identified the pixels in a region of text. I've tried using simple strategies like "averaging" the pixels or taking the most common pixel, but these produces bad results An...
  5. S

    I'm becoming a much better programmer, but maybe not a faster one

    Let me give an example of what I mean. Suppose there's a very simple requirement: Write a program to recursively search a directory and count the number of "*.dll" files. Could easily whip up a working solution using C# DirectoryInfo class in about 1 minute. However, you can think of this...
  6. S

    "Fake autonomy" and the delusion of autonomous services

    Let's say I run an ecommerce business and I have one service for handling shipping and another service for handling customer profiles such as name, address, age, etc. Call them Customer Management Service and Shipping Service. SS has an interest in knowing the customer address of which CMS is...
  7. S

    I'm becoming a much better programmer, but maybe not a faster one

    I'm not so sure about that. When layers upon layers are programmed to abstractions, it can be very difficult to figure out from reading the code what it actually does at runtime in the context of the application that I'm trying to debug.
  8. S

    I'm becoming a much better programmer, but maybe not a faster one

    After ~5 years of real-world experience I've become so much better than I used to be at software design. Interfaces, dependency injection, small classes, composability, factory methods, generics, micro-optimial algorithms, etc. However I'm not sure I have become faster at delivering work items...
  9. S

    Why can't there be a Database tool that has the best of everything?

    Having worked with both SQL Server and Cosmos DB (more the former), the following are the biggest pain points I've experienced with each. SQL Server: Complicated to make it work. There are 100+ different ways to authenticate, for example. All this complicated User-Role mapping, Managed...
  10. S

    Time it takes to transfer a file to a client

    But let's say that the rates are A -> B: 1 pebble/second B -> C: 1 zillion pebbles/second C -> D: 1 pebble/second That's a different rate than if we change C -> D to be 1 zillion/second. The formula for K piles with rates r0, ..., rk is complicated but it would involve summing the rates, for...
  11. S

    Time it takes to transfer a file to a client

    Let's say I have a client that asks for a file from a remote server that then asks for the file from some other remote server (Let's say Azure Blob Storage, for example). Let's say that the file can be transferred from blob storage to the web server at 60mb/s and from the web server to the...
  12. S

    Is the use of null an anti-pattern?

    I remember a while back someone told me that there exist programmers who don't believe in null. I thought that was a crazy idea. Until recently, as I've gotten better at OOP and have figure out that if my object has a property that is allowed to be set to null, it usually means that I am not...
  13. S

    Event-driven system and subscribers missing events

    Let's say I have a service that publishes events, like eo ("Bought 100 shares of AAPL") e1 ("Bought 100 shares of T") e2 ("Sold 500 shares of TSLA") and there exist stateful services subscribing to the events and whose state depends on the events being processed successfully and in the correct...
  14. S

    Microservices architecture disaster

    Huh? You can have N running instances of a monolithic service.
Back
Top