repository
stringclasses
156 values
issue title
stringlengths
1
1.01k
labels
stringclasses
8 values
body
stringlengths
1
270k
thealgorithmspython
rmq range minimum query algorithm
Enhancement
there be lot of algorithm which solve rmq range minimum query problem it s famous and it can also solve lca problem directly some different approach preprocess nothing query o n preprocess o n query o sqrt n preprocess o n query o log n preprocess o n log n query ...
thealgorithmspython
look for maintainer
Help Wanted
hi all most of our maintainer be busy in their job we be look for some people who can maintain this project and merge prs regularly if anyone want to become a maintainer please drop a email to and cc thank
thealgorithmspython
improve readme
Enhancement
many new algorithm be add the readme file can be update with those new algorithm
thealgorithmspython
create merge sort fast py
Bug
python implementation of merge sort algorithm take an average of 0 6 microsecond to sort a list of length 1000 item good case scenario o n bad case scenario o n
thealgorithmspython
projecteuler problem 1 solv4 py error
Bug
the correct answer be 233168 the program display 266333 see here
thealgorithmspython
projecteuler problem 1 solv2 py error
Bug
for the input 1000 I get 233366 4 the correct answer should be 233168 see file
thealgorithmspython
server py error
Bug
see the file here traceback most recent call last file home christian programmierung github python server py line 29 in t bind file usr lib python2 7 socket py line 228 in meth return getattr self sock name args typeerror bind take exactly one argument ...
thealgorithmspython
non pythonic code
Enhancement
code show in this repository be mostly non pythonic it doesn t follow any convention from pep8 and all algorithm have a lot of anti pattern for example binary search as show in python docs search sorted list I don t know the exact purpose of this repository but it certainly doesn t show well implement b...
getifyyoudontknowjs
view shallow copy output
Enhancement
just a addition so the reader know what the output of this shallow copy be use the spread operator as I myself be wonder if there be a difference between var arrcopy arr or arrcopy arr specifically quote these guideline regard typo I already search for this issue edition pull reques...
getifyyoudontknowjs
fix more complete statement for map
Question
please type I already search for this issue I already search for this issue edition pull request not accept for previous edition 2 nd edition book title get start chapter chapter 3 dig to the root of js section title iteration iterable topic fix statement...
getifyyoudontknowjs
this object prototype chapter 2 clarification
Question
I don t know if this make sense or not as I be try to digest this chapter I get send down a rabbit hole when the call stack be mention in find the call site I modify the example in the chapter to read like this function baz var a 1 call stack be baz so our call site be in t...
getifyyoudontknowjs
asdasda
null
hi just test do not merge
getifyyoudontknowjs
update ch1 md
null
use arrow method yes I promise I ve read the contribution guideline please feel free to remove this line specifically quote these guideline regard typo typos please don t worry about minor text typo these will almost certainly be catch during the editing process if you re go...
getifyyoudontknowjs
yeah but you have the nitda
Invalid
foreign translation be appreciate however any such request should wait until the 2nd edition be complete I will not be accept any new foreign translation for previous edition please check these issue first to summarize the step for a foreign language translation be 1 fork this...
getifyyoudontknowjs
a concern about the only whitespace and comment be allow before the use strict pragma part
Question
I already search for this issue edition 2nd book title you don t know js yet get start chapter 1 section title strictly speak question the strictly speak section say that js only whitespace and comment be allow before the use strict pragma ...
getifyyoudontknowjs
scope and closure ch 4 why global scope null be not a global build in
Question
why global scope please type I already search for this issue I already search for this issue edition 1st or 2nd 2nd book title scope and closure chapter 4 section title why global scope problem the section state image null ...
getifyyoudontknowjs
scope and closure ch 5 loop for initializer be not declare in loop body
Question
loop please type I already search for this issue I already search for this issue edition 1st or 2nd 2nd book title scope and closure chapter 5 section title loop problem there s a technical error in the section about the traditional for loop...
getifyyoudontknowjs
code generation and memory allocation
Question
yes I promise I ve read the contribution guideline please feel free to remove this line please type I already search for this issue I already search for this issue edition 1st or 2nd 2nd book title scope closure chapter 1 2 section title ...
getifyyoudontknowjs
website for this repo
Enhancement
hey getify first of all thank you for do open source all the you don t know js book series I think now we should make a website for the same it would be great if the markdown file under this repo get convert into html page similar to this site thank you
getifyyoudontknowjs
let for object
Question
this question relate to chapter 2 of the 2nd edition of the first book I feel like I need a well explanation on this why should I use let for declare an object what make sense for I be to use const on an object and if I want it to be immutable I can freeze it it s ill advise to use const with ...
getifyyoudontknowjs
the reason for js be a prototype language
Question
I already try to search for this but do not find anything that match my question I be read the second edition of the first book and when I be read the chapter about polyfill the follow question pop in my head be js a prototype base language partially or wholly for the reason to easily support polyfill loo...
getifyyoudontknowjs
be this example in the book really a closure or just global scope reference
Question
yes I promise I ve read the contribution guideline please feel free to remove this line please type I already search for this issue I already search for this issue edition 2nd book title scope closure chapter chapter 7 use closure section title ...
getifyyoudontknowjs
scope closure ch 4
Question
yes I promise I ve read the contribution guideline please feel free to remove this line please type I already search for this issue edition 1st or 2nd 1st book title scope closure chapter chapter 4 hoisting section title function first ...
getifyyoudontknowjs
free online reading book link s be not work
Bug
when I click free online reading book link none of those link be work it take I 404 page please check
getifyyoudontknowjs
link in the readme s table of content incorrect
Bug
be it I or be the link in the readme incorrect to simulate 1 go to a book of the series 2 scroll down to the readme of that serie 3 click on a link in the table of content if you need any help fix this just give I a shout
getifyyoudontknowjs
template literal
Question
your example actually produce the following screenshot which be a bit confusing for someone like I who doesn t know what raw be to get the actual array I have to do console log string raw function foo string value console log string console log value var desc aweso...
getifyyoudontknowjs
up go chapter 2 prototype demonstrate the prototype linkage from bar to foo
Question
the current example look like this javascript var foo a 42 create bar and link it to foo var bar object create foo bar b hello world bar b hello world bar a 42 delegate to foo and it s state that bar a be prototypically link to...
getifyyoudontknowjs
boolean coercion mislead
Question
quote from the book type grammar any of these toboolean coercion would happen implicitly without the boolean or if use in a boolean context such as an if statement I think that be misleading to the reader example var a new boolean false if a console log coercion did...
getifyyoudontknowjs
question what be this refer to when function invoke like obj func arg
Question
describe with code js var obj func function return this obj obj func true 0 obj func false obj func true there be no doubt obj func be invoke as member function and 0 obj func resovle to a standalone function however I m not qui...
getifyyoudontknowjs
get more do in github with zenhub
Invalid
hola eripheebs have create a zenhub account for the getify organization zenhub be the only project management tool integrate natively in github create specifically for fast move software drive team how do I use zenhub to get set up with zenhub all you have to do be download the...
getifyyoudontknowjs
predicate as a reference to 0x 0b 0o in type grammar ch2 md
Question
may be this have be discuss before github s issue search do not return anything relate to this so I ll give it a try in chapter 2 of type grammar 0x 0b 0o be refer to as predicate s always use the lowercase predicate 0x 0b and 0o though I be unable to find any source appl...
getifyyoudontknowjs
a question
Question
function test flag if flag return function test1 console log 1 else return function test1 console log 2 test true test how do that work function hoisting do not work
getifyyoudontknowjs
let hoist
Question
hi thank for take the time to write such a great book I m work my way through it in chapter 3 you talk about hoisting let variable specifically however declaration make with let will not hoist to the entire scope of the block they appear in such declaration will not observably exist in the b...
getifyyoudontknowjs
this object prototype chapter 2
Question
I read the code which be demonstrate arrow function and this function foo return an arrow function return a this here be lexically adopt from foo console log this a var obj1 a 2 var obj2 a 3 var bar foo cal...
getifyyoudontknowjs
es6 beyond this in arrow function
Question
hello I have a confusion regard the this for arrow function javascript var controller makerequest this helper helper controller makerequest although we invoke as controller makerequest the thi...
getifyyoudontknowjs
es6 beyond chapter 5 collection time complexity of map set operation
Question
hi it may be good to discuss the algorithm complexity of operation which be a key consideration of decide what datum structure to use my understanding be both insertion lookup be o 1 as both map and set be back by hash table please correct I if I m wrong reference sec set object
getifyyoudontknowjs
generator yield in finally
Question
I m wonder if put yield inside finally block be really always a terrible idea what about a generator yield promise which go to be use in a bluebird s promise coroutine let s say that in such generator we would like to clean up some resource asynchronously no matter if all go ok or exception be throw use me...
getifyyoudontknowjs
use setprototypeof to change super
Question
hello I enjoy your talk what the javascript I play a little bit around and find it weird that you can t change super via setprototypeof as mention in the presentation at 36 54 and on slide 75 turn out you can change super via setprototypeof and it work as aspecte with the obv...
getifyyoudontknowjs
when synchronous be trustable
Question
in chapter 3 this be clearly not trustable var x y 2 console log x y nan because x isn t set yet question how trustable be the follow case because hoist the variable should have already be define before get to console log would it be well to write it use promise to ...
getifyyoudontknowjs
async performance ch3 promise race not clear about reject status
Question
hi kyle in the async performance chapter 3 promise race section line 1362 you say similar to promise all promise race will fulfill if and when any promise resolution be a fulfillment and it will reject if and when any promise resolution be a rejection say...
getifyyoudontknowjs
garbage collection
Question
hello I notice that the concept of garbage collection be never formally explain in up go and while scope closure touch it very lightly in chapter 3 and more directly in chapter 5 perhaps a formal definition would be useful to add as the aforementioned chapter seem to assume one be already familiar with ...
getifyyoudontknowjs
es6 beyond ch3 default export
Question
there s a subtle nuance to default export syntax that you should pay close attention to compare these two snippet function foo export default foo and this one function foo export foo as default in the first snippet you be export a...
getifyyoudontknowjs
human brain have be always work asynch
Question
sound strange hi uncle kyle you be by far the good javascript teacher I ever have I hear you mention in a lot of your talk that human brain work synchronously I believe in it too for a year and always think about that fact but I recently realize that although human brain be absolutely single thread it d...
getifyyoudontknowjs
you program with primitive like object because of the dot operator
Question
you program explicitly with type conversion with the dot operator when you use a primitive like an object in other word when one of the operand of the dot operator be a primitive and the other operand be an object the first primitive operand be convert to an object with a wrapper the operation be do...
getifyyoudontknowjs
this in js and this in c be exactly the same
Question
no confusion about js s this it be exactly the same as in c just look at the doc in c an object do not contain any method they be just assign to class when you invoke an object s method it be be call with special thiscall convention and a special pointer this be be pass to meth...
getifyyoudontknowjs
argument speak as if it be an array
Question
in type grammar chapter 5 grammar argument be refer many time as be the argument array while it be as I be sure you know an object would it not be well to say clearly object or at least array like
getifyyoudontknowjs
loop closure
Question
your approach let not consider be to create a iife inside a loop javascript for var i 1 I 5 I function var j I settimeout function timer console log j j 1000 supposedly this code break a few law ano...
getifyyoudontknowjs
scope closure
Question
hi I d like to submit these for your review a closure be a function expression execute outside its declaration scope be this formulation clear perhaps on hoist you specify function first but you declare var before function in your demo code why on settimeout the inli...
getifyyoudontknowjs
iife s namespace
Question
thank for the great book first in function as scope of ch3 of book scope closure you say compare the previous two snippet in the first snippet the name foo be bind in the enclose scope and we call it directly with foo in the second snippet the name foo be not bind in the enclose scope ...
getifyyoudontknowjs
type grammar ch3 object wrapper gotchas
Question
if you want to manually box a primitive value you can use the object function no new keyword var a abc var b new string a var c object a it be clear why it s not recommend not use of object warpper but you do encourage or suggest if it s about to use o...
getifyyoudontknowjs
scope closure chapter 3 let
Question
hi first of all brillant series great job thank you I m wonder about below sentence from chapter 3 however declaration make with let will not hoist to the entire scope of the block they appear in such declaration will not observably exist in the block until the declaration statement ...
getifyyoudontknowjs
object orient design pattern in js and different perspective
Question
as I be finish the behaviour delegation chapter in the this object prototype book and due to the book we need to try to change our thinking from the class inheritance design pattern so by the way it s not appropriate to have parent child kind of code in our js code instead have horizontal p...
getifyyoudontknowjs
this object prototype
Question
hi folk try to execute some example code from the book to try to in depth understand the this and object prototype power in javascript but run through some trouble with the follow code javascript function foo who this I who foo prototype identify function return I be thi...
getifyyoudontknowjs
scope closure chapter 3 try catch scope
Question
hi thank for all the hard work on this series it really be fantastic I read about the try catch s block scope in this chapter and the sentence it s a very little known fact that javascript in es3 specify the variable declaration in the catch clause of a try catch to be block scope to the catch block ...
getifyyoudontknowjs
this object prototype ch4 dna metaphor
Question
in chapter 4 sub chapter class inheritance it s important to remember that we re talk about parent and child class which aren t physical thing this be where the metaphor of parent and child get a little confusing because we actually should say that a parent class be like a parent s dna and a child class...
getifyyoudontknowjs
object orient or not at the end of the day this object prototype ch5 class
Question
you be emphasise that js be label as object orient in the book in fact javascript be almost unique among language as perhaps the only language with the right to use the label object orient because it s one of a very short list of language where an object can be create directly without a class at a...
getifyyoudontknowjs
double negation be it safe
Question
just how safe be it to use to coerce a value to a boolean do the es standard guarantee that an optimizing compiler win t optimize away
getifyyoudontknowjs
why this be false
Question
javascript if true true work console log yup else console log nop
getifyyoudontknowjs
js scope closure chapter 3 function vs block scope no difference in syntax iife function style
Question
hello I have be read chapter 3 of scope closure and notice a misordering of parenthesis compare iife function style invoke function expression immediately comparison between the 2 style style 1 js var a 2 function foo var a 3 console log a 3 parenthese...
getifyyoudontknowjs
this object prototype chapter 5 constructor or call unexpected result in test
Question
I recently start read through the series of book in order to learn javascript I come from a primarily oop background java c etc and while re read the section of the material reference in the title of this issue I think to test out the behavior of the function object return by a call of this nature ...
getifyyoudontknowjs
chapter 4 mix up class object parasitic inheritance be it possible to inherit another class
Question
the follow code example be use in parasitic inheritance parasitic inheritance discussion js traditional js class vehicle function vehicle this engine 1 vehicle prototype ignition function console log turn on my engine vehicle prototype drive function ...
getifyyoudontknowjs
delegation direction reverse
Question
in ch6 de class ifie it say with behavior delegation authcontroller and logincontroller be just object horizontal peer of each other and be not arrange or relate as parent and child in class orientation we somewhat arbitrarily choose to have authcontroller delegate to logincontroller it would ha...
getifyyoudontknowjs
constant be not a variable
Question
const declaration in the const explanation section of the chapter 2 we have some text about constant and in the second listing example of code we have declaration of the constant a next to it there be explanation of code the a variable which I think be wrong because variable constant
getifyyoudontknowjs
async performance ch5 one to one relationship
Question
here s how to listen for event actually the fix message event w1 addeventlistener message function evt evt datum and you can send the message event to the worker w1 postmessage something cool to say inside the worker the messaging be totally symmetric...
getifyyoudontknowjs
same name in different obj in same prototype chain
Question
hi first I d like to thank you for these amazing collection of book I m quite trough now and this have finally explain js to I amazing job really thankful I hope you don t mind if I ask here a little question about oloo context draw in a canvas a baseshape obj hold position size and weight datum...
getifyyoudontknowjs
this object prototype ch2 explain this style code
Question
at the end of chapter 2 you give the advice to embrace this style mechanism completely include use bind where necessary and try to avoid self this and arrow function lexical this trick can you explain what you mean by this style code let s assume I d like to follow this advice and e...
getifyyoudontknowjs
lexical scope create by catch
Question
this be just some of my thought please delete this issue if it s not appropriate I be think about try catch it s a very little known fact that javascript in es3 specify the variable declaration in the catch clause of a try catch to be block scope to the catch block trycatch catch look to I as ...
getifyyoudontknowjs
es6 use of super and oloo
Question
I have this javascript export default object assign object create parent init obj opt if super init obj opt but it seem super doesn t work with oloo most likely something I m not understand be there someway to go about this without make random initialization n...
getifyyoudontknowjs
es6 module and oloo
Question
it seem an object must be static which conflict with oloo thus export default will not work what be the alternative
getifyyoudontknowjs
do browser base js have any way to get datum synchonously
Question
recently this error warning have be show up in chrome synchronous xmlhttprequest on the main thread be deprecate because of its detrimental effect to the end user s experience for more help check because synchronous xmlhttprequest outside of worker be in the process of be remove from the web platform w...
getifyyoudontknowjs
up and go chapter 2 value and type return value of typeof operator
Question
it be mention that the return value from the typeof operator be always one of six seven as of es6 string value besides string number boolean undefined and object what be the other one I m assume the other one be null but typeof what would return null since typeof null will return an object ...
getifyyoudontknowjs
update ch5 md map value include example
Bug
as far as I can tell you intend to use include on the array val gather from m value use include on the map itself will throw a typeerror
getifyyoudontknowjs
toboolean in comparison operator
Question
hey kyle first off this series be great my understanding for the javascript language be much much deep thank to you hopefully I can put it into practice I be hope for clarification on something if I be understand correctly the toboolean abstract operation be never use during the and co...
getifyyoudontknowjs
default value syntax trick
Question
don t know if this be mention early but I think the well default value syntax trick would be val val instead of val val spot this tip in type grammar chapter 3 native prototype as default
getifyyoudontknowjs
async performance chapter4 delegate recursion example
Question
hello getify I m test the recursion example in your book async performance ch4 md around line number 1490 js function foo val if val 1 generator recursion val yield foo val 1 return yield request val function bar ...
getifyyoudontknowjs
this object prototype unit testing classless code
Question
javascript s classless and dynamic system of object be fascinating and fantastic I can t wait to try out what I ve learn from read this book however despite all the power of use the prototype system properly I do feel as if it s take the leg out from under I in one regard unit testing with a class base app...
getifyyoudontknowjs
module resolution
Question
hi I have a question regard module in es6 as a regular of commonj I find it quite odd that when import module we don t specify the full path or relative of the module js import x from foo how be the module resolver able to determine where be the foo if I have two file declare foo which...
getifyyoudontknowjs
hoist
Question
I think it be call hoist when a for loop repeatedly access the length property of an array the vm may cache it do the vm hoist the length property and cache if it know the loop be iterate a certain number of time how do we check with a profiler
getifyyoudontknowjs
async performance runall utility solution
Question
hi getify as an attempt of get an insight into generator concurrency I m try to figure out how to write a workable runall utility as you mention in your book from my understanding you use yield in order to hand control to other generator but I couldn t figure out how to let they communica...
getifyyoudontknowjs
type grammar value vs reference
Question
in case you re interested I read that some people use call by share when talk about the javascript evaluation strategy var a b foo 1 a and b be share the same foo 1 object from wikipedia call by share also know as call by object or call by object shar...
getifyyoudontknowjs
async performance try to save callback example
Question
hi I be try to get my head round the timeoutify function which be use to solve the trust issue of never be call what about the trust issue of never be call if this be a concern and it probably should be you likely will need to set up a timeout that cancel the event you could make a utility ...
getifyyoudontknowjs
be this really correct and why
Question
garbage collection function process datum do something interesting var somereallybigdata process somereallybigdata var btn document getelementbyid my button btn addeventlistener click function click evt console log button click capturingphase...
getifyyoudontknowjs
scope closure o reilly safari listing
Question
you may want to have they fix the listing so that it can be find with the you don t know js it currently doesn t appear with the other title in the series if you search for the series name
getifyyoudontknowjs
memory footprint
Question
I be wonder what type of footprint be track in a browser engine in the case of java we have our jvm memory footprint real time graph can be see use jmx I know that our angularjs footprint be large how should we measure it
getifyyoudontknowjs
tech editor
Question
I m seek out folk who want to be official tech reviewer for this book series to work with the editor at o reilly you will review the draft as post here and provide technical feedback also here which can be address as revision during the editing production phase you should have a solid understanding of the c...
getifyyoudontknowjs
add discussion of moot ignore value for this bind
Enhancement
if you pass some non object null undefined 0 1 etc as the this parameter to call apply or bind that value be ignore for the purpose of the rule here determine this add a note explain and illustrate what happen in that case
getifyyoudontknowjs
this object prototype add discussion of es5 s foreach every some array value iteration
Enhancement
in the enumeration section of chapter 3 of this object prototype iteration need a brief discussion of iterate through array value use foreach every and some in contrast to the for loop approach show
getifyyoudontknowjs
type grammar cover some native function and control flow
Enhancement
possible enhancement I be not sure where the line should be draw for the scope of this project could this project move into area such as native js function string number object and so on and control flow conditional loop promise I would think design pattern and library be out of scope but I be...
getifyyoudontknowjs
appendix to discuss indirect this binding
Enhancement
talk about the corner case of this bind such as how indirect reference can result in unexpected binding js function foo console log this bar var omg bar bar foo foo omg foo bar omg foo omg foo undefined
getifyyoudontknowjs
join
Enhancement
hi can I contribute with text example I do an in depth presentation
getifyyoudontknowjs
miss image
Enhancement
not sure if this be a product of still be in draft form or if a file get miss in a commit building on metaphor reference fig1 png which doesn t exist at the moment
awesomeselfhostedawesomeselfhosted
change badge for improved visibility
Enhancement
I notice that the exist badge for awesome have some visibility issue especially when view on mobile device to enhance the user experience I ve replace it with a high quality badge that offer well clarity and readability before image after image this change should make the awesome ...
awesomeselfhostedawesomeselfhosted
self host alternative to splitwise tricount
Invalid
kindly ask for a recommendation for a self host alternative to splitwise tricount any help appreciate
awesomeselfhostedawesomeselfhosted
standardize alternative to proprietary service format
Enhancement
when a project present itself as an alternative to proprietary saas product mention it at the end of the description as alternative to x y z
awesomeselfhostedawesomeselfhosted
add textfile in it
Invalid
thank you for take the time to work on a pr for awesome selfhoste to ensure your pr be deal with swiftly please check the follow submit one item per pull request this ease review and speed up inclusion format your submission as follow where demo and client be optional do not ad...
awesomeselfhostedawesomeselfhosted
external link reorder community forum
Enhancement
move fediverse threadiverse community first in the list fix
awesomeselfhostedawesomeselfhosted
pull request template require fork to provide a list of difference with the original project
Enhancement
ref
awesomeselfhostedawesomeselfhosted
update language tag part 2
Enhancement
ref 3945 edit next up feed reader
awesomeselfhostedawesomeselfhosted
update language tag
Enhancement
I have notice that some of the software I use do not include all the language in their installation option especially docker or kubernete this can be quite frustrating at time because I may install a particular software only to later discover that there be a well alternative available but I didn t consider it in...
awesomeselfhostedawesomeselfhosted
external link add link to more community forum
Enhancement
ref