Sign Up Now!

Sign up and get personalized intelligence briefing delivered daily.


Sign Up

Articles related to "php"


Object Oriented Programming

  • So you see, both procedural and object-oriented paradigms were trying to solve the same issues: the issue of mutating the global state and breaking down complex tasks into smaller modular units (subroutines/functions vs.
  • Contrary to procedural and functional paradigms where we would pass data from a function to function, manipulate it and return it, in OOP we want the object that encapsulates that data (has it in its internal state) to do the manipulation for us.
  • In other words, the interface defines the methods a class needs to implement in order for our program to work otherwise it will break.
  • Good example - Since we programmed to an interface and not an implementation, changing the storage method is just a matter of changing the class we provide through the App's constructor, we are changing just one line of code.

save | comments | report | share on


My First 12 hours with Ruby

  • This year I wanted to learn a new language, to add a different perspective on problem solving.
  • However, recently I was approached with a project that is currently written in Ruby (on Rails).
  • If I had to pick a language to learn based on how friendly and curitouse the members are to each other; Ruby would win hands down.
  • It is a dot based syntax (like JS for example), paren's are optional, and the data types ad nearly self defining.
  • After some digging around I am pleased with the ecosystem around the Ruby language.
  • For all the short syntax, everything is an objects, neat-coll-shininess; Ruby 2.6 lags behind PHP 74.3 in all buit the binary Tree test.
  • I could see myself reaching for Ruby (+Rails / Sinatra) for quick web projects for automation scripting as easily as PHP or Golang.

save | comments | report | share on


My First 12 hours with Ruby

  • This year I wanted to learn a new language, to add a different perspective on problem solving.
  • However, recently I was approached with a project that is currently written in Ruby (on Rails).
  • If I had to pick a language to learn based on how friendly and curitouse the members are to each other; Ruby would win hands down.
  • It is a dot based syntax (like JS for example), paren's are optional, and the data types ad nearly self defining.
  • After some digging around I am pleased with the ecosystem around the Ruby language.
  • For all the short syntax, everything is an objects, neat-coll-shininess; Ruby 2.6 lags behind PHP 74.3 in all buit the binary Tree test.
  • I could see myself reaching for Ruby (+Rails / Sinatra) for quick web projects for automation scripting as easily as PHP or Golang.

save | comments | report | share on