News for hackers. Stuff that matters.

makufiru

Re:Kotlin Komparisons: Login settings on Sunday May 21, 2017 @10:38PM (#14390612)
Seems interesting. HN seems to be a buzzing hotbed of Kotlin stories since the Google announcement. I can't help but feel that it looks a lot like Swift on the JVM, without some of the nice data structure literals for maps, lists, etc.
Thanks for sharing! I'm just getting into games and these look really helpful.
Re:Crystal: Fast as C, Slick as Ruby on Thursday August 04, 2016 @03:49AM (#12224072)
As I said, YMMV but the biggest standout that I remember was trying to play sounds using the windows API. There weren't any packages our team could find that really did it correctly, the one that everyone pointed to leaked memory like crazy and it was hard for us to track down since it relied on bouncing back and forth between C and Go so frequently (making malloc/free lifetimes difficult to follow because C can't know what things have been GC'd by the Go runtime)
Re:Crystal: Fast as C, Slick as Ruby on Thursday August 04, 2016 @03:42AM (#12224043)
In my experience, Golang's Windows support is actually fairly poor. I think it is largely to do with the clunky interface that is CGo. I found Rust to be less "warty" by a large margin with good library support in a lot of areas. Your mileage may vary, of course.
Re:Junior programmer? This may help you on Thursday August 04, 2016 @01:36AM (#12223611)
> please break down these pleasant chunks of unreadable code into model properties and use them here and anywhere else where you have such kryptonian blocks. Good code is readable, semantic, and easy to follow and update. I pitty the poor soul who would have to participate here with you :). I, for one, would probably delete and start over to spend less time. I know there are situations where it's unavoidable but this one clearly isn't the case. Python really is beautiful, Python is english...write me some poetry please.

> You have a lot of repetitions of datetime objects that can be stored in a variable. You have a lot of comparisons on the object that can be stored as model properties. Separate them and let these methods breathe please. This looks like callback madness in js. I can't even follow the parenthesis to grasp the flow of conditions here. Even my IDE formatter left me.

Wow. If I saw someone code review like this on my team, they would get one warning. If this behavior was repeated, then they would be fired. There is no place for condescension in the team, even from Senior -> Junior level developers. If anything, this is a great stepping stone for (kindly) teaching a jr. member how to refactor into code that is more readable. Unnecessary jabs like "i pity the poor soul... clearly this isn't the case... looks like JS... even my IDE formatter left me..." and snide hand-wavy remarks like "python is english.. write me some poetry" are only useful to stroke e-peens and push people down publicly.

What would have gone a lot further, in my opinion, was refactoring the code then sending it to the jr. dev and telling them that you refactored their code for them. Tell them that - if they'd like - you'd be happy to walk through the changes and explain why those things were helpful/useful. It's not a contest about who can write the best "poetry". It's about getting along, helping each other, and getting work done.

Jr. devs, if you are reading this, please don't despair. I promise that all teams aren't this bad to work on. There are places where you don't have to be afraid to be the butt of a joke in an HN post and you will actually learn things. If your team is more like the one in the post, you're much better off just leaving for your own sanity.

Re:Continuous – Professional C# and F# IDE for the iPad on Thursday July 07, 2016 @02:49AM (#12047856)
Not just enriching, people are blowing Apple out of the water in regards to adding new capabilities to the iPad. This app makes the swift "playgrounds" look even more laughable.
Re:Continuous – Professional C# and F# IDE for the iPad on Wednesday July 06, 2016 @03:27PM (#12045257)
Just ran into this and was about to post it - Wow. Looks really good. It seems like he embedded an IL interpreter to get around the AppStore limitations. Amazing work.
This looks amazing and very close to a project I've been working on myself - a clojure-ish lisp-1 with Rust style memory management. Very cool work!
Re:Writing a 2D Game in Nim on Tuesday June 14, 2016 @04:34PM (#11905114)
This is really great stuff. I've been working on a small 2d SDL project in C++ and this has given me a lot of pointers, as well as opened my eyes to the power of Nim for tasks like this.

It seemed somewhere in between C and Python. Really cool.

Re:Did Google Manipulate Search for Hillary? [video] on Friday June 10, 2016 @03:04AM (#11874729)
Sorry! I didn't know. I just saw it and thought it would be interesting to hear HN's opinion on what was happening. Won't happen again.
$120k in just salary is common for a regular developer with 3 years experience here. Not even SV
I feel this too. I find that exercise and diet help me control it the most.
Java would do fine, and much better than Node for this case.

Even if it wasn't better, the best language to use on a project is the one you already know. So still Java

Re:Ask HN: Is Go the New Nodejs / JavaScript? on Tuesday March 29, 2016 @02:49AM (#11379905)
Go is more likely to replace Java as high throughput/low latency server technology.

I've seen it in huge companies working with lots of data at high speeds.

Javascript sees a lot of use in small shops where devs only want to learn a few languages, or for fullstack devs who work on both ends of the stack.

You see it a lot in HN because javascript is getting pretty saturated - people are already doing EVERYTHING in it. Go on the other hand is just breaking into a few key areas, and is a lot younger, and I would even go as far as to say more exciting.

Re:Ask HN: What is the simplest stack to learn? on Monday August 17, 2015 @05:06PM (#10076128)
Both Angular and React are very easy to drop in and integrate with Django. Ember isn't a big stretch either, as you can use any framework with anything that serves up a restful API

Ask HN: Best way to learn computer/programming theory without college?

Having never done well in college, I did not complete my degree when I was there.I'm curious about the best way that other people have found to learn theory or ideas that have made them way better programmers. Especially things they have done on their own time, or at least outside of college.I've built complex systems and user interfaces, but I couldn't tell you about quick-sort algorithms, or...

( Read More... | 8 comments | 4 points | on HN )
Re:Ask HN: How do I make a lot of money quickly? on Tuesday August 04, 2015 @04:37PM (#10006126)
Good suggestion, but I'm looking for something a little more wholesome. Like a hired hitman.
Re:Ask HN: How do I make a lot of money quickly? on Tuesday August 04, 2015 @04:14PM (#10005974)
Actually the reason I'm looking to make money is to get out from under this car lease that I mistakenly took on, and have enough for first+last months rent and a security deposit at a new, more affordable place.
Re:Ask HN: How do I make a lot of money quickly? on Tuesday August 04, 2015 @03:25PM (#10005627)
You're correct. I meant my response as tongue in cheek, though that didn't really translate well in text, my apologies.
Re:Ask HN: How do I make a lot of money quickly? on Tuesday August 04, 2015 @02:24PM (#10005231)
Actually I'm looking for the income in addition to my regular job.
Re:Ask HN: How do I make a lot of money quickly? on Tuesday August 04, 2015 @02:19PM (#10005202)
If I did, I probably wouldn't be asking how to make money quickly.
Re:Ask HN: How do I make a lot of money quickly? on Tuesday August 04, 2015 @02:18PM (#10005200)
Have a job, struggle to live minimally when I have about $2k in expenses that I'm locked into.

Ask HN: How do I make a lot of money quickly?

I'm a 22 year old software developer with nearly 2 years of experience in full-stack software development. I'm pretty proficient in both frontend and backend technologies, and have built full web systems through to completion that are in production use today.I have a lot of free time. I'm young and single with no interest in relationships right now. I'm looking for a way to make large...

( Read More... | 49 comments | 15 points | on HN )
Re:Ask HN: Best new or modern languange for game dev? on Thursday July 30, 2015 @05:37PM (#9978352)
Javascript frontend (React/Angular) Javascript backend (Node.js) Javascript DB (MongoDB)
Re:Ask HN: Best new or modern languange for game dev? on Tuesday July 28, 2015 @01:44PM (#9963253)
So you're saying I should embrace C/C++/a scripting language and not try to chase something new? I think my main reason for both requirements was so that I could learn something that'd help me in my current position, and also get started on the path I'd like to be on: toward game development.
Re:Ask HN: Best new or modern languange for game dev? on Tuesday July 28, 2015 @01:26PM (#9963126)
In this case, I'm actually using game dev as the excuse or motivator to learn a new language. So the one I know best doesn't necessarily apply here. Haha

Ask HN: Best new or modern languange for game dev?

So I'm currently a full stack javascript developer. I'd like to learn a new/modern language (Go, Clojure, etc) and also tinker with some game development in the process. What language with that criteria has the best libraries or would lend itself best to game dev?

( Read More... | 18 comments | 13 points | on HN )