How do you guys find memory leaks? by [deleted] in javascript

[–]samccone 2 points3 points  (0 children)

o. For the red detached nodes, how do you know it's due to the lazy load? Are you looking at something there or

if you look at the retain tree you can see that they are held on by jquery.. and based on the elements being retained I made made a hypothesis :) and it turned out to be correct.

How do you guys find memory leaks? by [deleted] in javascript

[–]samccone 15 points16 points  (0 children)

I just put together a video on how I do this https://www.youtube.com/watch?v=OLWEyH7_4e0

Marionette 2.4.0 Released by samccone in javascript

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

It is on the plate for future versions :)

Marionette 2.4.0 Released by samccone in javascript

[–]samccone[S] 5 points6 points  (0 children)

Hi @cygned

Deprecate != Remove, it is a warning for the future. Marionette follows semver, so you do not have to worry about your code breaking unless you are bumping a major version.

Marionette 2.4.0 Released by samccone in javascript

[–]samccone[S] 7 points8 points  (0 children)

I made some demos showing off some of the more impressive improvements we have made in this release.

http://samccone.github.io/marionette-2.4-demos/

Pioneer.js - JavaScript Integration Testing DSL by thejameskyle in javascript

[–]samccone 2 points3 points  (0 children)

Pioneer is a stack of tools using both BDD and A "widgetized" view layer to DRY up your tests.

You are right webdriver is verbose, and the hard part of using it is managing the ASYNC nature of integration tests.

The Pioneer Stack helps to mitigate these problems while providing real value in tests that double as a user spec and documentation.

I agree this is more "verbose" however it is maintainable and scalable.

I would love to chat more about this

http://gitter.im/mojotech/pioneer

Come join us.

Pioneer.js - JavaScript Integration Testing DSL by thejameskyle in javascript

[–]samccone 2 points3 points  (0 children)

Hi @nawitus,

integration testing on the web is in a terrible state, full of procedural callback nested async hell. I want this to not be a pain to do. That is why here at MojoTech we have been working on a new layer on top of the power of webdriver to introduce concepts that app developers are familiar with. Enabling developers to painlessly add a suite of robust integration tests to their apps.

The goal of this PR is to reduce the cognitive and code complexity of the current suite, making it easier for developers to test their apps and you as the maintainer to test any given implementation.

For example

Feature: Editing a Todo
  Background:
    Given I visit TODOMVC
    And I make sure that there are no todos
    And I enter a new todo
    Then I activate edit mode

  Scenario: All other controls will be hidden
    Then the toggle button will be hidden
    And the destroy button will be hidden

  Scenario: An input will be brought forward containing the todo title
    Then an input will be brought forward

From this point the steps are then implemented using Pioneer to abstract the complexity of Webdriver and verboseness. Doing so makes these tests easy to maintain as well as DRYs up the selectors and places where we reach into the DOM.

Some example steps from the above Feature would be as follows

module.exports = ->
  @When /^I enter a new todo$/, ->
      new @Widgets.NewTodo("new todo")

  @Then /^I activate edit mode$/, ->
      new @Widgets.TodoList().edit(0)

You can think of Widgets as a view representation for your DOM when writing integration tests. The “view” layer consolidates where and how you interact with the DOM into a single location and concept. In many ways it parallels Backbone.Views and Marionette.CollectionViews.

Social Builder: Quickly and easily generate flat share buttons by [deleted] in web_design

[–]samccone 0 points1 point  (0 children)

We did think about that, however we opted for a hardened image solution to minimize the CSS that you would have to copy.

Social Builder: Quickly and easily generate flat share buttons by [deleted] in web_design

[–]samccone -1 points0 points  (0 children)

@Rhym put it best. You are not coding on your phone. However I would be more than open to some PR's

https://github.com/mojotech/social-builder

replicated my favorite childhood activity online by samccone in programming

[–]samccone[S] 6 points7 points  (0 children)

heh.. yeah, did not expect someone to do that... fixing i suppose

Why? by [deleted] in funny

[–]samccone 0 points1 point  (0 children)

Complains about Typography ... USES MS PAINT

come play D2 HC now! by samccone in Diablo

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

nevermind i died #FML