Today's Question:  What does your personal desk look like?        GIVE A SHOUT

SEARCH KEYWORD -- Callable work



  JavaScript-style object literals in PHP

The object literal notation in JavaScript looks like: var fido = {name: "Fido", barks: true}; or var fido = {}; fido.name = "Fido"; fido.barks = true; From assoc arrays to objects In PHP you would call that an associative array. $fido = array( 'name' => "Fido", 'barks' => true ); And you can easily make it an object too: $fido = (object)$fido; echo gettype($fido); // "object" Or if you want to start with a blank object and add stuff to it: $fido = (object)array(); or $fido...

   PHP,JavaScript,Object,Function call,Self vs this     2011-11-30 11:11:45

  Python internals: how callables work

[The Python version described in this article is 3.x, more specifically - the 3.3 alpha release of CPython.] The concept of a callable is fundamental in Python. When thinking about what can be "called", the immediately obvious answer is functions. Whether it’s user defined functions (written by you), or builtin functions (most probably implemented in C inside the CPython interpreter), functions were meant to be called, right? Well, there are also methods, but they’re not very ...

   Python,Callable work,Rationale     2012-03-24 05:20:27

  Five-minute Multimethods in Python

So what are multimethods? I'll give you my own definition, as I've come to understand them: a function that has multiple versions, distinguished by the type of the arguments. (Some people go beyond this and also allow versions distinguished by the value of the arguments; I'm not addressing this here.) As a very simple example, let's suppose we have a function that we want to define for two ints, two floats, or two strings. Of course, we could define it as follows: def foo(a, b): if...

   Python,Multimethod,Argument list,Version,Overloadding     2011-12-07 08:41:03

  Python object creation sequence

[The Python version described in this article is 3.x] This article aims to explore the process of creating new objects in Python. As I explained in a previous article, object creation is just a special case of calling a callable. Consider this Python code: class Joe: pass j = Joe() What happens when j = Joe() is executed? Python sees it as a call to the callable Joe, and routes it to the internal function PyObject_Call, with Joe passed as the first argument. PyObject_Call looks at the ty...

   Python,Object creation     2012-04-16 15:03:55

  Productivity is just work

The other day, I wrote a post declaring that I will no longer try to increase my productivity. This doesn't mean I won't read productivity blogs, and tweak things, and manage my "system". It means I no longer think about any of that stuff as having anything to do with productivity. Productivity is what happens when you're doing work. Enhancing your productivity is what happens when you do a lot of work, for long enough to get better at it. Look, throw all your stuff in Dropbox, live yo...

   Productivity,Work,Enhancement     2012-01-05 08:18:36

  Marissa Mayer has something to say about work from home

A few months ago Yahoo started to prohibit employees working from home. This controversial decision attracts many arguments about work from home. Previously we published one article Silicon Valley engineers have something to say about work from home. Now the key person behind this prohibition expresses her opinion about this. Yahoo CEO Marissa Mayer responded to the policy of prohibiting working from home the first time on Thursday. She said that when people were working together they could be m...

   Work from home,Yahoo, Marissa Mayer     2013-04-19 22:54:44

  How to praise yourself in resume

When finding a job, we first need to send our CV and resume to the employer. Among many candidates, how do we make our resume prominent and noticed by the employer. We need some impressive information. We can praise ourselves in the resume so that the employer can have a good impression on me. Here we summarized a list about how to praise ourselves in our resume.Mature, dynamic and honest.Excellent, ability of systematical management.Ability to work independently, mature and resourceful.A person...

   Resume,Career,Job,Content     2012-06-09 00:27:14

  The worst part working at Google

Google is rated as the best employer to work for in last few years. This is because Google provides not only flexible working environment but also attractive welfare. For the benefits of working at Google, you can find many posts online. However, is there any bad part to work at Google? The answer is YES. There is no perfect company in the world, there are also bad parts working at Google.  The worst part of working at Google, for many people is that they're overqualified for their job. Goo...

   Google,Bad part     2013-10-24 22:10:37

  How GitHub Works: Hours are Bullshit

Frederick Winslow Taylor wrote the seminal analysis of management and efficiency in 1911 with The Principles of Scientific Management. He took the first scientific approach towards maximizing efficiency in manufacturing jobs. Time is money. Faster is better. More hours are better. Hours are bullshit Hours are great ways to determine productivity in many industries, but not ours. Working in a startup is a much different experience than working in a factory. You can’t throw more time at a...

   Work,Style,Time,Efficiency,Code,Enforcem     2011-08-19 07:42:32

  Silicon Valley engineers have something to say about work from home

Quitting from Google and joined Yahoo which was thought as a declining giant, Marissa Mayer has been trying to prove that she has the ability to lead this Internet giant to reverse the decline. In order to boost the low morale of the employees, Meyer tried to transplant Google's work culture to Yahoo with office decoration, free lunch and issuance of smart phones, these generous measures let her win the applause of the Silicon Valley.But a recent ban issued by Meyer has attracted a lot of contro...

   Work from home,Yahoo, Marissa Mayer     2013-03-07 02:39:23