Want to read Slashdot from your mobile device? Point it at m.slashdot.org and keep reading!

 



Forgot your password?
typodupeerror

Comment: Why yet another language?? (Score 0) 386

by ealbers (#49678071) Attached to: Criticizing the Rust Language, and Why C/C++ Will Never Die

From the rust page: // This code is editable and runnable!
fn main() { // A simple integer calculator: // `+` or `-` means add or subtract by 1 // `*` or `/` means multiply or divide by 2

        let program = "+ + * - /";
        let mut accumulator = 0;

        for token in program.chars() {
                match token {
                        '+' => accumulator += 1,
                        '-' => accumulator -= 1,
                        '*' => accumulator *= 2,
                        '/' => accumulator /= 2,
                        _ => { /* ignore everything else */ }
                }
        }

        println!("The program \"{}\" calculates the value {}",
                            program, accumulator);
}

why not: // This code is editable and runnable!
main()
{
      var program = "+ + * - /";
      var mut accumulator = 0;

        foreach token in program
        {
                switch(token)
                {
                        case '+' : accumulator += 1,
                        case '-' : accumulator -= 1,
                        case '*' : accumulator *= 2,
                        case '/' : accumulator /= 2,
                        default : { /* ignore everything else */ }
                }
        }

        println!("The program \"{}\" calculates the value {}",
                            program, accumulator);
}

I mean, if your going to create a 'new' language, why not use the already existing syntax of the most used languages.

Inventing a let x=1 is not helpful, get rid of the let altogether or do what javascript does and just use var
Also, why the ugly switch equivalent? Since everyone knows a switch statement leave it the same!?

Iterators are done in all languages, keep with the standard ones, C/C++/Java/Javascript centric....

Its just silly to 'change the syntax' just because you want to make yourself different.

If the language brings something to the table, BRING it...and only the differences please!

I get so tired of these lame 'new languages' get on with the improvements already and don't even get me started on using whitespace as a code block!

Comment: Yawn (Score 1) 520

by ealbers (#49059531) Attached to: Nim Programming Language Gaining Traction

You know, Yet Another Programming Language will not make you a better programmer....

I've seen people buy the 'best' musical instruments thinking it will help them play better, it doesn't. Know what does? Practice,experience,time...
Please stop making new programming languages....its silly and embarassing....just take some time, pick one and LEARN the craft.

Comment: Keys? (Score 1) 763

by ealbers (#32120758) Attached to: How Do You Handle Your Keys?
Don't use any. Car keys stay where they belong, in the ignition, house keys I have not seen for 12 years. I do not carry any keys, at all, period. 14 years, no one has ever robbed me, stolen my car etc. Stop living the media-fear world and grow up. Keys are stupid, if someone came and broke very window in my house, no one would hear, they could then load whatever they wanted into a van, no one would see and be off, all while making a huge racket and a lot of noise. Same with cars, nobody steals cars, if they do, they get caught and busted quick. Stop living in fear.

Comment: Re:Wow, heres the good stuff (keys) (Score 1) 405

by ealbers (#29740539) Attached to: EFF Warns TI Not To Harass Calculator Hobbyists
TI-84 (Plus): prp77 factor: 67070508990537181066342707695603050521324524613874331879259881495826493920589 prp78 factor: 186923771200711284770368041572205320486346816476524340240220962467860568859381 n=EF5FEF0B0AB6E22731C17539658B2E91E53A59BF8E00FCC81D05758F26C1791CD35AF6101B1E35 43AC3E78FD8BB8F37FC8FE85601C502EABC9132CEAD4711CB1 p=94489014C63CC9E1E1ADB192DBBDD1F78F90A630DA9C86EFC4CBCA44E5B4D54D q=19D431AF2794229620B884E3750D622D1C74F2E4569DC15486FC8D5A3BCDFE2F5 d=2A3E1B2010F318D9BD7C7E19300980B055A0E2A9554B77E7142E23CDF7C7CA13C233A3D462FDFC 968B1F9CEAF2AC2CF305147992AD9E834192ACEBB517DB9941 e=11

Comment: Wow, heres the good stuff (keys) (Score 2, Informative) 405

by ealbers (#29740527) Attached to: EFF Warns TI Not To Harass Calculator Hobbyists
TI-83 (Plus): n=82EF4009ED7CAC2A5EE12B5F8E8AD9A0 AB9CC9F4F3E44B7E8BF2D57A2F2BEACE 83424E1CFF0D2A5A7E2E53CB926D61F3 47DFAA4B35B205B5881CEB40B328E58F p=B709D3A0CD2FEC08EAFCCF540D8A100BB38E5E091D646ADB7B14D021096FFCD q=B7207BD184E0B5A0B89832AA68849B29EDFB03FBA2E8917B176504F08A96246CB d=4D0534BA8BB2BFA0740BFB6562E843C7 EC7A58AE351CE11D43438CA239DD9927 6CD125FEBAEE5D2696579FA3A3958FF4FC54C685EAA91723BC8888F292947BA1 e=11

Comment: Here are da Keyz (Score 5, Informative) 405

by ealbers (#29740397) Attached to: EFF Warns TI Not To Harass Calculator Hobbyists
Here are the three keys: TI-83 (Plus): n=82EF4009ED7CAC2A5EE12B5F8E8AD9A0 AB9CC9F4F3E44B7E8BF2D57A2F2BEACE 83424E1CFF0D2A5A7E2E53CB926D61F3 47DFAA4B35B205B5881CEB40B328E58F p=B709D3A0CD2FEC08EAFCCF540D8A100BB38E5E091D646ADB7B14D021096FFCD q=B7207BD184E0B5A0B89832AA68849B29EDFB03FBA2E8917B176504F08A96246CB d=4D0534BA8BB2BFA0740BFB6562E843C7 EC7A58AE351CE11D43438CA239DD9927 6CD125FEBAEE5D2696579FA3A3958FF4FC54C685EAA91723BC8888F292947BA1 e=11 TI-84 (Plus): prp77 factor: 67070508990537181066342707695603050521324524613874331879259881495826493920589 prp78 factor: 186923771200711284770368041572205320486346816476524340240220962467860568859381 n=EF5FEF0B0AB6E22731C17539658B2E91E53A59BF8E00FCC81D05758F26C1791CD35AF6101B1E35 43AC3E78FD8BB8F37FC8FE85601C502EABC9132CEAD4711CB1 p=94489014C63CC9E1E1ADB192DBBDD1F78F90A630DA9C86EFC4CBCA44E5B4D54D q=19D431AF2794229620B884E3750D622D1C74F2E4569DC15486FC8D5A3BCDFE2F5 d=2A3E1B2010F318D9BD7C7E19300980B055A0E2A9554B77E7142E23CDF7C7CA13C233A3D462FDFC 968B1F9CEAF2AC2CF305147992AD9E834192ACEBB517DB9941 e=11

If I have not seen so far it is because I stood in giant's footsteps.

Working...