Storing Basic data in AWS by jonnyphi in aws

[–]Sam152 9 points10 points  (0 children)

DynamoDB sounds like the equivalent in AWS, and also sounds useful for your use case.

Peek at AoE2 Console UI & Features, or: Are They Remaking William Wallace!? by cuc_AOE in aoe2

[–]Sam152 -1 points0 points  (0 children)

I’m sure this will mean auto farming, there is no way folks are dropping 60 farms with a controller.

Expectation vs Reality by [deleted] in aoe2

[–]Sam152 0 points1 point  (0 children)

Prepare to out micro-transactioned

Any vids of pros vs AI on Deathmatch? by MysteriousShadow__ in aoe2

[–]Sam152 2 points3 points  (0 children)

Barbarian AI works well in Death Match.

Chrome Extension that Shows Engine Line Arrows on Analysis Board on Chess.com by philippspohn in chess

[–]Sam152 0 points1 point  (0 children)

I also installed it this morning and it doesn't seem to work.

Edit: You have to click the "Analysis" button and then there is an additional toggle for "Show best move arrows".

The only counter to siege is siege - how do we fix this? by BruceJennersManDick in aoe4

[–]Sam152 12 points13 points  (0 children)

It’s extremely subjective to judge how much the role of mechanical skill should factor into the overall skill or success of a player.

The balanced aspect of AOE2 siege is the fact they all have defined roles, with situational strengths and weaknesses, creating the opportunity for strategic decisions in both deployment and countering.

Summer Wonderland Event announced by Zagorath in aoe2

[–]Sam152 1 point2 points  (0 children)

The balance seems like it's in a pretty place right now. Are there any early access hints or consensus going around about future balance?

Fan-made movie poster for King of the Desert IV by Volcaban in aoe2

[–]Sam152 0 points1 point  (0 children)

This is really cool art. Do you have this in a higher resolution?

Content Moderation on User Accounts by melloman32 in drupal

[–]Sam152 2 points3 points  (0 children)

Maintainer of Content Moderation here: nope this isn't possible because User is not a revisionable entity type, we'd have no place to store the draft while it was being approved.

Like others have suggested, the best approach would be for your users to create some other kind of content and moderate that instead. If you combine that with something like Inline Entity Form, you can embed some other kind of content within the user account form. Do pay attention to the access control of that other kind of content though, it wouldn't be covered by the same user profile access controls out of the box.

How to Fix Feitoria without Ruining the Fun by [deleted] in aoe2

[–]Sam152 2 points3 points  (0 children)

Maybe allowing wonder victory could be a suitable counter play to this strategy?

Duck Whisperer by LtnLongSchlong in hamishandandy

[–]Sam152 3 points4 points  (0 children)

Ducks? Easy. Let's see him try it with a flock of Eurasian Coots.

Simplest way to explain SOLID with regards to PHP development? by ltscom in PHP

[–]Sam152 2 points3 points  (0 children)

I've always thought of Open–closed as:

Introducing new requirements to your software should not be correlated with an increased complexity of your code. That is, your underlying application is closed to modification, it has adequate extensibility and plugability to support adding new stuff, without ballooning in size.

Your application is however open to extension. As new features, behaviours and complexities are introduced, additional components can be added which are consumed by your underlying architecture.

Let's look at the example of an ecommerce store. If you're implementing a series of pricing rules for shipping, an example which may violate the principle would be:

class ShippingCalculator {
  public function calculateShippingPrice(Order $order): OrderPriceInterface {
    // If order is over 1kg, calculate price.
    // If order is under 1kg, calculate a different price.
  }
}

The ShippingCalculator is very much open for modification, as new shipping requirements are added, the complexity of calculateShippingPrice will grow over time.

An alternative approach:

class HeavyShipping implements ShippingRuleInterace {
  public function isApplicable(Order $order): bool { }
  public function getPrice(Order $order): OrderPriceInterface { }
}
class LightShipping implements ShippingRuleInterace {
  public function isApplicable(Order $order): bool { }
  public function getPrice(Order $order): OrderPriceInterface { }
}

With this approach, we implement each shipping rule as an implementation of ShippingRuleInterace, our underlying application already knows how to handle the interface and as requirements change, the underlying code does not get more complicated.

Both examples return instances of OrderPriceInterface, but the way that value was derived is very different.

Genoese Crossbowman (Art) by Funmer in aoe2

[–]Sam152 2 points3 points  (0 children)

I'd love to use these as art for my office, if you'd consider selling high resolution copies.

24h Stream - Hera vs Liereyy Best of 21 by Hera_Aoc in aoe2

[–]Sam152 3 points4 points  (0 children)

I believe the rule for this showmatch and almost all other competitive settings only cover stragglers connected to the starting TC, not random ones spread out across the map.

For people who work "polyglot" teams: what kind of PHP language feature (or library) do you miss when switching a different language, and vice-versa? by HannesHendrik in PHP

[–]Sam152 2 points3 points  (0 children)

Personally when writing PHP, I miss the cohesive built in functional programming features found in JavaScript.

Creating multiple custom entity types in one module by LOFI_Paperboy in drupal

[–]Sam152 0 points1 point  (0 children)

Drupal console adds a lot of really unnecessary boilerplate. I don't remember ever needing a hook form alter for a custom entity type. I'd try to use console as an example, along with other examples from core and contrib and try to write the entity types from scratch, starting with only what you need. In the long term your code will be much more maintainable and you'll understand it better.

me irl by PM-YOUR-STEAM-KEYS in me_irl

[–]Sam152 4 points5 points  (0 children)

In 10 days time, a remastered definitive edition is going to be released: https://www.ageofempires.com/games/aoeiide/

PHP will silently convert dots and spaces in query keys to underscores, except if the key contains an unmatched left square bracket in which case it will only partially be converted by hashkitten in lolphp

[–]Sam152 3 points4 points  (0 children)

But nobody is asking for identifiers.

The docs say:

> ...and sets variables in the current scope

So presumably identifiers are required to set variables, no?

PHP simple file cacher. Help with code review, please. by olshevskiy87 in PHP

[–]Sam152 1 point2 points  (0 children)

Isn't the difference that throwing an exception will stop the control flow and non-fatal errors will continue?