Git Product home page Git Product logo

maashaack's People

maashaack's Issues

Reflection and ConstructorInfo

Next step in this interface :

1 - Add the invoke( params:Array) method
2 - implement it in the ClassInfo and Reflection class.




Original issue reported on code.google.com by [email protected] on 15 Aug 2008 at 12:43

common namespaces in the framework

for certain case it will be possible to use different namespaces

the goal is to keep the same signatures (method, function, etc.)

 - standard
   standard use with all functionalities
   can be slow
   always supported

 - optimized
   less functionalities to improve speed
   must be fast
   once implemented should be supported

 - experimental
   when we are not sure if the implementation worth it or not
   as the name says "an experiment"
   no support

Original issue reported on code.google.com by zwetan on 25 Sep 2008 at 6:03

bracket format

historically we used brackets such as

----
some code
    {
    some other code
    }
----

from now on we ll use
----
some code
{
    some other code
}
----

Original issue reported on code.google.com by zwetan on 11 Oct 2008 at 12:05

Evaluators implementation

on the same principle of Strings.format
where you can replace indexed {0} or named {name} tokens,
we want to define an eval token ${}
with this format

${<index>,<index>,<indexN>;<string to evaluate>}

for a start, Strings will contain an evaluators array
Strings.evaluators = [];

the <index> part pointing on the index of the array to find the evaluator
to use

use case 1:
Strings.evaluators = [ MathEvaluator ];
Strings.format( "my result is ${0;2+3}" ); // "my result is 5"

-> the MathEvaluator directly take the string "2+3" and evaluate with a
MathParser for example

use case 2:
SomeClass.someprop = "hello";
Strings.evaluators = [ EdenEvaluator ];
Strings.format( "my word is '${0;SomeClass.someprop}'" ); // "my word is
'hello'"

-> here the string "SomeClass.someprop" is evaluated by EdenEvaluator which
use the eden parser

use case 3:
Strings.evaluators = [ EdenEvaluator, DateEvaluator ];
Strings.format( "my time is '${0,1;new Date(2008,1,21,10,15,0,0)}'" ); //
"my time is 02 h 15 mn 00 s am"

-> here we first parse the string with EdenEvaluator which return a Date
instance and then we pass this instance to the DateEvaluator which return a
formated string

notes:
- evaluators can be chained, cf ${0,1,2,3 ...}
- the chain of evaluators is processed in order, cf ${3,1,0,2 ...}

Original issue reported on code.google.com by zwetan on 29 Mar 2008 at 4:22

license

here the situation for now

the source is under MPL with me as original author
and most of the time Marc as contributor

changes in the futur:

- both Marc and me should be original author
- the license should move to a tri-license MPL/GPL/etc.
- we should define a clear form for contributors
  so a patch or contribution would not void the license

Original issue reported on code.google.com by zwetan on 11 Oct 2008 at 12:03

system.text.Metrics

add metrics utilities

- Common Prefix
- Common Suffix
- Levenshtein Distance
- Longest Common Substring
- Longest Common Subsequence

Original issue reported on code.google.com by zwetan on 13 Apr 2008 at 5:50

MathEvaluator


an implementation of IEvaluator

Original issue reported on code.google.com by zwetan on 26 Apr 2008 at 8:50

Finish system.data.maps.SortedArrayMap

Must finalize the class and this unit tests

http://code.google.com/p/maashaack/source/browse/branches/maashaack_data_version
1/AS3/src/system/data/maps/SortedArrayMap.as


Original issue reported on code.google.com by [email protected] on 11 Nov 2008 at 5:20

Problem with the StringsTest unit test class

When i launch the unit test of Maashaack i have an error :

----------------------------------------------------------------
[x4a core tests] #1
.....F................................
......................................
......................................
......................................
......................................
........
Time: 0h:0mn:0s:78ms
There was 1 failure :
   0) testFormatEvaluatorsParsing( StringsTest )
      ComparisonFailure: expected:<...b:"}",d:"}",a:1,c:"$",e:"$...> but 
was:<...e:"$",c:"$",a:1,d:"}",b:"}...>
        at buRRRn.ASTUce.framework::Assert$/assertEquals()
        at system::StringsTest/testFormatEvaluatorsParsing()
        at buRRRn.ASTUce::Runner/doRun()
        at buRRRn.ASTUce::Runner$/run()
        at buRRRn.ASTUce::Runner$/main()
        at Framework_data_TestRunner$iinit()

FAILURES!!!

we must fix it :)


Original issue reported on code.google.com by [email protected] on 10 Nov 2008 at 2:17

more reflection

for some time we kept it all in system.Reflection
but now it's time to add more and have a proper reflection package

Original issue reported on code.google.com by zwetan on 27 Apr 2008 at 7:32

Creates the system.Comparator interface

See to implement object with the Comparator interface :

Comparator.compare(o1:*, o2:*):int

I need implement this interface to create PriorityQueue, SortedArrayMap
etc. class in the ADT library of Maashaack.

We need talk about it.

Original issue reported on code.google.com by [email protected] on 11 Nov 2008 at 5:18

header

we should clean the headers

little things:

the authors/contributors should be formated as
[firstname] [lastname] <[email protected]>.

the end of the header should always contains Contributors

empty
----

  Contributor(s):
*/
----

non-empty
----

  Contributor(s):
    - Marc Alcaraz <[email protected]>.
*/
----

ther should be always one CRLF between the end of the header
and the start of the code

----
*/

package something ...
----


example:
----
/*
  The contents of this file are subject to the Mozilla Public License Version
  1.1 (the "License"); you may not use this file except in compliance with
  the License. You may obtain a copy of the License at 
  http://www.mozilla.org/MPL/ 

  Software distributed under the License is distributed on an "AS IS" basis,
  WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  for the specific language governing rights and limitations under the
License. 

  The Original Code is [MaasHaack framework]

  The Initial Developer of the Original Code is
  Zwetan Kjukov <[email protected]>.
  Portions created by the Initial Developer are Copyright (C) 2006-2008
  the Initial Developer. All Rights Reserved.

  Contributor(s):
    - Marc Alcaraz <[email protected]>
*/

----

Original issue reported on code.google.com by zwetan on 11 Oct 2008 at 12:01

testing before commit

when adding new code, functionalities, etc.

we should always test
- a build in Flex
- a build in Flash CS3

and when redtamarin will be a little more complete
- a build in redtamarin

ideally we would want to run the test runner
in those 3 hosts and have the builds autogeneraated with ant

Original issue reported on code.google.com by zwetan on 3 Sep 2008 at 12:47

Reflection.invokeClass

Implement a shortcut static method in Reflection invokeClass... 

See to refactor or optimize this a next time.

Original issue reported on code.google.com by [email protected] on 15 Aug 2008 at 2:06

refactor the Serializers logic


this need to change in such a way so external serializer/deserializer could
be added dynamically

Original issue reported on code.google.com by zwetan on 19 Nov 2007 at 8:28

Strings.format unit tests problem with FP10

Problem in StringsTest.testFormatEvaluatorsParsing and
StringTest.testFormatEdenEvaluators

Example :
{{{
var str1:String = "my result is ${{a:1,b:2}}$";
Strings.evaluators = { eden: new EdenEvaluator(), eden2: new
EdenEvaluator(false) };

trace( Strings.format(str1) ) ; // "my result is {a:1,b:2}" 
}}}

In the FP9 no problem the result is "my result is {a:1,b:2}"

But in the FP10 in winXP the result is : "my result is {b:2,a:1}"

The order of the properties is not the same !! The Strings.format work but
problem with the order of the enumeration and the unit tests don't works in
all case !

For the moment i change the unit tests :

{{{
assertTrue(Strings.format(str1) == "my result is {a:1,b:2}" ||
Strings.format(str1) == "my result is {b:2,a:1}"); // TODO FP10 hack
}}}

But it's a hack ! We must find a good solution.

EKA+ :)


Original issue reported on code.google.com by [email protected] on 13 Nov 2008 at 9:45

[proposal] Arrays.spliceArrayInto(inserted:Array, container:Array, containerPosition:Number = 0, countReplaced:Number = 0):void

I begin the AS3 implementation of the Google Prettify.. (not easy to
implement it ;) )

In the prettify.js file we can find the util method : "spliceArrayInto"... 

See my proposal in the system.Arrays version of VEGAS :
http://svn1.cvsdude.com/osflash/vegas/AS3/trunk/src/system/Arrays.as

Documentation :
http://www.ekameleon.net/vegas/docs/system/Arrays.html

EKA+ :)


Original issue reported on code.google.com by [email protected] on 12 Mar 2008 at 11:40

package system - class Strings - center ( ) method bug

Test 1 : 
trace( Strings.center("hello world", 20, "_" ) ) ; // ____hello world_____
( On obtient bien le résultat escompté )
Observons : 4 fois le séparateur en préfixe du mot "hello world" et 5 en
suffixe.

Test 2 :
trace( Strings.center("hello world", 20, "=>" ) ) ;
résultat : =>=>=>=>hello world=>=>=>=>=>
Soit 4 fois le séparateur en préfixe du mot "hello world" et 5 en suffixe.

Test 3 :
trace( Strings.center("hello world", 20, "=========>" ) ) ;
Avec le séparateur égale à 10 caractères ( sachant que "hello world" en
compte 11, on dépasse allègrement le maximum de 20 caractères )
résultat : =========>=========>=========>=========>hello
world=========>=========>=========>=========>=========>
A nouveau : 4 fois le séparateur en préfixe du mot "hello world" et 5 en
suffixe.

Proposition Code : 
var long:int = Math.round( m / separator.length ) ;   
return repeat(separator, long) + str + repeat(separator, (size - n - m) /
long) ;

Original issue reported on code.google.com by [email protected] on 31 Jul 2008 at 7:49

Prettifier project

An AS3 port of the google-prettify library
http://code.google.com/p/google-code-prettify/

project started
expect some code commits tonight

- basic structure
  system.text.prettifier
  system.text.html

- HTML entities encoding/decoding
  maybe using/porting a HashMap for that could be usefull

some thoughts:

- using basic function scope to do a lexer not gonna cut it in AS3
  it's possible but less clean than a basic Lexer clas

- the basic idea is to do a Prettify.parse( somestrings )
  and to inject it into a TextField

- my guess is we gonna need a Lexer that generate tokens
  and from there generate HTML or XML structure from those
  tokens

- we can use google-prettify as a guidance but we're not
  gonna really reuse any of the source code

open to ideas

Original issue reported on code.google.com by zwetan on 17 Mar 2008 at 2:02

Create the Sortable interface

system.Sortable :

/**
 * Determinates the Comparator object used in the map to sort the entries.
 */
public function get comparator():Comparator 
{
   return _comparator ;
}

/**
 * @private
 */
public function set comparator( comp:Comparator ):void 
{
    _comparator = comp ;
}    



Original issue reported on code.google.com by [email protected] on 11 Nov 2008 at 7:43

eden : new namespace release and debug :: bug in Flash CS3

The new implementation in system.eden of the debug mode with namespace
don't work in Flash CS3, the debug namespace in the GenericParser class
isn't find during the compile process :(

We must fix this problem, for the moment i comment the namespace
implementation and return to an easy verbose mode :)

EKA+ :)

Original issue reported on code.google.com by [email protected] on 1 Sep 2008 at 8:18

system.comparators.* package

Implements and unit test :

 * BooleanComparator
 * ComparableComparator
 * DateComparator
 * GenericComparator
 * NullComparator
 * NumberComparator
 * ReverseComparator
 * StringComparator

Original issue reported on code.google.com by [email protected] on 13 Nov 2008 at 10:48

buRRRn.eden.Serializer.emitDate logic ?

In the emitDate() method of the Serializer class you use inside the
serialization with the pattern :

{{{
return "new Date(" + data.join( "," ) + ")";
}}} 

Why you don't use the timestamp ?

{{{
return "new Date(" + date.valueOf() + ")" ;
}}}

Original issue reported on code.google.com by [email protected] on 22 Dec 2007 at 7:25

MutiEvaluator

Chained evaluator

fast example :

{{{

var me:IEvaluator = new MultiEvaluator( new Evaluator() ,  [ new
EdenEvaluator(), new DateEvaluator() ] , ... )

var str:String = me.eval( "Date(2006,1,2,3)" ) ;

}}}

Original issue reported on code.google.com by [email protected] on 6 Jun 2008 at 10:04

refactor Arrays

don't inherit from Array, make the methods static for now


Original issue reported on code.google.com by zwetan on 19 Nov 2007 at 8:29

system.ui

very small and light package
to provide a thin layer of UI

the code should be completely independant
of any other maashaack framework classes
and should be able to be used as a kind of UI template

Original issue reported on code.google.com by zwetan on 11 Oct 2008 at 12:17

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.