<?php | |
use Phan\CodeBase; | |
use Phan\Language\Context; | |
use Phan\Language\UnionType; | |
use Phan\PluginV2\ReturnTypeOverrideCapability; | |
use Phan\Language\Element\Method; | |
use Phan\PluginV2; | |
use \Phan\Language\FQSEN\FullyQualifiedClassName; | |
use Phan\Language\Element\Clazz; |
1. Почему вы выбрали именно нашу компанию? | |
Вы идиот (ка), да? Я, как и все кандидаты до меня и после меня, направил резюме в десяток мест. | |
Где устроюсь быстрее и выгоднее — там и хорошо. | |
2. Как вы считаете, почему мы должны выбрать именно вас? | |
Вам работники вообще нужны? Ну вот он я. Работник. | |
Именно меня стоит выбрать хотя бы потому, что я явно умнее всех тех, кто заливал на эти вопросы стандартную чушь. | |
И умнее вас, между прочим, потому что я никогда таких дурацких вопросов бы не задал. |
<?php | |
use Illuminate\Foundation\Testing\WithoutMiddleware; | |
use Illuminate\Foundation\Testing\DatabaseMigrations; | |
use Illuminate\Foundation\Testing\DatabaseTransactions; | |
class ExamplePassportTest extends \PassportTestCase | |
{ | |
use DatabaseTransactions; |
Name | Description | Exceptions |
---|---|---|
Avoid async void | Prefer async Task methods over async void methods | Event handlers |
Async all the way | Don't mix blocking and async code | Console main method |
Configure context | Use ConfigureAwait(false) when you can |
Methods that require context |
This is just a small post in response to [this tweet][tweet] by Julien Pauli (who by the way is the release manager for PHP 5.5). In the tweet he claims that objects use more memory than arrays in PHP. Even though it can be like that, it's not true in most cases. (Note: This only applies to PHP 5.4 or newer.)
The reason why it's easy to assume that objects are larger than arrays is because objects can be seen as an array of properties and a bit of additional information (like the class it belongs to). And as array + additional info > array
it obviously follows that objects are larger. The thing is that in most cases PHP can optimize the array
part of it away. So how does that work?
The key here is that objects usually have a predefined set of keys, whereas arrays don't: