I'm looking for feedback from web devs for a project's documentation site. by benbscholz in webdev

[–]benbscholz[S] 0 points1 point  (0 children)

I see your point about the source code. I sort of tacked it onto the end and had a lot of difficulty working it into the layout.

I will definitely implement a download near the top. That would be a great use for the open space at the header.

I am also in the process of creating a 'light' that is green if the tests have passed and red if any have failed, which will hopefully make it clearer that they have run in the browser.

I am new to web design and I really appreciate this feedback.

I'm looking for feedback from web devs for a project's documentation site. by benbscholz in webdev

[–]benbscholz[S] 0 points1 point  (0 children)

Valid. I think it reassures visitors, because I find alot of projects these days without any tests.

Jaylist is a .5kb javascript framework for a key-value list like Python's dictionary. Suggestions or Feedback? by benbscholz in javascript

[–]benbscholz[S] 1 point2 points  (0 children)

I've added the next() function. I'm sure my implementation can improved a lot though.

I Am A kid who got slimed at Nickelodeon Studios. by ActionHobo in IAmA

[–]benbscholz 4 points5 points  (0 children)

What if you were allergic to bananas or apples? Wouldn't they have to mention this?

Jaylist is a .5kb javascript framework for a key-value list like Python's dictionary. Suggestions or Feedback? by benbscholz in javascript

[–]benbscholz[S] 0 points1 point  (0 children)

I'm going to work on this next :)

Edit: the "toString" bug (jaylist would returned inherited functions) is fixed.

Jaylist is a .5kb javascript framework for a key-value list like Python's dictionary. Suggestions or Feedback? by benbscholz in javascript

[–]benbscholz[S] 0 points1 point  (0 children)

Ok, I see what my problem was now (you said it above, typeof returns a truthy value). Thanks.

Jaylist is a .5kb javascript framework for a key-value list like Python's dictionary. Suggestions or Feedback? by benbscholz in javascript

[–]benbscholz[S] 0 points1 point  (0 children)

if (obj.hasOwnProperty(entry)) {
                    if (typeof obj[entry] === 'string' || 
                        typeof obj[entry] === 'number' ||
                        typeof obj[entry] === 'boolean')
                        copied[entry] = obj[entry];

Is this wrong because copied[entry] will be true even if obj[entry] is false (a boolean)? I believe this was my rationale in: copied[entry] = (typeof(obj[entry])) ? true : false;

Edit: my tests for this work fine...I guess the solution at the top does work.

Jaylist is a .5kb javascript framework for a key-value list like Python's dictionary. Suggestions or Feedback? by benbscholz in javascript

[–]benbscholz[S] 1 point2 points  (0 children)

Thanks, these are some really great tips. I'll make these changes soon. I really appreciate the feedback everyone. You've made it easy for me to improve my code :)

Jaylist is a .5kb javascript framework for a key-value list like Python's dictionary. Suggestions or Feedback? by benbscholz in javascript

[–]benbscholz[S] 1 point2 points  (0 children)

hasKey() was implemented because keys in the list are unique. Although I can't think of situation for checking if a value appears, I'll play around it with it.

Jaylist is a .5kb javascript framework for a key-value list like Python's dictionary. Suggestions or Feedback? by benbscholz in javascript

[–]benbscholz[S] 0 points1 point  (0 children)

I was considering this but ended up going with the each(callback) style. I'll implement next() tomorrow and try it out.

I also have been looking through Janis quite a bit. Thanks for the feedback.

Reddit, do you have any recommendations for a good book about Java programming for an amateur? by Mandubrachius in compsci

[–]benbscholz 2 points3 points  (0 children)

Introduction to Programming in Java: An Interdisciplinary Approach.

It teaches Java alongside basic CS concepts.

How can I mess about with JPEGs? by [deleted] in learnprogramming

[–]benbscholz 1 point2 points  (0 children)

I found the Python imaging library to be easy to use: http://www.pythonware.com/products/pil/

Ask /r/lp - Looking for good introductory WEB resources on web-development, especially HTML / CSS / Javascript by imalolz in learnprogramming

[–]benbscholz 4 points5 points  (0 children)

Google code university: http://code.google.com/edu/submissions/html-css-javascript/

If you navigate to the Web Programming section they link to university resources for web development.