• Breaking News

    Tuesday, August 28, 2018

    First website learn programming

    First website learn programming


    First website

    Posted: 28 Aug 2018 06:56 AM PDT

    This is my first website.. I just started learning a couple weeks ago and I wanted to put it online for fun. Also, idk why but the CSS for <ul> navigation is messed up if you view in chrome

    www.marketgurupro.com

    Edit: couple of things I've fixed since I've posted: the nav for chrome compatibility (still can't get contact page table to center), line height, borders, default margins.

    Next, I'll look into fixing the nav for mobile- think I'll need to learn media queries for this.

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

    Easiest Way to learn Object Oriented Programming w/ Java?

    Posted: 28 Aug 2018 07:23 PM PDT

    Like the title says, I need to learn Object Oriented Programming with Java for a class in university.

    *Also, is their a way to learn memory allocation and all that calloc/malloc stuff for C easier.

    Thanks!

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

    Students who have to write a program over the semester, what is your idea?

    Posted: 28 Aug 2018 09:20 PM PDT

    One of my pre req courses required us to come up with a program and add to it with each week as we learned more and more. Now that I'm a year past that I have 2 courses requiring the same thing, although they are more in depth and one is with a group.

    When I took my intro class I struggled to come up with ideas and brainstorm, and eventually settled on writing a budget tracking program. It was fairly weak in hindsight but I still have it and intend to improve it and add a GUI to it during this semester.

    Brainstorming in general and coming up with ideas for programs to write seemed tough to me at the time, and it still does, and that is my reason for posting this. As a programmer I felt I wanted to come up with something original, but when I accepted how new I was it made much more sense to get an idea, make a basic model or prototype, and then continue adding to it and changing it to be more efficient.

    If anyone sees this as me fishing for homework ideas, don't. I have my own ideas and have been in the SWE program, enough that I have a group of friends for something like that. When I first started, however, I found it tough to come up with something that felt worthwhile. Discussion helped me and many of my classmates, and that is the point of this post.

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

    Looking for someone that would like to learn and help on the development of this video game.

    Posted: 28 Aug 2018 08:01 PM PDT

    Looking for someone that would like to learn and help in the development of this video game.

    In the Oasis Kingdom, you can be a king, recruit an army and control castles.

    Intro

    More than ten unique parts including forest, desert, volcano and more. Each section having multiple castles/buildings to fight over and conquer. There will be challenging battles that will require you to think and plan strategies for each of them. When a soldier dies it's permanent while you can recruit more you need to be a good commander because your funds are limited. Conquer all the castles on a map to unlock the boss battle and move on to the next map. The Oasis Kingdom is a strategy game with an open map where the player can roam around, attack enemies and siege castles. Battles are turned based with the option to make them automatic.

    Characters

    Each character will have different stats such as Hit points, attack range, attack factor, defense factor, movement points, speed, and action points (per turn). This stats will be different depending on the character, for example, a warrior with a shield will have high hit points and defense while a ranger will have a high range, high attack and low defense & hit points. Current controllable characters: warrior, ranger, horseman, and spear-warrior.

    Terrain and Levels

    There will be at least ten sections each with more than two conquerable buildings. The terrain will be different for each of them, on some rangers characters will have cover and the advantage while in others. In some instances, the terrain will be interactive and even while changing. In the forest, you will see medieval castles, while in the desert you can see the pyramids. In addition, there will be a secret (easter egg) section.

    Inventory/Unit System

    You will be able to recruit different units with different skills using gold. You gain gold by defeating enemies and controlling castles. Its permanent death, meaning when a unit dies you will lose it. The difficulty also increases the more castles you own

    Heroes - coming soon

    The player will have the ability to pick a hero. These are customizable characters that will have the ability to level up and you will decide how to increase its attributes. In addition, they will have additional skills to power up your army.

    download link: https://play.google.com/store/apps/details?id=com.AlexSW.WarTB

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

    Resources for learning low-level graphics programming? (Assembly?)

    Posted: 28 Aug 2018 07:45 PM PDT

    I don't know what happens when pixels render or how the program knows where on the screen something should appear on the device screen. Are there any resources that teach low-level graphics programming?

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

    Tip for someone about to graduate in a year?

    Posted: 28 Aug 2018 11:01 AM PDT

    So I'm about to graduate with a BSIT degree. While my stuff focuses heavily on networking and cyber security. I really wanted to be a coder from the start. I enjoy it more, and I honestly believe it's a better career path. I have made some Android/iOS apps, python scripts, websites, and minor things like that. But I haven't messed around with it for a good year due to the difficulty of the last few semesters (project management classes) and lack of push. Because I have about a year (end of summer 2019) to go. I'm wondering a few things.

    • What type of coding projects should I think about doing? (This is one of the hardest things for me to figure out since I don't run across too many problems that can be solved with coding. That or it is something crazy like somehow using AR to see where water pipes are under ground (something I tried doing but found to be way way way over my head).)
    • Which coding languages should I focus on? (I have experience with Java (which I know a bit more than the others due to Android), Objective C, C#, Python, and HTML. There could be a few others, but they aren't coming to mind. I don't have strong feelings at all between them.)
    • What online sites should I use to help me out? (I've tried Treehouse in the past, but the content there seems to be lacking. And I haven't heard in a really long time of anyone getting a job from that alone. I've tried free code camp, but the material is super super dry. (I am going to try to pick up from what I last was on free coding camp))
    • Do you think certs will help me at all?

    It should be noted my overall hope is to get a fully remote position if all possible. I live on a farm, and I would like to keep doing that as a side thing. When I was a bit more active in coding a few years back I gotten offers to places like Hong Kong, but again I have no desire to move. I think at worst I hope to be able to pick up a job in the Raleigh NC area or Wilmington NC area. BTW this is my LinkedIn https://www.linkedin.com/in/craigbennettii/ I'm going to be working on a real portfolio later. I'm going to be using this video to help me out on that. Any tips here will be welcomed. Oh and if anyone is wondering why I'm getting a degree more in line with networking than coding. All the coding degrees in the local universities required me to physically be there, and I couldn't afford that. On top of that, this degree is a 2x2 from my previous degree. The benefit to it is I understand cyber security to a point and network engineering.

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

    philosopher learning to program seeking advice on concepts (big post, im sorry in advance)

    Posted: 28 Aug 2018 01:53 PM PDT

    Hey everybody,

    Some days ago I decided to start learning programming. I've had some experience in the past, around 14 years ago while in school, but only got to the part of doing some calculators to assist me on some video games I played back then. Anyway, I asked some friends for advice and some of the suggested I'd start learning some languages like python and c#. One of them also suggested this set of lectures (https://www.youtube.com/watch?v=y62zj9ozPOM&list=PLhQjrBD2T3828ZVcVzEIhsHVgjANGZveu).

    So far I've been doing quite fine with c#, learning some things here and there and doing small projects which is fine, but I feel I could do a lot better. What I am doing mostly is learning by doing. So whenever I do something, I ask myself what does the code really do and how would the end result change if I were to modify it a lil bit. Whenever I have an issue I look it up online and find different ways to solve the issue. I try to understand first why I have the issue in the first place and then what all of those solutions have in common.

    I realized then that I didn't really understand what most of the words I used while coding actually meant. I know how to use if-then statements, how to access a database and how to send a string from one window to another one, yet I feel I don't really know why that works. I mean, I know what kind of words I have to place there and I feel like I also know what kind of words not to use there, and that's mostly by trial-error'ing my way out of it.

    Now this is where I explain why I mentioned I'm a philosopher in the title. I've studied phil at uni and then also finished all my classes for my masters degree. I've specialized lately in analytic philosophy and logic so I like to think that my strengths are critical thinking and solving problems by looking at them logically. One thing both of these have in common (and I hope programming does too) is that by grasping some basic yet fundamental concepts, everything down the line is somehow easier to grasp, even specialized concepts. For example, if you were to learn a new language and someone mentions two words you don't know in that language but explains to you what their meaning is you'd probably get an idea of how and when to use them. But if that person also mentioned that it's an adjective or an adverb, and you know the meaning of adjective and adverb, then you are more likely to know how not to use them in a sentence.

    Straight to the point and TL;DR:

    So basically I am asking for the following

    First, I want to know then is if there is any kind of book or online resource that I can use to learn that. That is, anywhere that explains, for example, whats a class, a constructor, a method, etc. Some of these words are probably not like the other, so I what to know what type of words/concepts there are and how they interact with and within each other.

    Second, is this really a decent strategy at learning programming? I figured that I'd rather learn programming and not just programming languages (if you learn one, you learn the second on? and vice-versa?)

    Third and last, if I ever manage to grasp some of the basic concepts, should I stay learning c# or should I move to another language.

    Thanks a lot in advance and sorry for the long post.

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

    CS student, one year of programming, going to start an internship and need to build a cross-platform mobile app, which techno to use?

    Posted: 28 Aug 2018 07:55 AM PDT

    Hello reddit, I've been a student in CS for a year now (had no prior dev experience). I only know well one language so far, which is C. I have some general knowledge of HTML and CSS, but my web experience is almost non-existent.

    I'm going to start an internship in a startup in a few days, and my goal will be to develop a cross-platform mobile app. So no pure Java/Kotlin or Swift. I'm stressing the fact that the company is a startup, meaning they have no other mobile developers, and I will have to learn on my own, won't be able to ask someone for tips or help. The app won't be a game, it will be something that allows users to take online classes and communicate in groups. Think something like discord.

    I've been looking into numerous frameworks, and I've been trying to learn NativeScript (and Javascript as well, for obvious reasons) for a month now. Javascript is going well, I've almost completed the freecodecamp JS certification. However Nativescript is an absolute nightmare. There are very few tutorials (the main one is using Angular and Typescript), a small community and few resources out there. The company that employs me insisted that I should use Nativescript because they are using VueJS for their website or something and I'll be able to reuse the views for the app.

    My problems are the following:

    1/ NativeScript is a pain to learn. Tutorials and courses are almost non-existent, while something like ReactNative is much more used and have a richer ecosystem.

    2/ I want to use that internship opportunity to learn a framework that has a good market value. Angular seems inferior in that aspect.

    3/ I'm freaking the fuck out because I've been trying to learn NativeScript for a month and I'm getting nowhere. I feel like I will be unable to complete the app in the 6 months internship period.

    Should I try to convince my employers to use a different framework such as Xamarin, Cordova, ReactNative or whatever else? Can anybody recommend me some solid tutorials to get me started on building a cross-platform mobile app? Should I just throw myself out of the window?

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

    [C] How is casting int* to char* related to bytes in this example?

    Posted: 28 Aug 2018 06:28 PM PDT

    I found this on a website quiz. I get how ptr1 and ptr2 are 5 addresses apart so ptr2-ptr1 is 5. But I don't understand why the output for (char * ) ptr2 - (char * ) ptr1 is 20.

    int* ptr2 originally points to the address of array index 5, which contains the int value 60 or hex 0x3C. On casting ptr2 to a char*, the address it points to remains the same, even though the value 0x3C should now be interpreted as char '<' . So shouldn't subracting ptr2's address with ptr1's address after the cast also give 5? I'm missing something fundamental here.

    #include<stdio.h> int main(){ int arr[] = {10, 20, 30, 40, 50, 60}; int *ptr1 = arr; int *ptr2 = arr + 5; printf("Number of elements between two pointer are: %d.", (ptr2 - ptr1)); printf("Number of bytes between two pointers are: %d", (char*) ptr2 - (char*) ptr1); return 0; } 
    submitted by /u/CQBiatch
    [link] [comments]

    I've created a website that sends weekly user interface challenges!

    Posted: 28 Aug 2018 06:34 AM PDT

    Hey there!

    As someone who enjoys practicing web design in their free time, I've created a simple website (that still needs some work to be completely fair) that sends you a weekly user interface/web design for you to practice re-designing. I believe this helps a lot in that when re-designing, you will be forced to use your own fonts, icons, images, and color palettes to get a similar look, in doing so, you will definitely catch an eye for what works and what doesn't.

    You can find the website here: https://muchkler.github.io/UIHubs/

    and to help you out with your challenges, there is also https://muchkler.github.io/designHub/ with a lot of design resources.

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

    What, exactly, is the "Model" in programming architectures (e.g., MVC, MVP, MVVM)???

    Posted: 28 Aug 2018 07:31 AM PDT

    I was always under the assumption that the Model is JUST the data in the database (e.g., the MySQL, SQLite, Oracle, etc. database itself), and that the View is JUST what the user sees and interacts with (e.g., the HTML, Android view XML, Java Swing classes, etc.), and that the other bit(s) (henceforth referred to as OB) are the "glue" between the Model and the View (e.g., C, P, VM, etc.).

    I thought that the OBs were what make the database queries, performed all the calculations (e.g., convert pounds to kilograms), generate the message to send to one of Amazon's warehouses that I want a book, tells the View to update itself, decodes an MP3 to play, etc.

    As I'm sure you all know, doing a Google search on this will provide a basic similarity between answers (i.e., all agree the Model has to do with data), but after that they all diverge somewhat.

    I realize that I will probably get conflicting answers here, but I am hoping to get a discussion going so I can try to make this gel in my brain.

    Thanks!

    submitted by /u/My-Work-Reddit
    [link] [comments]

    What book would you recommend for C Sharp?

    Posted: 28 Aug 2018 01:09 PM PDT

    Got previous experience with python, sas and have a very mathematical background so was wondering if someone could recommend a good book, with some good explanations and lots of code examples, to learn C Sharp that would be amazing.

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

    I keep seeing the term “modern c++”

    Posted: 28 Aug 2018 04:15 PM PDT

    Anyone care to explain what modern c++ is and how it's different than the traditional way c++ is taught

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

    [C++] What to do after learning the basics

    Posted: 28 Aug 2018 11:27 PM PDT

    Hello.

    I know C++ quite a bit. I can solve almost any Hackerrank problems.

    Here's the deal, I want to learn more. I am collage student learning programming on my own. What should I do/learn next?

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

    Best/fastest way to learn C++ if I already know other languages?

    Posted: 28 Aug 2018 11:20 PM PDT

    I'm pretty comfortable with Java and Python and know programming concepts already. However, I'm looking to participate in programming competitions such as USACO and I heard that C++ is the best language to use.

    On the USACO page, it lists C++ and C++11 separately, what's the difference and which should I learn?

    Secondly, where would I go to learn it the quickest since the contests will be happening soon? Assuming that I already know most of the concepts, I pretty much just need to learn syntax and some C++ specific stuff right?

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

    Guide for beginners

    Posted: 28 Aug 2018 02:04 PM PDT

    I wrote a little guide for beginners to get started with coding. It includes advice, a couple of free online resources and some book suggestions for beginners.

    read more here:

    https://tech-brew.net/learning-how-to-code

    cheers

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

    How bad is my code? (Pt. 2)

    Posted: 28 Aug 2018 07:28 PM PDT

    Four months ago I posted this thread here and some pretttty ugly code with it. I got ALOT of good feedback, and I've been trying to work on making my code better, and actually ended up starting that project from scratch recently, trying to incorporate some of what I was told in that thread. I am not super far into it, but is my OOP any better now? What mistakes am I still making and what can I do better?

    https://github.com/Chudleyj/AlgoBot

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

    What's you guy's opinion on Pluralsight

    Posted: 28 Aug 2018 07:12 PM PDT

    My parent's company's project lead got his whole team a free subscription to encourage them to expand their skillset and my parent gave me the login and told me to go nuts. Is it any good?

    Did Python, doing Java and will do C in uni, and thinking of learning HTML online.

    So what's you guys take on Pluralsight. Good resource? Avoid?

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

    [Need Advice] Learning web development

    Posted: 28 Aug 2018 11:47 AM PDT

    Hello everyone,

    I was wondering whether some of you could orient me towards a path to learn some web development. A little bit of background: I program almost daily in c++ and python, so I am not a complete beginner. I have even dabbled a bit into Haskell if that reassures you.

    However, when it comes to programming for the browser, I am at a complete loss. First of all, I cant get my head around as to why I need to learn three languages: HTML, CSS and Javascript. I have tried to surmount this hindrance many times in the past to not much avail.

    Whenever I try again to get back into it, I remark a proliferation of new JS frameworks and what not. So I end up throwing my arms in the air and turning my back to the whole endeavor.

    However, recently I have become interested again in the idea but with a concrete aim in mind. I do a lot of data-analysis (STEM grad student), but I would like to be able to present my work in a more interactive fashion which can be easily shared by people everywhere. These two constraints are ideally solved by the web since I can just send a link to my work without the person at the other end having to set up some specific environment.

    So my question really is: how does one go about doing web-development in 2018? Where do I even begin? I looked into React and Elm. Would that be a good place to start?

    Also, it would be great to have some definitive resources on understanding the whole DOM idea, and the front-end/backend separation. I am aware that it is probably not as relevant to web development, but I want to have some kind of decent mental model.

    Thanks for your help. Cheers.

    Edit: added further details.

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

    Ask for help learning C

    Posted: 28 Aug 2018 11:51 PM PDT

    Hello, I'm new to programming world and I need some tutorial. Does anybody knows any e-book or youtube channel for noobs?

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

    Can someone explain to me why my program isn't working?

    Posted: 28 Aug 2018 11:37 PM PDT

    I'm trying to build a program that calculates how much someone spent on a shopping trip.

    include<iostream>

    using namespace std;

    int main(void)

    {

    int x=0;

    int y;

    cout << " Please enter the amount for each grocery item and press ENTER ";

    cout << " How much did the milk cost? ";

    cin >> y;

    x = x + y;

    cout << " How much did the soap cost? ";

    cin >> y;

    x = x + y;

    cout << " How much did the eggs coast? ";

    cin >> y;

    x = x + y;

    cout << " How much did the bread cost? ";

    cin >> y;

    x = x + y;

    cout << " How much did the potatoes cost? ";

    cin >> y;

    x = x + y;

    cout << " How much did the butter cost? ";

    cin >> y;

    x = x + y;

    cout << " The total cost of your purcahses was " << x << endl;

    return 0;

    }

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

    Want to learn how to code

    Posted: 28 Aug 2018 11:35 PM PDT

    Hey I'm new and i want to learn code if someone wants to teach me let me know you can add me on discord

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

    What font type is this?

    Posted: 28 Aug 2018 11:34 PM PDT

    What type of font is [this](https://i.stack.imgur.com/NvyDZ.png)? [-source](https://designshack.net/articles/graphics/3-web-design-rules-you-should-break/)

    It looks the same in [Gmail login page](https://i.stack.imgur.com/MH8JE.png), so I [search](https://www.google.com.ph/search?ei=KTaGW_i0FNmuoASO9KXoCA&q=what+font+type+is+use+in+gmail+login+page&oq=what+font+type+is+use+in+gmail+login+page&gs_l=psy-ab.3...2311.30764.0.31267.45.41.2.2.2.0.170.4461.1j33.34.0....0...1c.1.64.psy-ab..8.33.3871...0j0i67k1j0i131k1j0i131i67k1j0i13k1j0i13i30k1j0i22i30k1j33i22i29i30k1j33i10k1j33i160k1j33i21k1.0.Qp_6pCmWhFE) it up, but I can't find it from the results.

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

    CSS Background image not showing up in Android device

    Posted: 28 Aug 2018 07:09 AM PDT

    I am kind of a beginner in web dev, I was making my own website. The website can be accessed here

    https://www.shafirpl.com/

    The problem is when I load the page on my iPhone(including both chrome and safari) or in desktop environments(such as MacBook) the background image shows up. However, on an android phone (tested with pixel xl and Samsung galaxy s8+) the background image doesn't show up. Which is even more strange is that I used chrome in my iPhone 7 plus, in which the background image loaded up perfectly, but using same chrome browser on pixel xl won't load the background image.

    I have included my relevant part of HTML and CSS code. The website is being served using express server(node js), and I used bootstrap as well as my own CSS

    Here is the css file

    body{ background: url(/images/image3.jpg); background-size: cover; background-position: center; font-family: 'Lato', sans-serif; color: orange; } #content{ text-align: center; /* This will bring down the content to the middle of the page Instead of giving a hard number, using percentage will make it more responsive, since it will resize the padding to 25% according to the screen view or avialable screen area */ padding-top: 25%; /* This will set the blur effect */ text-shadow: 0px 4px 3px rgba(0, 0, 0, 0.4), 0px 8px 13px rgba(0,0,0,0.1), 0px 18px 23px rgba(0,0,0,0.1); } 

    Here is the ejs/html code

    <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Shafi</title> <!-- This is the google font lato --> <link href="https://fonts.googleapis.com/css?family=Lato:400,700" rel="stylesheet"> <!-- Bootstrap Cdn --> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous"> <!-- This is our own style sheet, we are adding it after bootstrap so that it has highest precedence compared to bootstrap, remember in css, the one comes late has more precedence --> <link rel="stylesheet" href="/stylesheets/homepage.css"> <!-- Fontawesome cdn --> <link href="https://use.fontawesome.com/releases/v5.2.0/css/all.css" rel="stylesheet"> </head> <body> <!-- The navbar --> <nav class="navbar navbar-inverse"> <div class="container"> <!-- Brand and toggle get grouped for better mobile display --> <div class="navbar-header"> <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand" href="/">Shafi</a> </div> <!-- Collect the nav links, forms, and other content for toggling --> <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1"> <ul class="nav navbar-nav"> <!-- This active class will make the home appear highlighted or active --> <li class="active"><a href="/">Home</a></li> <li><a href="/about">About Me</a></li> <li><a href="/experience">Work Experience</a></li> <li><a href="/protfolio">Protfolio</a></li> <li><a href="/education">Education</a></li> </ul> <ul class="nav navbar-nav navbar-right"> <li><a href="/resume" target="_blank"><i class="fas fa-file"></i> My Resume </a></li> <li><a href="/contact"><i class="fas fa-envelope"></i> Contact</a></li> </ul> </div><!-- /.navbar-collapse --> </div><!-- /.container-fluid --> </nav> <!-- This is for the background image --> <div class="container"> <div class="row"> <div class="col-lg-12"> <!-- Centering everything with this div --> <div id="content"> <h1>Hello World! This Is Shafi</h1> <h3 class="bolder">Student & Passionate Software Engineer</h3> <hr> <a href="/about"><button type="button" name="button" class="btn btn-default btn-lg" href="/about"><i class="fa fa-laptop-code"></i> About Me</button></a> </div> </div> </div> </div> <% include ../partials/footer.ejs %> 

    Can anyone help?

    Thanks

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

    No comments:

    Post a Comment