klee
Legendary
Offline
Activity: 1498
Merit: 1000
|
|
March 13, 2014, 04:42:54 PM |
|
Is anything on NXT unit tested? EVER?
Dunno. Unit tests r not a panacea, more likely a modern trend between people who used to code for outsourcing. Good thing for u is that Jean-Luc decides how to test, not me. Then why don't you write your code in assembly? Or binary?... So Jean Luc, is the code Unit Tested?
|
|
|
|
msin
Legendary
Offline
Activity: 1484
Merit: 1006
|
|
March 13, 2014, 04:44:54 PM |
|
We shouldn't be looking at Nodecoins as a buy and sell commodity. We should be looking at Nodecoins as a Nxt Utility coin. For example. If you want to use the DAC, you have to send 10 Nodecoins to retrieve Doge address, then you can transfer Doge to DAC. If you want to use NxtCash for Mixing you have to send 10 Nodecoins to retrieve NxtCash address, then send Nxt for mixing....and so on. We have some really great features that will be built on top of Nxt and we should charge users Nodecoins to use those features. That will give them value.
But then you're basically inflating the currency and usurping value from Nxt as it should be the unit used for these purposes, no? These are roles that Nxt would take; doing so with nodecoin reduces Nxt's functions and in turn it's demand/value as opposed to nodecoin adding value on top of the system. I am not sure if there is any usurping going on. Using this logic, if we started trading BTC using NXT AE, then somehow this hurts NXT? I dont think that is what would happen. I think the value of NXT would be proportional to the sum of the values of all of the NXT AE assets plus the current value. So if nodecoins become worth something, then NXT becomes incrementally more valuable. Also, you are not taking into account the fact that without NXT, there is no nodecoin. This also seems to be what BCNext wanted from what I can remember. If people deposit $1 billion USD into NXT and we have that much USD assets floating around inside AE, would that suck all the value out of NXT? If nodecoins became worth $1 USD each, would that suck all the value out of NXT? James Trying to catch up on thread but wanted to comment on Nodecoin. Why not make Nodecoin unlimited, is that possible in AE? That way if you want to use DAC, NxtCash (or any Nxt service) and you don't have nodecoin, you have to run the client and mine nodecoin. No one should have to purchase nodecoin from a miner. Why nodecoin would be required to use Nxt services? That would kill Nxt, i believe. No it wouldn't, how would encouraging users to run forging clients kill Nxt? These are optional features that have nothing to do with Nxt core. Nodecoin shouldn't be bought or sold, it should be mined easily by running a client, then you can actually use those nodecoins.
|
|
|
|
GCInc.
|
|
March 13, 2014, 04:46:20 PM |
|
You should do the following:
1.) Get NXT.org in your hands!
I agree. 3.) Launch a SMF forum there with a few sections (General, Projects in development, Finished projects, Technical Discussion (Sub: Brainstorming), Promotion, META and 1 forum for each different languages) Not necessarily wise to launch yet another forum when we have SMF at nextcoin.org with 32606 Posts in 3743 Topics by 5043 members already. We will be happy to have the nxt.org forum directed to nextcoin.org and change the nextcoin.org brand to co-support nxt.org If you have this, even beginner can start NRS and handle it! They just have to start the program, click on the button and they are in the wallet. Nothing more.. (They even don't need to know that this is not a "wallet")
http://offspring.dgex.com has all of this and more.
|
|
|
|
^[GS]^
Member
Offline
Activity: 112
Merit: 10
|
|
March 13, 2014, 04:46:40 PM |
|
|
|
|
|
marcus03
|
|
March 13, 2014, 04:46:52 PM |
|
Does anybody have a "hello world" example of using the Java API?
|
|
|
|
wesleyh
|
|
March 13, 2014, 04:47:37 PM |
|
Hey graviton, looking good on those bounties, well done! Anyway, about point 2, then why did you not allow redirection to forums.nxtcrypto.org back in the day? Just wondering. We will be happy to have the nxt.org forum directed to nextcoin.org and change the nextcoin.org brand to co-support nxt.org
|
|
|
|
wesleyh
|
|
March 13, 2014, 04:48:05 PM |
|
Does anybody have a "hello world" example of using the Java API?
Gonna become a heavyweight client again?
|
|
|
|
Come-from-Beyond
Legendary
Offline
Activity: 2142
Merit: 1010
Newbie
|
|
March 13, 2014, 04:48:41 PM |
|
Then why don't you write your code in assembly? Or binary?...
I do, coz it works without an operating system, on bare metal.
|
|
|
|
marcus03
|
|
March 13, 2014, 04:50:39 PM |
|
Does anybody have a "hello world" example of using the Java API?
Gonna become a heavyweight client again? Nah... Just brainstorming for the InfCom regarding NXT network monitoring. And you? Gonna implement Curve finally? ;-)
|
|
|
|
wesleyh
|
|
March 13, 2014, 04:51:04 PM |
|
Does anybody have a "hello world" example of using the Java API?
Gonna become a heavyweight client again? Nah... Just brainstorming for the InfCom regarding NXT network monitoring. And you? Gonna implement Curve finally? ;-) With the new api it should be much easier, will start on it now
|
|
|
|
klee
Legendary
Offline
Activity: 1498
Merit: 1000
|
|
March 13, 2014, 04:51:49 PM |
|
Then why don't you write your code in assembly? Or binary?...
I do, coz it works without an operating system, on bare metal. You do because you are bored to learn & code OOP
|
|
|
|
GCInc.
|
|
March 13, 2014, 04:53:58 PM |
|
Hey graviton, looking good on those bounties, well done!
Thanks I like it that you like it. Anyway, about point 2, then why did you not allow redirection to forums.nxtcrypto.org back in the day? Just wondering.
Several reasons, the most important being that I'm wiser now and consider nxt.org worth it.
|
|
|
|
marcus03
|
|
March 13, 2014, 04:54:31 PM |
|
Does anybody have a "hello world" example of using the Java API?
Gonna become a heavyweight client again? Nah... Just brainstorming for the InfCom regarding NXT network monitoring. And you? Gonna implement Curve finally? ;-) With the new api it should be much easier, will start on it now Seriously, I assumed that the signing API calls would be a way around having to implement the Curve algo, but from what I understand you still need to, so I'm no longer sure what these calls are for. Just that you don't have to implement the "not enough funds" check?
|
|
|
|
Come-from-Beyond
Legendary
Offline
Activity: 2142
Merit: 1010
Newbie
|
|
March 13, 2014, 04:57:17 PM |
|
Thanks, but neither worked.
I have some simple questions...
1) Calculating the HIT with SHA256(generationSignature, publicKey)... *) generationSignature of the block - Okey a) publicKey the "generator" of the block or my account? - Ur account. b) hash("sha256", hex2bin($generationSignature) . $accountPublicKey); or hash("sha256", hex2bin($generationSignature) . hex2bin($accountPublicKey)); - Binary.
2) $deadline = $hit / ($baseTarget * $totalEffectiveBalance); or $deadline = $hit / ($baseTarget * $effectiveBalance); a) $totalEffectiveBalance of getState() b) $effectiveBalance my account (getBalance()). - This.
Thanks!
Okay!!! Thanks! My problem is to get the HIT! Finally... which is correct? a) $hit = hash("sha256", hex2bin($generationSignature) . $accountPublicKey); (¿Only signature binary?)b) $hit = hash("sha256", hex2bin($generationSignature) . hex2bin($accountPublicKey)); (¿All binary?)PHP hash() function is "valid" for the made the SHA256?and then this is correct? $hit = substr($hit, 0, 8); $hit = hexdec($hit); Example output: generationSignature = ef6e7257b95ea530384db7a24bf2c0415a091f1e99a0b9b4c712c13af3d71c68 publickey = 25ae5107a806e561488394ed5b59916d61c2f0110182e67a1aae19cd6bd86d0e *)hash f41bff20e6e49f5a6ac431f59841ff54d152c1670b99609807ad172a6636b1fb (All binary) *)substr f41bff20 hit = 4095475488 Thank you very much Change endianness.
|
|
|
|
msin
Legendary
Offline
Activity: 1484
Merit: 1006
|
|
March 13, 2014, 05:22:21 PM |
|
NXT AT PROJECT HELP. NEED JAVA PROGRAMMER.
This is a request by CIYAM for help with AT. Need to get on this asap
Quote: The first thing we are going to need is a Java programmer to convert my C++ prototype (and yes I want the Java code to use the console so we can easily run test cases).
Unfortunately CfB isn't interested in doing this in a way that would allow for proper testing so I'd rather he wasn't actually involved in AT other than providing assistance with the Nxt AT API side of things (i.e. how Nxt AT can send and receive transactions as well as get other information and some general functions like say testing a hash value).
|
|
|
|
FrictionlessCoin
Legendary
Offline
Activity: 868
Merit: 1000
Cryptotalk.org - Get paid for every post!
|
|
March 13, 2014, 05:29:02 PM |
|
Is anything on NXT unit tested? EVER?
Dunno. Unit tests r not a panacea, more likely a modern trend between people who used to code for outsourcing. Good thing for u is that Jean-Luc decides how to test, not me. no comment needed.
|
|
|
|
wesleyh
|
|
March 13, 2014, 05:44:00 PM |
|
Does anybody have a "hello world" example of using the Java API?
Gonna become a heavyweight client again? Nah... Just brainstorming for the InfCom regarding NXT network monitoring. And you? Gonna implement Curve finally? ;-) With the new api it should be much easier, will start on it now Seriously, I assumed that the signing API calls would be a way around having to implement the Curve algo, but from what I understand you still need to, so I'm no longer sure what these calls are for. Just that you don't have to implement the "not enough funds" check? Yes, you still need to implement curve, but don't need to construct whatever you need to send yourself and you can still rely on the error messages sent back from the server. I don't believe there is any other way?
|
|
|
|
antanst
|
|
March 13, 2014, 05:45:04 PM |
|
Come on, unit tests are useful precisely when testing new features. Whether you like them or not is irrelevant.
One does not simply unit test a system with eventual consistency. The same test ran 2 times will return different results if tested in real conditions. Testing in artificial conditions is quite useless coz require to conduct other types of tests. I agree, but that's another story, irrelevant to whether a feature is new or not. And there are various levels where unit testing can be applied, not just the "outer network" level. Don't get me wrong, it's one thing talking about unit tests and another thing actually writing them. I'm also not particularly fond of them, but I acknowledge their usefulness.
|
|
|
|
antanst
|
|
March 13, 2014, 05:52:40 PM |
|
Yes, you still need to implement curve, but don't need to construct whatever you need to send yourself and you can still rely on the error messages sent back from the server. I don't believe there is any other way?
That's right. Previously, you needed to construct the raw transaction bytes and sign them. As of 0.8.9 you request the raw bytes from NRS, sign them and send them back.
|
|
|
|
Come-from-Beyond
Legendary
Offline
Activity: 2142
Merit: 1010
Newbie
|
|
March 13, 2014, 05:53:11 PM |
|
Don't get me wrong, it's one thing talking about unit tests and another thing actually writing them. I'm also not particularly fond of them, but I acknowledge their usefulness.
Unfortunatelly, most of guys know that "unit tests should be used", but they don't use sanity checks of this statement. In our project (when we don't have spare Java coders) unit tests would hurt the development. So, guys, stop talking about unit tests made in a perfect world, come back to the reality. /endOfDiscussion.
|
|
|
|
|