Skip to main content

Next day after a female programmer's dream

A female programmer's twitte on twitter:

Last night I dreamed that my boyfriend and other women were shopping. My first reaction in the dream was to check the source code ... After debugging for a long time, I couldn't find out why the woman was not me, and I commented out the woman with tears , Another run is my boyfriend shopping by himself ...

Reviews:

Just point that woman's pointer at you,

Who made you make your boyfriend public?

Add a breakpoint to see who the woman is

Really soft, you should shield his interface

Protected shopping (youOnly)

Design issues, should use the singleton pattern

No regression test

The standard practice is to make an assertion

Commented out, do not need to change the shopping parameters?

In the end, the woman was commented out with tears, and my boyfriend went shopping by himself after another run-> it is obviously a problem with the scope of the variable name, just change the name

You can also have a multi-threaded algorithm, set your priority to 99, an idle thread to 50, and a woman's priority to 49. Zixiu will never be scheduled

That's okay, then call that woman always. . . You put BF there without moving. . . Keep

Go on a trick, use goto, make an endless loop, let them go to death

Be kind, do n't goto, call the exit function to end the process.

Check the Log. Is it just shopping? LOL.

Comments

Popular posts from this blog

span[class~="sr-only"]

  The  span[class~="sr-only"]  selector will select any  span  element whose  class   includes   sr-only . Create that selector, and give it a  border  property set to  0 . span [ class ~= "sr-only" ] {    border:   0 ; }

Use Recursion to Create a Range of Numbers

  function   rangeOfNumbers ( startNum ,  endNum ) {    if ( startNum <= endNum )   {      const   arrNumber  =  rangeOfNumbers ( startNum ,  endNum - 1 );      arrNumber . push ( endNum );      return   arrNumber ;   }    else  {      return  [];   }       }; console . log ( rangeOfNumbers ( 6 , 8 ));//[6,7,8] console . log ( rangeOfNumbers ( 3 , 12 )); //[ 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 ]

About the Little Lemon receipt maker exercise

 My homework and exercise of the lesson "About the Little Lemon receipt maker exercise" of the class "programming with Javascript" on coursera. const menu = [     {         Dish : "Italian pasta" ,         price : 9.55     },     {         Dish : "Rice with veggies" ,         price : 8.65     },     {         Dish : "Chicken with potatoes" ,         price : 15.55     },     {         Dish : "Vegetarian Pizza" ,         price : 6.45     } ]; function receiptMaker ( arr , bool ) {     if ( bool == false )     {         console . log ( "Prices without tax:" );         arr . forEach ( element => {             console . log ( `Dish: ${ element . Dish } Price (incl.tax):$ ${ element . price } ` );                     });     }     else     {         console . log ( "Prices with 20% tax:" );         arr . forEach ( element => {             console . log ( `Dish: ${ element . Dish } Price (inc