Vala and C Speed via /r/learnprogramming


Vala and C Speed

I recently discovered a programming language called Vala. It's an object-oriented language and the syntax looks kind of like a cross between Python and Java. It looks interesting to me and as far as I can tell, the Vala compiler takes your Vala code and translates it into C, and then compiles it.

Considering Vala code is translated (I suppose cross-compiled is the term) into C code before being compiled into a binary, does that mean Vala programs would generally be just as fast as programs written in C?

Submitted August 31, 2015 at 07:32PM by RandomFishWaffle
via reddit http://ift.tt/1IAAjsc

I’m learning programming via Ruby and want to take an online course. Is Harvard’s CS50 a good course? via /r/learnprogramming


I’m learning programming via Ruby and want to take an online course. Is Harvard’s CS50 a good course?

I'm not a beginner to computer science – while my knowledge of programming is low, I have a lot of experience with operating systems (Linux, Windows,) as well as hardware (building computers).

I've been learning Ruby over the last few weeks, and I love it. My plan is to finish reading The Well-Grounded Rubyist, and then start learning some HTML/CSS/JS, and then Rails.

I want to take an online course to supplement my learning, but don't know which one to take. Is Harvard's CS50 a good course? Are there better ones?

Submitted August 31, 2015 at 07:05PM by Isunova
via reddit http://ift.tt/1PHyzmz

Java annotations: What are they? via /r/learnprogramming


Java annotations: What are they?

I'm looking at learning Java. Having a Python background, I see these funny @Override and its kin all over the place and think, "Oh, that's a decorator!" But having read about them a little, they seem more like macros or preprocessors… which I suppose Python decorators could be thought of as, but that's only just occurred to me.

What are these annotations? Are they comparable to Python's decorators, and if so at what point does that comparison break?

Submitted August 31, 2015 at 07:07PM by kurashu89
via reddit http://ift.tt/1PHyzmr

[Java] String gets truncated after it’s a certain number of characters via /r/learnprogramming


[Java] String gets truncated after it’s a certain number of characters

Hey guys, so I was working on a Java Web Server for this semester and I found an interesting bug and was wondering if you guys could explain what's happening. The program is finished. Don't need homework help or anything of that sort would just like to know what's going on.

What I've noticed is that after a specific length the String gets outputted to a certain point and the other part gets truncated.

Here's the complete code

http://ift.tt/1X7Mt72

The part that I feel is causing the issue

http://ift.tt/1Q4MdRw

Submitted August 31, 2015 at 07:09PM by Ani10
via reddit http://ift.tt/1Ko472Z

[WebDev] Completed my first website! Looking for critique / better or right way of doing things. via /r/learnprogramming


[WebDev] Completed my first website! Looking for critique / better or right way of doing things.

Hello! I hope it's ok to post this.
I recently made a little site that randomly displays cards when a button ("soloyolo" or "10+1") is pressed.
It's mainly frankensteined from code tutorials/google searches I've found around the web so I am not quite confident it is done "right".

Is there anything you would have done differently? I didn't really know any javascript or css3 before trying this out (technically, I still don't really know it well; I'm just fairly good at googling) so any helpful input would be appreciated.

All the code should be viewable via "view source" but here are links too: javascript | css | xml

Submitted August 31, 2015 at 06:41PM by ceratopian
via reddit http://ift.tt/1JHJFmS

Writing a new program, where to start? via /r/learnprogramming


Writing a new program, where to start?

Hello,

I am looking at writing a program but I need some help. The program I want to write needs to be able to pull data from a specific website, then do some logic number crunching and produce a result. I understand the logic behind it, but I have no idea what language to write it with?

I'd prefer the easiest to learn that will be able to do these functions. Ideally I'd like it to be a chrome plugin, but if that is way more complicated, I have no problem designing something that I can use on my desktop.

I have no idea where to start or anything. I was hoping for some guidance.

Submitted August 31, 2015 at 06:45PM by timmeejr
via reddit http://ift.tt/1X7GmQb

Maybe a dumb question… where can I host a freeware closed source program? via /r/learnprogramming


Maybe a dumb question… where can I host a freeware closed source program?

So, I'm a video editor and found an aspect of the job that can be easily automated. So I hired a programmer and together we came up with the product that is finished. My understanding is that Sourceforge and Github are only for open source projects. While our program is free, we don't want to make it open source. Sorry if this is a silly question, I couldn't find anything in the FAQ about hosts and I really have no idea. Where can we upload it so people can download it?

Thank you.

Submitted August 31, 2015 at 06:47PM by Margaret_Atwood
via reddit http://ift.tt/1NTvktO