andyzweb

u/andyzweb



r/AirConditioners•

The time has come to figure out what to do with the Midea recall money and get a new AC. I'm looking for recommendations that take into account:

  • Humid New-England summer
  • Operated in an area that's quite shady
  • Quiet Operation

Thanks for any advice on the matter

10







r/PHP•

My background is mainly in C (with C++ or ObjC where necessary). I did a lot of work with signal processing and audio.
In my experience practicing multiple testing styles provides the best results. I found having unit tests to be the most helpful. With two months of PHP under my belt I am ready to dig into more formalized testing for PHP.

Use this thread to share links/thoughts/insights/discussion/questions about testing and PHP with a focus unit testing.

913

r/PHP•

How do you approach problems that are so obviously parallel in PHP?
is there a way to implement the Producer-consumer pattern?
In this example I am performing an operation to every file in a directory.

  • retrieve the full path and filename
  • get the sha1 checksum of the file
  • determine where to move the file to based on it's name
  • insert the filename and checksum into the database
  • move the file to it's new location

Don't limit discussion to this example alone, I'd like to have a broad discussion about parallelism in PHP.

$it = new FilesystemIterator($impor
1120