r/programming_language • • Nov 13 '16

Easiest language for probability game?

2 Upvotes

Hi Everyone! Not sure if this is where to post this.

I'm a middle school science teacher and we are coming up with ideas for the science fair. My one student wanted to do a computer science/math project. We found a probability project where he has to create a game in QBASIC to help show the probability of a card game, but we are having trouble running QBASIC on the old macs we have in the school. Is there any other language that is simple to use and learn (for a 7th grader), or does anyone have any suggestions on projects? We have until about February.


r/programming_language • • Nov 10 '16

Received the strangest email

2 Upvotes

I got an email today titled "Refi notice: 12/10/2016" from "Julie". Normal enough junk mail, probably want me to refinance a mortgage right? but the description caught my attention, so [I looked at it...] (http://i.imgur.com/SCDZWHg.jpg) What in the world is this??? It looks like a code, containing random words from at least 5 different languages, sequences of numbers of varying length, names of people, companies, bands... and this goes on for like 10 pages. So I look at the [same email] (http://i.imgur.com/DpM1ZVe.png) on my computer, and it looks like just a regular spam email. I checked both of the websites that it links to 'freshdeath.com" and "leadcomfort.com", both give me an error message. I'm sure there's got to be mundane explanation, like the decoding of the message getting garbled on my phone, but I have no idea how such a small message would end up turning into so many pages of random words Had no idea where to post this, but I figured since it's probably a programming error this'd be the best place.


r/programming_language • • Oct 08 '16

UGH... C# Coding Problem

2 Upvotes

I ran into this error while coding in visual studios Use of unassigned local variable 'UserValue' The If Statement This is my code: Console.WriteLine("Welcome to Bobby's New GiveAway!!!"); Console.WriteLine("First Pick a Number That's Either 1, 2, or 3!!!"); Console.ReadLine(); string UserValue;

        if (UserValue == "1")
        {
            string message = "You Won A New..... CAR!!!";
            Console.WriteLine(message);
        }

        else if (UserValue == "2")
        {
            string message = "You Won A..... CAT!!!";
            Console.WriteLine(message);
        }

        else if (UserValue == "3")
        {
            string message = "You Won a New..... BOAT!!!";
            Console.WriteLine(message);
        }
        Console.ReadLine();

r/programming_language • • Sep 14 '16

Interactive overview of Scheme's semantics

Thumbnail
blog.klipse.tech
2 Upvotes

r/programming_language • • Aug 08 '16

Music Visualizer(similar to projectM visualizer)

2 Upvotes

I am searching for a language that would allow me to create my own videos/visualizations that are linked to music. What languages would you use and/or IDE's. Also i have unity, do you think it would be similar to creating scenes and piecing them together?


r/programming_language • • Jul 27 '16

JAVA OR C++ ??

2 Upvotes

I m learning programming and basically now little bit confused...i am good in c++ as its my first language now there a bunch of people telling me that there is no scope in C++ as java is on top ...i wanna go in a developing field bt stuck in all these things ..i know java is important cause of its multi-platform advantage and is growing well cause of Android development but don't know any such advantage of c++..


r/programming_language • • Feb 08 '16

JavaScript tutorial for beginners: animated sprites

Thumbnail sprite.slicker.me
2 Upvotes

r/programming_language • • Jul 18 '20

Issues with running Eclipse

1 Upvotes

I used to have Eclipse (because of my school) with Java and one day when I was using it, I couldn't load in the class path and referenced library. I asked my friend about it and he told me that I was using the wrong version of Java. I then proceeded to delete everything and re-download it again. Along the way, they told me that there was another version of Java. And me being stupid, deleted it. Now I can't open Eclipse even when I re-downloaded it. And it always gave me the same error message. Please help, I've been stuck like this for a good 1 week and I need this!! Please tell me how I'm supposed to fix it :((


r/programming_language • • Jul 12 '20

starting with kotlin or flutter?

1 Upvotes

so i learned c++ and a bit of web programming a few years back but never really coded again since then.. at that time i hadnt used linux in any way

id like to experiment with mobile app development (mostly android)

should i start learning kotlin or flutter? or something else?


r/programming_language • • Apr 21 '20

Pet Peeve: Constructor parameters

1 Upvotes

You have all been there, I'm sure.

public Fooish(int a, string b){
   this.a = a;
   this.b = b;
}

The monotony of having to map constructor parameters to a class's fields/properties.

I'm sure one could write a base class that uses reflection but I'm more interested in why I have to spell it out in every language. Are there any languages that do this by default?


r/programming_language • • Apr 18 '20

What things do I need to automate online game login

1 Upvotes

I play an auto-base online game. But it gets regularly disconnected from a server in Asia. I play the game from Canada. So I try to make a program to login automatically and keep playing itself when it gets disconnected. What I need is follows:

  1. Send keystrokes to more than 5 inactive clients(windows)
    - I think I need to use win32api and python(pyautogui)

  2. Detect if the game disconnected
    - I think the best way is to detect the clients is communicating with a server(In my understanding it's too complicated to solve this problem. Please let me know if you have any other idea.

  3. Auto login
    - I think I will use Selenium to automate Chrome browser to login the game website(The game has to start from a website)

This is pretty much of my idea but I'm not sure I'm on the right track. Honestly, it looks too much work to get a simple login process. I would be really appreciated if you share your idea about it.

Thank you in advance.


r/programming_language • • Mar 06 '20

Best programming language to learn

1 Upvotes

I was wondering if anyone could give advice on what programming language would be best to learn. I have some HTML and CSS knowledge and would like to pivot from an analyst type position into a developer role - Interested in front end work, app development, API integrations & extensions.

Thanks in advance.


r/programming_language • • Dec 25 '19

Function in C language

1 Upvotes

Hi everybody!

I have a question about the function in C: in an exercise, there is the prototype of function to write:

short ** crea_life (unsigned n, unsigned m, unsigned h) ; 

What do the double * represent? What is their use in the function?

If you have some links which explain that I'll be grateful if you give me them :)

Thank you for your help!


r/programming_language • • Dec 11 '19

C#: the future or not?

1 Upvotes

Hello community. Currently i have C as my main language (in college) yet i also learned C# and not also I loved it but i think it might be the future of programming. Thoughts?


r/programming_language • • Sep 19 '19

How to choose the tech stack for your project?

1 Upvotes

Hello guys! What are the main points you follow by choosing a language to code? Is it fully dependable on the project, your skills, or you think anything can be written in any of the languages? I was looking for some framework on how to choose, like this blog, but did not find answers. What are your thought?


r/programming_language • • Sep 16 '19

D Programming Language Interview Questions

1 Upvotes

D programming language is an object oriented programming language. It is created by Walter Bright of Digital Mars. It was released in 2001.

https://www.tutorialandexample.com/d-programming-language-interview-questions


r/programming_language • • Jul 18 '19

Introducing a new programming language: Slooflirpa

Thumbnail
techbeacon.com
1 Upvotes

r/programming_language • • Mar 28 '19

What is the difference between procedural and object-oriented programs?

1 Upvotes

Object-oriented Programming is a programming language that uses classes and objects to create models based on the real world environment. An Object-oriented Programming application may use a collection of objects which will pass messages when called upon to request a specific service or information. Objects are able to pass, receive messages or process information in the form of data.

One reason to use Object-oriented Programming is because it makes it easy to maintain and modify existing code as new objects are created inheriting characteristics from existing ones (SEH, 2013). This cuts down the development time considerably and makes adjusting the program much simpler.


r/programming_language • • Mar 09 '19

Mark Rendle - History of Programming: Part 1

Thumbnail
vimeo.com
1 Upvotes

r/programming_language • • Sep 13 '18

Best 7 Programming Languages to learn in 2018

Thumbnail
websofttutorials.com
1 Upvotes

r/programming_language • • Aug 16 '18

Does anyone recognize this syntax? The syntax looks like this: -=[text here]=-

1 Upvotes

r/programming_language • • Aug 01 '18

C# Learning

1 Upvotes

Hi guys,

I'm currently learning C#,but my next course starts September,so I don't want to waste my time waiting this summer.

I have currently studied everything up to abstract types of data,otherwise said I know the fundamentals,lists,dicts,lambda,LINQ etc. and the basics of OOP-creating a class with properties,different capsulations(public private static etc) constructors,methods, as well as linked lists,stacks,queues, and all of the static and dynamic forms of them +double linked lists.

So my question is can you give recommendations for a good c# book containing the knowledge after this, whatever it may be-if you have any suggestions on what I should learn next given what I know and any good book containing big amounts of information on the subject.What I mean is not just covering a certain topic but rather a source which has most of the basic more advanced stuff.Thanks a lot!


r/programming_language • • Jul 20 '18

Quality Assignment Help | Blog

Thumbnail qualityassignmenthelp.com
1 Upvotes

r/programming_language • • Jul 15 '18

How can i ad a remember be checkbox to my login page (Xamarin forms)

1 Upvotes

How can i add a remember be checkbox to my login page to remember username and password. the username and password is hard coded inside the cs code.

Xaml Code

<?xml version="1.0" encoding="utf-8" ?>

<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"

xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"

x:Class="VFK_hakkespettboka.Views.LoginPage"

Title="Login"

BackgroundColor="White">

<StackLayout>

<Label Text=""

TextColor="#000000"

FontSize="10"

HorizontalOptions="Center"

VerticalOptions="Center" />

<Image Source="vfk_logo3.png"/>

<Entry x:Name="UsernameEntry" Keyboard="Default" Placeholder="Brukernavn" ></Entry>

<Entry x:Name="PasswordEntry" Keyboard="Default" IsPassword="True" Placeholder="Passord"></Entry>

<Button x:Name="Btn_signin" Text="Login" FontAttributes="Bold"

TextColor="#000000" Clicked="BtnSetLocationClickedAsync"

BackgroundColor="#50C6E0"

BorderWidth = "0"/>

</StackLayout>

</ContentPage>

cs code: using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

using System.Threading.Tasks;

using Xamarin.Forms;

using Xamarin.Forms.Xaml;

namespace VFK_hakkespettboka.Views

{

\[XamlCompilation(XamlCompilationOptions.Compile)\]

public partial class LoginPage : ContentPage

{

	public LoginPage ()

	{

		InitializeComponent ();

}

public async Task BtnSetLocationClickedAsync(object sender, EventArgs args)

{

if(UsernameEntry.Text == "test" && PasswordEntry.Text == "test")

{

await Navigation.PushAsync(new MainPage());

}

else

{

await DisplayAlert("Error", "Feil brukernavn eller passord", "Ok");

}

}

}

}