Open in app
Home
Notifications
Lists
Stories

Write
Nootan Ghimire
Nootan Ghimire

Home

Published in THE ICONIC Tech

·Jun 19, 2020

The Problem with JsonSerializable and Doctrine when using Symfony

Making your classes JsonSerializable is a wonderful way of serializing your object using nothing but PHP internals. This is really useful for classes that always need to be serialized in one way and one way only. class Car implements JsonSerializable { private string $color; private string $build; private Engine $engine; …

Symfony

3 min read

The Problem with JsonSerializable and Doctrine when using Symfony
The Problem with JsonSerializable and Doctrine when using Symfony

Published in THE ICONIC Tech

·Oct 18, 2019

Is that O(n²)? Look closely

Background Run-time analysis are an important part of software development. Specially when you are writing scalable software, it is beneficial to know how your program scales with increasing input. This information allows you to determine the limits of your program, and its always good to know your limits. Run-time analysis is…

Algorithms

5 min read

Is that O(n²)? Look closely
Is that O(n²)? Look closely

Published in THE ICONIC Tech

·Oct 17, 2019

Why is my array_uintersect acting weird?

TL;DR The PHP implementation of array_uintersect (or more truthfully, any array_intersect variant) does the following: Uses the comparison function (if passed) to sort all the arrays Copies the first array into the return value Searches for individual values from the first array in all the subsequent arrays until it finds…

PHP

6 min read

Why is my array_uintersect acting weird?
Why is my array_uintersect acting weird?
Nootan Ghimire

Nootan Ghimire

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Knowable