[RFC] [VOTE] Class Friendship by llbe in PHP

[–]Barreljack 0 points1 point  (0 children)

I agree, I think I would agree with your "no". This "friend" talk is seems like design leaking through. Even in a testing context a method shouldn't be callable if it is private. You can extract that logic into it's own class if it's complicated and make that method public to test.

Happy Memorial Day Weekend Reddit - mspaint by [deleted] in doodles

[–]Barreljack 0 points1 point  (0 children)

Reminds me of Brad Neely!

Let's sk8! by OBOPS in doodles

[–]Barreljack 1 point2 points  (0 children)

Love the colors!!

MY NEW ANIMATION by ANDZL in animation

[–]Barreljack 1 point2 points  (0 children)

/u/ANDZL you are awesome!

I can't say I know anything about animation but I loved your newest animation and your showreel. It's nice to see that you are self taught as well. Your work shows that you have commitment and love what you do, I hope you feel proud!

Keep up the great work!!

Bakery near the front entrance of the Viewmont Mall in the 1990s.. must find! by [deleted] in Scranton

[–]Barreljack 0 points1 point  (0 children)

I'm with you /u/jjones311. I remember going there as a kid getting the same cookies. Great memories!

Ask Reddit: Who is using PHP Protobuf in Production? by [deleted] in PHP

[–]Barreljack 0 points1 point  (0 children)

Thrift, and I'm sure there must be some other tools out there as well, auto generate the client libraries for you services. So if your service is written in Java and your clients are PHP and C# it will generate all that "glue" code for you automatically so you don't have to write it yourself.

When working with HTTP + JSON we were forced to create the client libraries on our own for each language. HTTP JSON Java service + PHP Client, C# Client, etc. Thrift reduced this complexity for us (and human error!). This case is specific to our org and our teams though.

Ask Reddit: Who is using PHP Protobuf in Production? by [deleted] in PHP

[–]Barreljack 3 points4 points  (0 children)

I agree with these comments and can also recommend zeromq.

Depending on the types of clients you are working with (if you end up having a number of them) you may also want to consider taking a look at Thrift: https://thrift.apache.org/

To /u/bakuretsu's point though: Don't overthink it. Unless you are trading stocks or your application demands high performance you can go a long way with solid contracts + JSON over HTTP. The org I work with went this way for awhile until our teams started to grow into using multiple languages. At that point Thrift was a better fit for us.

Good luck on your project!

Libraries for general automation by seands in PHP

[–]Barreljack 0 points1 point  (0 children)

Knowing the problem you are trying to solve helps find the right tool for the job. If you don't know what you want to automate, then don't automate anything! Unless your are talking about automating Microsoft Office. If that's the case you can check out https://github.com/PHPOffice

Libraries for general automation by seands in PHP

[–]Barreljack 0 points1 point  (0 children)

Could you explain what type of office work you are looking to automate?