|
Thread Rules 1. This is not a "do my homework for me" thread. If you have specific questions, ask, but don't post an assignment or homework problem and expect an exact solution. 2. No recruiting for your cockamamie projects (you won't replace facebook with 3 dudes you found on the internet and $20) 3. If you can't articulate why a language is bad, don't start slinging shit about it. Just remember that nothing is worse than making CSS IE6 compatible. 4. Use [code] tags to format code blocks. |
On November 16 2017 00:12 Manit0u wrote:Show nested quote +On November 15 2017 22:40 bo1b wrote: That letter looks like it's from Victoria, Australia - most likely in melbourne. I didn't know we had any companies in this area which used erlang. Atlassian maybe? Although from what I hear they're switching all of their architecture to Java now. Atlassian is based in Sydney, new South Wales and they use rust as the uncommon language. They're also trying to be a mega tech company so I just can't see them doing this.
|
On November 15 2017 22:40 bo1b wrote: That letter looks like it's from Victoria, Australia - most likely in melbourne. I didn't know we had any companies in this area which used erlang.
Out of curiosity, You based it on what?
|
|
On November 16 2017 06:45 Silvanel wrote:Show nested quote +On November 15 2017 22:40 bo1b wrote: That letter looks like it's from Victoria, Australia - most likely in melbourne. I didn't know we had any companies in this area which used erlang. Out of curiosity, You based it on what? The letter referenced something called vcat. More than possible theres another tribunal somewhere around the world called vcat, but im fairly certain it's located in Australia, Victoria, Melbourne.
|
Invoicing for an interview is already ridiculous. But saying the guy lied about having loads of experience in distributed systems because he didn't knew Erlang is also bullshit.
|
Ruby:
JSON.generate({ num: 1.0 }) # => {"num":1.0}
JavaScript:
JSON.stringify({ num: 1.0 }) // => {"num":1}
Is there a way to make JavaScript print 1.0 into JSON? It's super dumb considering that every number in JS is a float, but you can't display them as floats if they only have 0's in decimal places (and I need it to do so).
|
Could go for the super convoluted option and use webasm? Technically it's still javascript right?
|
On November 16 2017 18:59 Manit0u wrote: Is there a way to make JavaScript print 1.0 into JSON? It's super dumb considering that every number in JS is a float, but you can't display them as floats if they only have 0's in decimal places (and I need it to do so).
Like this, maybe?
let encoded = JSON.stringify({num: 1.0}).replace(/(?!\.)\d+(?!\.)/,"$&.0") console.log(encoded) // {"num":1.0}
Kinda ugly using regex to modify the JSON, but I don't think you can make JSON.stringify output it like that directly.
|
On November 16 2017 23:21 Deckard.666 wrote:Show nested quote +On November 16 2017 18:59 Manit0u wrote: Is there a way to make JavaScript print 1.0 into JSON? It's super dumb considering that every number in JS is a float, but you can't display them as floats if they only have 0's in decimal places (and I need it to do so). Like this, maybe? let encoded = JSON.stringify({num: 1.0}).replace(/(?!\.)\d+(?!\.)/,"$&.0") console.log(encoded) // {"num":1.0}
Kinda ugly using regex to modify the JSON, but I don't think you can make JSON.stringify output it like that directly.
Unfortunately this won't fly. The problem is that we have to pass user input from the front-end form (many values are being passed, strings, floats, integers, booleans to the API as JSON, it is then passed on to external tools which require that all float values have decimal notation.
The input is validated for type and it would be stupid to convert some values to float since technically the user could input invalid float (passed as string and cast to float) and casting it could skew the validation.
JavaScript is so awful at times Would it be so hard for them to implement simple functions like toFloat() (kinda stupid for JS since every number is a float by default, they just show it as int) or toInt()?
|
I need to build a simple Windows desktop app (not universal windows apps, for windows 7). What is the go to technology for that nowadays? Everything today is mobile and web apps
I am most familiar with java but I hate swing.
|
On November 17 2017 02:14 mantequilla wrote: I need to build a simple Windows desktop app (not universal windows apps, for windows 7). What is the go to technology for that nowadays? Everything today is mobile and web apps
I am most familiar with java but I hate swing. Well, first, why Windows 7 specifically? I can understand liking Windows 7 better than the other options, but seems weird focusing your development on it.
But in general, I'd say if you're focusing solely on Windows OS applications, you can't really go wrong with C# and using WPF for your UI.
|
On November 17 2017 00:21 Manit0u wrote:Show nested quote +On November 16 2017 23:21 Deckard.666 wrote:On November 16 2017 18:59 Manit0u wrote: Is there a way to make JavaScript print 1.0 into JSON? It's super dumb considering that every number in JS is a float, but you can't display them as floats if they only have 0's in decimal places (and I need it to do so). Like this, maybe? let encoded = JSON.stringify({num: 1.0}).replace(/(?!\.)\d+(?!\.)/,"$&.0") console.log(encoded) // {"num":1.0}
Kinda ugly using regex to modify the JSON, but I don't think you can make JSON.stringify output it like that directly. Unfortunately this won't fly. The problem is that we have to pass user input from the front-end form (many values are being passed, strings, floats, integers, booleans to the API as JSON, it is then passed on to external tools which require that all float values have decimal notation. The input is validated for type and it would be stupid to convert some values to float since technically the user could input invalid float (passed as string and cast to float) and casting it could skew the validation. JavaScript is so awful at times  Would it be so hard for them to implement simple functions like toFloat() (kinda stupid for JS since every number is a float by default, they just show it as int) or toInt()? Could you hack around it by doing 0.0+x? Or x*1.0?
|
On November 17 2017 00:21 Manit0u wrote:JavaScript is so awful at times  Would it be so hard for them to implement simple functions like toFloat() (kinda stupid for JS since every number is a float by default, they just show it as int) or toInt()?
JS having a unified number type is maybe debatable. If in your requirement you have distinguish between int & float, don't use it without a schema. You are complaining that it's hard to cut a tree with a spoon.
|
On November 17 2017 02:14 mantequilla wrote: I need to build a simple Windows desktop app (not universal windows apps, for windows 7). What is the go to technology for that nowadays? Everything today is mobile and web apps
I am most familiar with java but I hate swing. Electron! Take all the bloat and slowness of javascript, bundle it with an entire browser and a 70MB .exe file and you have your "desktop" app.
Or learn some Win32 and C and make one of the smallest and fastest programs you've ever written.
|
Well if we are going outside of Java then i would say use QT or PyQT for simple desktop app.
|
I second the C# and WPF option. Did that in the past. Worked fine.
On November 17 2017 07:47 WarSame wrote:Show nested quote +On November 17 2017 00:21 Manit0u wrote:On November 16 2017 23:21 Deckard.666 wrote:On November 16 2017 18:59 Manit0u wrote: Is there a way to make JavaScript print 1.0 into JSON? It's super dumb considering that every number in JS is a float, but you can't display them as floats if they only have 0's in decimal places (and I need it to do so). Like this, maybe? let encoded = JSON.stringify({num: 1.0}).replace(/(?!\.)\d+(?!\.)/,"$&.0") console.log(encoded) // {"num":1.0}
Kinda ugly using regex to modify the JSON, but I don't think you can make JSON.stringify output it like that directly. Unfortunately this won't fly. The problem is that we have to pass user input from the front-end form (many values are being passed, strings, floats, integers, booleans to the API as JSON, it is then passed on to external tools which require that all float values have decimal notation. The input is validated for type and it would be stupid to convert some values to float since technically the user could input invalid float (passed as string and cast to float) and casting it could skew the validation. JavaScript is so awful at times  Would it be so hard for them to implement simple functions like toFloat() (kinda stupid for JS since every number is a float by default, they just show it as int) or toInt()? Could you hack around it by doing 0.0+x? Or x*1.0?
This doesn't work in JS. It still outputs the number as if it were an integer.
|
On November 18 2017 00:46 Manit0u wrote:I second the C# and WPF option. Did that in the past. Worked fine. Show nested quote +On November 17 2017 07:47 WarSame wrote:On November 17 2017 00:21 Manit0u wrote:On November 16 2017 23:21 Deckard.666 wrote:On November 16 2017 18:59 Manit0u wrote: Is there a way to make JavaScript print 1.0 into JSON? It's super dumb considering that every number in JS is a float, but you can't display them as floats if they only have 0's in decimal places (and I need it to do so). Like this, maybe? let encoded = JSON.stringify({num: 1.0}).replace(/(?!\.)\d+(?!\.)/,"$&.0") console.log(encoded) // {"num":1.0}
Kinda ugly using regex to modify the JSON, but I don't think you can make JSON.stringify output it like that directly. Unfortunately this won't fly. The problem is that we have to pass user input from the front-end form (many values are being passed, strings, floats, integers, booleans to the API as JSON, it is then passed on to external tools which require that all float values have decimal notation. The input is validated for type and it would be stupid to convert some values to float since technically the user could input invalid float (passed as string and cast to float) and casting it could skew the validation. JavaScript is so awful at times  Would it be so hard for them to implement simple functions like toFloat() (kinda stupid for JS since every number is a float by default, they just show it as int) or toInt()? Could you hack around it by doing 0.0+x? Or x*1.0? This doesn't work in JS. It still outputs the number as if it were an integer.
Could you use toFixed() to convert the number into a string that looks like float first and then use JSON.stringify on the whole thing? https://stackoverflow.com/questions/41399380/force-float-value-when-using-json-stringify#answer-41399477
|
On November 18 2017 01:13 AKnopf wrote:Show nested quote +On November 18 2017 00:46 Manit0u wrote:I second the C# and WPF option. Did that in the past. Worked fine. On November 17 2017 07:47 WarSame wrote:On November 17 2017 00:21 Manit0u wrote:On November 16 2017 23:21 Deckard.666 wrote:On November 16 2017 18:59 Manit0u wrote: Is there a way to make JavaScript print 1.0 into JSON? It's super dumb considering that every number in JS is a float, but you can't display them as floats if they only have 0's in decimal places (and I need it to do so). Like this, maybe? let encoded = JSON.stringify({num: 1.0}).replace(/(?!\.)\d+(?!\.)/,"$&.0") console.log(encoded) // {"num":1.0}
Kinda ugly using regex to modify the JSON, but I don't think you can make JSON.stringify output it like that directly. Unfortunately this won't fly. The problem is that we have to pass user input from the front-end form (many values are being passed, strings, floats, integers, booleans to the API as JSON, it is then passed on to external tools which require that all float values have decimal notation. The input is validated for type and it would be stupid to convert some values to float since technically the user could input invalid float (passed as string and cast to float) and casting it could skew the validation. JavaScript is so awful at times  Would it be so hard for them to implement simple functions like toFloat() (kinda stupid for JS since every number is a float by default, they just show it as int) or toInt()? Could you hack around it by doing 0.0+x? Or x*1.0? This doesn't work in JS. It still outputs the number as if it were an integer. Could you use toFixed() to convert the number into a string that looks like float first and then use JSON.stringify on the whole thing? https://stackoverflow.com/questions/41399380/force-float-value-when-using-json-stringify#answer-41399477
Even in the example you posted it doesn't work as intended This produces JSON number with quotation marks (a string).
|
On November 16 2017 15:40 bo1b wrote:Show nested quote +On November 16 2017 06:45 Silvanel wrote:On November 15 2017 22:40 bo1b wrote: That letter looks like it's from Victoria, Australia - most likely in melbourne. I didn't know we had any companies in this area which used erlang. Out of curiosity, You based it on what? The letter referenced something called vcat. More than possible theres another tribunal somewhere around the world called vcat, but im fairly certain it's located in Australia, Victoria, Melbourne. Jesus $55/hr is the going rate for "lead developer" in Melbourne?
Actually nvm if the owner is still interviewing people that place has gotta be tiny as shit
|
On November 18 2017 15:56 phar wrote:Show nested quote +On November 16 2017 15:40 bo1b wrote:On November 16 2017 06:45 Silvanel wrote:On November 15 2017 22:40 bo1b wrote: That letter looks like it's from Victoria, Australia - most likely in melbourne. I didn't know we had any companies in this area which used erlang. Out of curiosity, You based it on what? The letter referenced something called vcat. More than possible theres another tribunal somewhere around the world called vcat, but im fairly certain it's located in Australia, Victoria, Melbourne. Jesus $55/hr is the going rate for "lead developer" in Melbourne? Actually nvm if the owner is still interviewing people that place has gotta be tiny as shit 55 an hour is no where near the going rate for lead dev in Melbourne.
Having a forklift license qualifies you for ~50 an hour here, a lead dev is on > 180k a year before stock generally.
|
|
|
|