• Breaking News

    Monday, December 30, 2019

    When you create an 'app' is this the same as creating a website? learn programming

    When you create an 'app' is this the same as creating a website? learn programming


    When you create an 'app' is this the same as creating a website?

    Posted: 29 Dec 2019 12:04 PM PST

    I've been reading lot on the subject of career changes, learning programming, etc. As I am in that boat. And people talk a lot about creating 'apps'. But the app always seems to be a website. Am I as a 40 year old so out of the loop of technology that I didn't notice that websites are now called apps? I'm just a bit confused on this, as I assumed an app was an app on a smartphone. And a website was something you go to from a browser.

    Will learning JavaScript help me to build apps or websites?

    submitted by /u/bigweeduk
    [link] [comments]

    [C] Calculate de value of e

    Posted: 29 Dec 2019 06:08 AM PST

    Hi! I am trying to calculate the value of e using the formula

     e = 1+ 1/1! + 1/2! +...+1/5! 

    my code is

    int main() { long e=1; int i, counter=1; for (i=1;i<=5;i++) { while (i >= 1) { counter *= i; i--; } e+=(1/counter); counter=1; } printf("%ld\n", e); } 

    but I don't know what my mistake is. If anybody knows an easier way to do this it would be appreciated. Thanks

    submitted by /u/MinimalistHerr
    [link] [comments]

    Python and other programming goals to make in 2020 and how to achieve them

    Posted: 29 Dec 2019 05:30 PM PST

    Hi r/learnprogramming community!

    It's that time of the year again to be setting New Years resolutions and also go into a new decade with the chance to reinvent and challenge ourselves to reach new heights in our skills. I wrote this article as a reminder to myself of things I will be working on and to share with the developers of the world should anyone chose to join me in at least a few of these growth areas.

    https://beapython.dev/2019/12/30/python-goals-you-should-be-making-in-2020-and-how-to-achieve-them/

    Please let me know in the comments what goals you have for 2020 in programming!

    submitted by /u/S2tha3l
    [link] [comments]

    Magic spells system in OOP

    Posted: 29 Dec 2019 06:54 AM PST

    Hello. How do I think of magic spells system in terms of OOP? I used to think of OOP like I have an abstraction with minimum set of functionality and derivatives that extend that abstract class or interface. But after some time of game development I stucked into some misunderstandings about that paradigm.
    Consider I want to make a spell system like in Diablo or Neverwinter, or any other RPG.
    I can't make an interface `ISpell` (I will use C# conventions later) with method `Cast()`
    Spells can be split into several very different use cases: on self (Heal), target (Magic shield), point (Teleport), point with area (Meteor), directional (Fireball), two points (Temporary Barrier)

    We can't make generic `Cast()` method, because

    "on self" doesn't accept any argument (target is caster itself)

    "target" accepts a game entity as argument `Cast(GameObject target)`

    "point" takes a spatial coordinate `Cast(Vector3 position)`

    "point with area" takes two arguments `Cast(Vector3 position, float radius)` (It is argueable with `float radius` argument should be here and not in spell inner implementation)

    "directional" takes a direction where to cast `Cast(Vector3 direction)`

    "two points" takes two positions (for example to create a barrier from the ground from point 1 to point 2) `Cast(Vector3 point1, Vector3 point2)`

    As you can see there are a lot of different signatures and the only way to generalize it to box/unbox `Cast(object arg1, object arg2)`. Anyone can agree that this is not solution and will lead to bugs and all kinda that stuff.

    The same issues come when you making a combat system.

    `IAttack` interface cannot have similar method `Attack()`, because there are different kinds of attack weapons: ranged, melee, throwable. Bows, swords, any throwable item and they are taking different arguments too

    What do you advise?

    submitted by /u/Xahon
    [link] [comments]

    Any of you familiar with the tool "Auto Hot Key". As a non-programmer, I use this extremely useful and popular tool to increase my productivity. Before I begin "mastering" it, I thought, is there an equally as easy programming language I should learn to master instead, or AHK unique in its own way?

    Posted: 29 Dec 2019 01:06 PM PST

    So for those who don't know, AHK is this very popular tool used to automate things for you in Windows. Just to give you an example, say you have a bunch of images in a folder that you typically open, copy, paste into a word doc, and save it to a pdf....you can automate AHK to do all that for you with something like "ctrl+A on the folder and ctrl+shift+x to start the process".

    Is there a programming language that can more or less do something like that and automate things for you that is easy for a non-programmer to learn, and if so, what language would you recommend? Or do you just prefer I learn AHK really well?

    submitted by /u/recordman94
    [link] [comments]

    What new tech are you planning to learn in 2020?

    Posted: 29 Dec 2019 06:40 PM PST

    What new tech are you planning to learn in 2020?

    submitted by /u/usedocker
    [link] [comments]

    Codecademy vs freecodecamp

    Posted: 29 Dec 2019 11:31 AM PST

    Currently taking courses on codecademy, and wanted to know if anyone has any comparison knowledge between the two. So far, I find that codecademy is good for the fundamentals, yet the further you get the easier it is to get lost due to them wanting you to do everything the exact way they tell you with less relevant explanation.

    submitted by /u/trawww18
    [link] [comments]

    What are the best tech bootcamps?

    Posted: 29 Dec 2019 07:21 AM PST

    I'm looking to make a career change into tech from digital marketing. I want to start by learning python and really need the structure of an online class or bootcamp. I've looked into skillcrush and like the price point, but I don't know if I would be able to finish the program and get a new job. Has anyone had major successes with any online bootcamp or skillcrush, like using just the material from the course to get a new job?

    submitted by /u/DanaDancer
    [link] [comments]

    Tutorial purgatory for so long you're not sure if you enjoy programming anymore?

    Posted: 29 Dec 2019 02:51 PM PST

    I've been conflicted. Initially I was very interested in programming because I wanted to learn about how storytelling can be manipulated when it's through games and felt inspired, but 2 years of tutorial purgatory with no tangible progress a part of me feels sick of programming, but I'm not sure whether this is burnout or me being confused on what I wanted out of programming. I hear my friends talk about the games they make and even when things make absolutely no sense for them they're still having fun figuring it out, while it feels like nails on a chalkboard for me to even type a line of code anymore. I'm not sure if this is because I'm still in the "boring" part of programming and don't have the knowledge to apply to a real project. But I have no clue when I'll figure things out when I seem to be actively irritated programming. I have no clue whether I'm going for the easy way out or I'm finding that I don't actually enjoy programming.

    I'm constantly abandoning messy algorithms because I can't get beyond the drawing board, I don't know what syntax to use for the steps, but once I'm done with a tutorial I can't do anything beyond that specific program the tutorial taught me, so I challenge myself by trying to make something, and the cycle continues.

    As silly as it sounds, I'm not sure when I'm supposed to "like" programming? Maybe this itself is a sign that I've lost the spark that drew me to it since I was always telling myself that eventually once I crossed the learning curve these questions would come to light. I didn't want to say I would quit because I was tired, but if I'm not even finding the motivation to come back anymore I'm not sure whether I should let it go.

    Is this a normal feeling? Is this simply being lazy and stubborn to go back to work, or is this genuine disinterest? How do I tell, in the position I'm in?

    submitted by /u/apple3331
    [link] [comments]

    How you guys deal with eye strain?

    Posted: 29 Dec 2019 01:15 PM PST

    I am still learning how to code and I work as a part-time receptionist (which allows me to practice my code while I am sitting there) but the monitors brightness is at 100% and I can't change it because the way that the monitors are setup. So how you guys deal with eye strain?

    submitted by /u/codebreaker21
    [link] [comments]

    What do you guys think about my RPS mini game on C++?

    Posted: 29 Dec 2019 06:41 PM PST

    How do I create a worldwide streaming service?

    Posted: 29 Dec 2019 11:51 PM PST

    I recently got a very good business idea. I was looking for someone to design a website similar to twitch, but my website will offer something twitch doesn't. I am clueless in web design so I got in touch with a web design company, and they said that they would design the website for me, but that if I wanted to be able to scale the website to the point where it can have millions if not billions of users,I needed to get a server which could support that amount of people. I am clueless in tech and web design, but what would be a good server to use in order to be able to support a large amount of people? Also they said that they would need to charge me $8,000-$10,000 since that type of website is a high performing website, and I can't help but wonder if I'm being ripped off. All help is appreciated :)

    submitted by /u/MeMyselfandIeee
    [link] [comments]

    I am beginning to learn programming. I saw a post about calculating the value of "e", so I tried to do it myself with my little knowledge (Python)

    Posted: 29 Dec 2019 07:42 PM PST

    n = 99999999 print(pow(1+(1/n),n)) 

    n tends to infinity so I just used a big number to approximate the value of Euler's Constant. As a result, I got 2.71828183152252, which is exact for the first seven decimals. It's not a very good code but I am starting. I will keep studying more and more, Happy Holidays!

    submitted by /u/AirPodGoose
    [link] [comments]

    What CS courses/topics to learn as a Math major undergrad interested in Software Engineering?

    Posted: 29 Dec 2019 07:36 PM PST

    I am currently a third year majoring in Mathematical and Scientific Computation. So far I've taken courses up to -Real Analysis 1 (three course series) -Linear Optimization -Differential Equations -Linear Algebra -Vector Calculus -Discrete Math/Intro to Abstract Math -Intro to OOP (in C++) -Intro to Data Structures (in C++)

    And this quarter I am slated to take the following courses -Real Analysis 2 -Probability -Combinatorics

    I will also be required to take three quarters of numerical analysis.

    While I enjoy the material I learn in this major, I don't see myself pursuing work as a mathematician in academia or industry. I've recently gained interest in working in tech and software. Which CS courses/topics should I be taking/learning if I want to break into the software industry upon graduation? Will I have a very difficult time competing against CS graduates for CS roles? How can I mitigate these difficulties?

    Thank you for your time

    submitted by /u/twsift
    [link] [comments]

    Is it true that there are people trying to self teach themselves programming for years, but still can't get a job?

    Posted: 29 Dec 2019 02:27 PM PST

    I was looking up threads about the struggles of becoming a self taught programmer. One of the threads mentioned that there are programmers that have tried becoming self taught for years, yet still could not land a job.

    This is making me worried that there are only certain types of people with the right circumstances who can realistically become a self taught programmer.

    There's three different types of unsuccessful self taught programmers that I've seen:

    1. Puts some effort into becoming a self taught programmer but then gives up.
    2. Self taught programmers that have multiple projects on their resumes, but still don't get jobs.
    3. Can get jobs but not able to hold a job.

    This makes me not want to try. I have less favorable circumstances and I can't even see the factors that affect becoming a self taught programmer.

    What insights do you guys have for this?

    submitted by /u/Former_Practice
    [link] [comments]

    Tutorials or other guides for a Chat App

    Posted: 29 Dec 2019 11:08 PM PST

    Hey guys!

    I've been working on a project that requires some sort of chat in order to work.

    I've followed about 3-4 tutorials that all haven't worked due to my lack of experience in Javascript and Node. I'm waaay my comfortable in something like python or Java but I'd like to make my apps cross platform.

    ANY tutorials that YOU KNOW WORK would be solo friggin helpful right now.

    Thank you sooo much!

    submitted by /u/l33tIsSuperpower
    [link] [comments]

    Becoming advanced with Java

    Posted: 29 Dec 2019 10:54 PM PST

    I feel like I can code pretty well in Java. All of the built in functions I know perfectly well. My problem is when I see someone like ThinMatrix use Java to create a physics engine and make his own games. How do I take my "basic" knowledge of arrays, recursion, class writing, methods etc. and get it to a level of actually being able to make a window or developing a physics engine then creating a game from that.

    submitted by /u/RetlocPeck
    [link] [comments]

    Work on real-time Data Science projects - 70+ Machine Learning Datasets & Project Ideas

    Posted: 29 Dec 2019 10:16 PM PST

    Finding the right dataset while researching for machine learning or data science projects is a quite difficult task. And, to build accurate models, you need a huge amount of data. But don't worry, there are many researchers, organizations, and individuals who have shared their work and we can use their datasets in our projects. In this article, we will discuss more than 70 machine learning datasets that you can use to build your next data science project.

    Machine Learning Datasets

    These are the datasets that you will probably use while working on any data science or machine learning project:

    Machine Learning Datasets for Data Science Beginners

    📷

    1. Mall Customers Dataset

    The Mall customers dataset contains information about people visiting the mall. The dataset has gender, customer id, age, annual income, and spending score. It collects insights from the data and group customers based on their behaviors.

    1.1 Data Link: mall customers dataset

    1.2 Data Science Project Idea: Segment the customers based on the age, gender, interest. Customer segmentation is an important practise of dividing customers base into individual groups that are similar. It is useful in customised marketing.

    1.3 Source Code: Customer Segmentation Project with Machine Learning

    2. Iris Dataset

    The iris dataset is a simple and beginner-friendly dataset that contains information about the flower petal and sepal sizes. The dataset has 3 classes with 50 instances in each class, therefore, it contains 150 rows with only 4 columns.

    2.1 Data Link: Iris dataset

    2.2 Data Science Project Idea: Implement a machine learning classification or regression model on the dataset. Classification is the task of separating items into its corresponding class.Read More

    submitted by /u/VyasBharvi
    [link] [comments]

    Front-End Web Development Course Recommendations?

    Posted: 29 Dec 2019 06:25 PM PST

    Happy Holidays, I am an IT major looking to get into Web Development when I graduate in March. I have a couple of certifications in HTML5 and CSS3 as well as a certification in User Interface Design and SQL (just to throw that in there). Before anyone tells me, I know I'm not going to master Front-end web dev in 3 months. However, I would like to at least build enough knowledge to get my foot in the door. I love the idea of both SD and Web Dev and I particularly enjoy the collaborative effort in an Agile environment. (Which i learned a lot about through the Project+ and ITIL).

    That being said, I was wondering if anyone can point me in the direction of a good Front-end course through Udemy, Youtube, or anything else. Project inclusion is a plus, as I would be able to build a portfolio that way as well. Please feel free to give me any career advice along the way as well. I do respond to direct messages on here.

    TLDR: Im graduating soon and I'm looking for a course to help me build my front-end skills. Built-in projects are a plus for the portfolio.

    submitted by /u/drekast
    [link] [comments]

    Facebook-like pseudocode?

    Posted: 29 Dec 2019 06:22 PM PST

    Hi all, I am a mechanical engineering student towards the end of my degree, so don't plan on switching. However, I am very interested in learning more programming skills without extending my degree. I'd like to learn more specifically in the context of how social media apps are coded. More of a general map or pseudocode, not detailed, and very high leveled. Does anyone know of a resource of this kind? Thanks in advance.

    submitted by /u/Quentin_the_Quaint
    [link] [comments]

    Oauth 1.0 a single legged 401 or 403 error

    Posted: 29 Dec 2019 06:16 PM PST

    Hello,

    The REST API, of the webservice provider, that I am trying to connect to uses the Oauth 1.0, which uses 5 keys to authenticate the consumer application. They are (Consumer Key, Token ID, Consumer Secret, Realm and Token Secret). The server uses a Oauth1.0a one legged authorization. I am using VB.net

    When I try to pass the 'Realm' along with all the other keys and secret as 'authorization header'. I get a 403 forbidden error. If I pass the keys without the realm I get a 401 unauthorized error. How can I successfully do a GET or POST request? I thought maybe, it's because of the format of the keys and changed the order of the authentication headers but I still cannot get past this error. I figured it might be because of a wrong signature or nonce so I tried using the code generated by postman but that failed to work too. Here is my code. Does anyone know how can connect successfully to the API?

    Dim oauth_token = "xxx" Dim oauth_token_secret = "xxx" Dim oauth_consumer_key = "xxx" Dim oauth_consumer_secret = "xxx" Dim realm = "xxx" Dim oauth_version = "1.0" Dim oauth_signature_method = "HMAC-SHA1" Dim oauth_nonce = Convert.ToBase64String(New ASCIIEncoding().GetBytes(DateTime.Now.Ticks.ToString())) Dim timeSpan = DateTime.UtcNow - New DateTime(1970, 1, 1, 0, 0, 0, 0, DateTimeKind.Utc) Dim oauth_timestamp = Convert.ToInt64(timeSpan.TotalSeconds).ToString() Dim resource_url = "https://5403720-sb1.restlets.api.netsuite.com/app/site/hosting/restlet.nl?script=254&deploy=1" Dim baseFormat = "oauth_consumer_key={0}&oauth_token={1}&oauth_signature_method={2}&oauth_timestamp={3}&oauth_nonce={4}&oauth_version={5}" Dim baseString = String.Format(baseFormat, oauth_consumer_key, oauth_token, oauth_signature_method, oauth_timestamp, oauth_nonce, oauth_version) baseString = String.Concat("POST&", Uri.EscapeDataString(resource_url), "&", Uri.EscapeDataString(baseString)) Dim compositeKey = String.Concat(Uri.EscapeDataString(oauth_consumer_secret), "&", Uri.EscapeDataString(oauth_token_secret)) Dim oauth_signature As String Using hasher As New HMACSHA1(ASCIIEncoding.ASCII.GetBytes(compositeKey)) oauth_signature = Convert.ToBase64String(hasher.ComputeHash(ASCIIEncoding.ASCII.GetBytes(baseString))) End Using Dim headerFormat = "OAuth oauth_consumer_key=""{0}"",oauth_token=""{1}"",oauth_signature_method=""{2}"",oauth_signature=""{3}"",oauth_timestamp=""{4}"",oauth_nonce=""{5}"", oauth_version=""{6}""" Dim authHeader = String.Format(headerFormat, Uri.EscapeDataString(oauth_consumer_key), Uri.EscapeDataString(oauth_token), Uri.EscapeDataString(oauth_signature_method), Uri.EscapeDataString(oauth_signature), Uri.EscapeDataString(oauth_timestamp), Uri.EscapeDataString(oauth_nonce), Uri.EscapeDataString(oauth_version)) ServicePointManager.Expect100Continue = False Dim request As HttpWebRequest = DirectCast(WebRequest.Create(resource_url), HttpWebRequest) request.Headers.Add(HttpRequestHeader.Authorization, authHeader) request.Headers.Add(HttpRequestHeader.CacheControl, "no-cache") request.Method = "POST" request.ContentType = "application/json" request.Accept = "application/json" Try Dim response As WebResponse = request.GetResponse() Dim datastream As Stream = response.GetResponseStream Dim reader As StreamReader = New StreamReader(datastream) Dim responsefromserver As String = reader.ReadToEnd If responsefromserver = Nothing Then MessageBox.Show("No response from server") Else MessageBox.Show(responsefromserver.ToString) End If reader.Close() response.Close() Catch ex As WebException MessageBox.Show(ex.Message.ToString) End Try 
    submitted by /u/sawatdeeman
    [link] [comments]

    [Question] Which should I learn golang, Kotlin, Rust?

    Posted: 29 Dec 2019 07:11 AM PST

    They seem all be doing well on Stack Overflow dev survey.

    Criteria

    • functional support
    • static typing
    • likely to survive in the future
    • decent amount of standard libraries
    • allows to write code fast
    • strong community behind

    I want to go into startups and hoping to pick up a language which will some day help me to build maintainable, scale-able products.

    submitted by /u/1amrocket
    [link] [comments]

    gpl 2.1 question

    Posted: 29 Dec 2019 09:24 PM PST

    If I am using a file from a library that uses GPL 2.1 for my own code, do i have to cite it in my README file?

    submitted by /u/ZealousidealRegion1
    [link] [comments]

    C# and SQL db combined to make basic programs [Looking for Tutorial/Course]

    Posted: 29 Dec 2019 09:21 PM PST

    Two years ago I went to a tertiary level institute where, during the first year, people are taught to code basic programs in C# (with Visual Studio), connected to SQL Server databases

    These basic programs enabled the users to, for example, through a simple GUI, enter the following data :

    medical appointment information (date, time, cost)

    doctor information (medical specialty, name, etc.)

    patient information (name, age, gender)

    The program would then save this data to the SQL db and you could click some buttons in order for the program to read the db contents and show you the previously saved information, and you could also edit or erase the saved information with other buttons

    Problem is at the end of the first year of attending this institute, I started developing Schizophrenia-like symptoms

    Currently I have all the symptoms under control, but for about a year I was too lost and confused with the voices, hallucinations, irrational fears, delusions, etc., so I lost the ability to easily code these kind of programs and currently don't remember much about the logic behind the code, I feel like most of the information is in my head but there are too many gaps and I need to somehow relearn to code these kind of basic programs almost from scratch

    So, my questions is: is there any free (or cheap) course, book or tutorial I can use to relearn to code these kind of basic programs? I'd like to avoid having to pay again to attend the tertiary level institute, since economic situation is not so good

    I have literally 0 math knowledge, and that paid course I attended to required no previous math knowledge apart from what you learn in elementary school in order to code these kind of software

    I need to be able to code these kind of basic programs again in order to get a job as soon as I can

    Thanks

    submitted by /u/Ch4rl35DW4rd86
    [link] [comments]

    No comments:

    Post a Comment