• Breaking News

    Thursday, April 29, 2021

    I spent three days and 15-20 hours trying to find a good TDD tutorial for front-end development in javascript for my freelance work. I finally found this, and it's amazing. Comprehensive and extremely well written. learn programming

    I spent three days and 15-20 hours trying to find a good TDD tutorial for front-end development in javascript for my freelance work. I finally found this, and it's amazing. Comprehensive and extremely well written. learn programming


    I spent three days and 15-20 hours trying to find a good TDD tutorial for front-end development in javascript for my freelance work. I finally found this, and it's amazing. Comprehensive and extremely well written.

    Posted: 28 Apr 2021 10:22 AM PDT

    https://outsidein.dev/about-this-guide.html

    The author starts from the very beginning, with gathering client stories, and steps through a full Agile workflow, from kanban board to CI/CD to finished product, using outside-in TDD each step of the way. He talks in depth about why and how to use the outside-in approach, while integrating instead of abandoning unit tests. At the end there's a "where to go from here" with useful recommendations, and he's got a Gitter set up and appears to be responsive on it. It's fantastic. I can't believe it's free.

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

    I’m just now understanding Git/GitHub and I feel like I’ve wasted the last 7 months

    Posted: 28 Apr 2021 08:14 PM PDT

    Word to those just starting: LEARN GIT

    I've been slowly teaching myself web design and web development for the last 7 months, and when I first got started I read that using GitHub was important. It showed your progress for future employers and how active you are in your code. So of course I made a profile and did a quick look on how to make repos and upload stuff, but I did not understand at all what I was doing.

    I started going through several casual classes and working on my own projects and I learned so much about basic html css and vanilla js. A lot of the projects demonstrated that, but I wasn't tracking them correctly in GitHub. The last two days I sat down and REALLY learned Git and GitHub; I was horrified. I realized all my hard work didn't reflect on my page. I realized all the times I completely restarted a site from scratch was unnecessary. It almost feels like starting from scratch.

    The good part about this is that I know how to use Git effectively in all my future projects, and I think it's the coolest tool in my arsenal. Plus, I can share my failure with others who might fall into the same trap. So yeah, if you're just starting out, PLEASE LEARN GIT AND GITHUB.

    Here's a few links to some awesome tutorials and pages!!

    Learn Git in 15 Minutes Video

    Intro to Git

    Learn GitHub in 20 Minutes Video

    Intro to GitHub

    submitted by /u/35boi
    [link] [comments]

    I think I finally solved what has kept me from learning

    Posted: 28 Apr 2021 09:43 AM PDT

    tl;dr: None of the Python learning resources I used gave any hints about how to proceed after finishing their course, and didn't hardly attempt to teach modules and libraries, so I only had the tiniest picture of what tools were available in the language.

    . . .

    I've tried learning to code for the good part of six years now. I started on Codecademy's Python course, got discouraged, left it on the backburner for a year or two to focus on high school, then tried again in my first year of college by reading books, and it still eluded me how a person could perform any useful tasks through coding without being a rocket scientist. I plan to go into a Computer Science major after getting my Associate's degree, so it really had me down that I couldn't even grasp something simple like reading and writing files in a language I had been trying to learn for more than a quarter of my whole life.

    Recently, I decided I wanted to give it another try, to start fresh. I ended up on LinkedIn Learning both because the delivery of its courses appealed to me way more Coursera and Udemy, and because I prefer paying a monthly fee and doing courses at my leisure instead of forking over a down payment of $100+ for something I might not finish on time. I speedran a Python basics course, most of it was familiar but classes and objects were almost new to me.

    After that, I knew my next step would be to find a specific task or project that I could automate or improve upon using Python. Well, I'm proficient in Excel, and as far as in-demand skills that's way up there, so I decided to take a class in using spreadsheets with Python. Up-front, I expected the exercises to be some nightmarish wall of code like the Codecademy lessons required for simply storing and modifying lists of strings, ie the battleship game lesson.

    As soon as the lesson started up and the instructor said to install a few modules for handling Excel files, I learned this wasn't the case. You should have seen the look on my face when he wrote an entire .xlsx sheet to the console with one simple built-in method from openpyxl, then modified and saved a copy of that same file with less than fifteen lines of code in all. "Is this what modules are?", I thought. All of the lessons I had taken in the past explained built-in modules as a concept, but in execution all that the exercises ever demonstrated were a few math functions or perhaps a single call of the randint function and that was it.

    Hopefully, something useful can be gleaned from my personal troubles. I floundered in most programming learning environments because they led me to believe that you had to basically reinvent the wheel any time you had to do anything more complex than performing math operations on the console. Once I accomplished learning the basics, I felt I had nowhere to go. Yet this latest course has taught me to perform more complicated tasks than ever before by merely knowing the names of some built-in methods and functions. For the first time I feel that I'm developing a useful skill instead of endless syntax and jargon.

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

    Other than Game Development, where is C++ used in the industry mostly?

    Posted: 28 Apr 2021 04:36 PM PDT

    I am pretty curious to what C++ is used in other than game development. I am currently learning C++ for Game Dev just as a hobby and also learning it for CP(Competitive Programming) with some Desktop Dev and a bit of embedded system. I know what C++ is used for but idk where its used other than gaming mostly on the industry?

    My first language so pretty curious about it as my university starts next year in CS so excited.

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

    Is it possible to change the language of a webpage using Ajax call?

    Posted: 28 Apr 2021 10:42 PM PDT

    I want to give people option to change the language, but there should not be page reloading. I tried doing it using Ajax, but I could not succeed. Is there really no way?

    Here is my Code (I used Laravel ,but I want a generalized statement)

    Blade

    $formLang=Session::has('formLang')?Session::get('formLang'):'eng';

    Selected Language

    <select name="form_language" id="form_language" onchange="langChange()" class="form-control2">

    <option value="eng" u/if($formLang == 'eng') selected u/endif>English/ଇଂରାଜୀ</option>

    <option value="de" u/if($formLang == 'od') selected u/endif>De/ଓଡିଆ</option>

    </select>

    Script

    function langChange(){

    $.ajax({

    type: 'POST',

    'url' : '{{url("setPageLang")}}',

    data:{'lang':$('#form_language').val()},

    success: function(results) {

    //$("#maskid").hide();

    if(results.message =="success"){

    // location.reload();

    console.log(results.lang);

    }

    //console.log(results);

    },

    cache: false,

    contentType: false,

    processData: false

    });

    }

    Controller

    public function setGramPanchayatLang($params1){

    $lang=$this->request->lang;

    echo $lang;

    $this->request->session()->put('formLang',$lang);

    $data['message']='success';

    $data['lang']=$this->request->session()->get('formLang');

    return response()->json($data);

    }

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

    Do you absolutely have to be passionate about software?

    Posted: 28 Apr 2021 11:38 AM PDT

    Hi, I often see people say that the main thing is that you have to be passionate about writing software, and you won't succeed if you're not. How true is that?

    Don't get me wrong, I don't hate writing code, but am I passionate about it? I don't think so, can I spend 8 hours straight coding at work, and then some in my spare time after work? Definitely not!

    I do enjoy the challenge it brings, I feel great after working few hours on a issue that I end up fixing eventually, apart from that the good career prospect with safe, stable and well paid opportunities are the main driving forces for my motivation to learn programming. I can't imagine that somebody sits through 10 hour tutorial and watches somebody write code and then saying he enjoys it?

    Are all people who work in software are passionate about it? I'm not really taking about FAANG engineers who make a bank, but regular software developers. What's your honest take on it? Should I just give up and try to find something different?

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

    Is this kind of guilt common?

    Posted: 28 Apr 2021 11:50 PM PDT

    I've learning C programming since a month ago, and the lecture taught me notion of merge function algorithm.

    However, the lecture didn't show me how it is implemented as code. So I tried to figure out how for few days and I failed. So I looked up on the internet about how it is implemented and I finally figured out but I feel kind of guilty that I couldn't make it out on my own...

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

    What does one do after deciding what data to track in an app?

    Posted: 28 Apr 2021 10:37 PM PDT

    I'm doing a project for fun with some people all over the world and we built an app and I decided what data to track that might be useful for future usecases.

    They decided they don't wanna use anything such as Firebase but build their own tool based on what I want.

    I gave them a list of stuff I want to track and what attributes the things should have. For example buttonclicks: {Id_User, Id_Button, Timestamp}.

    But they said they want a list of parameters too, and gave me a link as an example, it's in my first comment on this thread. They said that one they have that, they'll implement it.

    I know I sound incompetent and communication is a bit difficult with them because of the language barrier, but what do they mean? What else should I write?

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

    Any Critique On My Beginner Python Code?

    Posted: 28 Apr 2021 08:10 PM PDT

    Hello!

    I'm self learning Python and I've been focused on APIs. I made a little script that checks whether or not a Formula 1 driver by the name of Max Verstappen won the most recent race. If he did, it prints something and opens a youtube link with one of his fan made songs. If he didn't win, it just prints something stupid.

    I'm mostly concerned about my json parsing/extraction. Is there a better way to do it other than how I did it? I was reading a bit about looping through the JSON response but I'm not sure if that even applies here and if it did, if it would've made the code more efficient.

    Here is the API I'm using: http://ergast.com/mrd/methods/results/

    Here is my code:

    import requests import json import webbrowser response = requests.get("http://ergast.com/api/f1/current/last/drivers/max_verstappen/results.json") #print(response.status_code) json_data = json.loads(response.text) verstappen_position = json_data['MRData']['RaceTable']['Races'][0]['Results'][0]['position'] #print(verstappen_position) def win_check(): print('Did Verstappen Win the last race? \n') if verstappen_position == '1': print('MAX MAX MAX SUPER MAX MAX SUPER SUPER MAX MAX MAX') webbrowser.open('https://youtu.be/43HCYSXZ9GI') else: print('Get in there, Lewis') win_check() 

    And here is the full JSON response:

    { "MRData": { "RaceTable": { "Races": [ { "Circuit": { "Location": { "country": "Italy", "lat": "44.3439", "locality": "Imola", "long": "11.7167" }, "circuitId": "imola", "circuitName": "Autodromo Enzo e Dino Ferrari", "url": "http://en.wikipedia.org/wiki/Autodromo_Enzo_e_Dino_Ferrari" }, "Results": [ { "Constructor": { "constructorId": "red_bull", "name": "Red Bull", "nationality": "Austrian", "url": "http://en.wikipedia.org/wiki/Red_Bull_Racing" }, "Driver": { "code": "VER", "dateOfBirth": "1997-09-30", "driverId": "max_verstappen", "familyName": "Verstappen", "givenName": "Max", "nationality": "Dutch", "permanentNumber": "33", "url": "http://en.wikipedia.org/wiki/Max_Verstappen" }, "FastestLap": { "AverageSpeed": { "speed": "227.960", "units": "kph" }, "Time": { "time": "1:17.524" }, "lap": "60", "rank": "2" }, "Time": { "millis": "7354598", "time": "2:02:34.598" }, "grid": "3", "laps": "63", "number": "33", "points": "25", "position": "1", "positionText": "1", "status": "Finished" } ], "date": "2021-04-18", "raceName": "Emilia Romagna Grand Prix", "round": "2", "season": "2021", "time": "13:00:00Z", "url": "http://en.wikipedia.org/wiki/2021_Emilia_Romagna_Grand_Prix" } ], "driverId": "max_verstappen", "round": "2", "season": "2021" }, "limit": "30", "offset": "0", "series": "f1", "total": "1", "url": "http://ergast.com/api/f1/current/last/drivers/max_verstappen/results.json", "xmlns": "http://ergast.com/mrd/1.4" } 
    submitted by /u/kbk2015
    [link] [comments]

    How do I negate a Google Query? I want the opposite results of what I would normally be served.

    Posted: 28 Apr 2021 07:09 PM PDT

    I like to think about random stuff, and one day the random stuff I was thinking about was... Google Searches.

    Well not really, but I was thinking about how easily our realities can be manipulated by the information presented to us online. Then this made me think about how dangerous online echo chambers are where you're fed information that just validates your opinion. This stuff scared the life out of me... As someone with a huge love for not only logic, but of pursuing knowledge and some sense of truth, this seemed to be a great way to come to stale ideas and stunt your mental growth.

    So I wanted to work on a little project for myself, and potentially others in the form of a chrome extension: an extension that shows you the inverse results for some form of the inverse of your query. Essentially alongside the normal search results, this extension should show you links that oppose the normal search results. This way people can expose themselves to a balanced set of results.

    I'm not really sure how to tackle this problem, so I'm hoping someone might have some insight. I was thinking to find a way to convert a natural language question to atoms, and then negate the query's atomic items. I know this is not gonna be easy at all, but I'd be open to hearing out different approaches to solving this.

    submitted by /u/kevin-johar
    [link] [comments]

    Coworker asking for my script

    Posted: 28 Apr 2021 08:11 AM PDT

    I automated something at work with Python and my coworker(not a developer) wants me to email them my script and have an external person review it.

    I started learning to code at my job and haven't yet worked on a team with engineers so I'm not sure what's best practice for a situation like this.

    Should I add it to a repository on GitHub first and then send it? Is there something I should do to make sure that it's known that it's my script?

    Not sure if I should just send my code in an email.

    Edit: I should add that the script is for a report that he needs to generate every few months, but I don't know why he's sending it to an external person.

    Thanks in advance.

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

    What now?

    Posted: 28 Apr 2021 04:02 PM PDT

    Hello,

    I am finishing Computer Science (3 exams left). Through this 4 years I have learnt C, C#, Java, Sql, Php, Html, Css and little of python. We did not do any framework for any of these. We also touched a little of something that should be actually my main job, Software Project engineer, and not developer. (Uml and class diagram, conceptual model of database, use case, etc)

    Now I feel stuck. I have almost graduated, and I do not feel ready to work neither as a software engineer nor as a developer.

    We learnt so little about planning and projecting softwares, and we did 0 framework, and as I listed some jobs almost everyone want some kind of framework (angular, vue, react (native), laravel, etc).

    What should I focus my solo learning before I graduate. On learning those frameworks and technologies, or on trying to learn design patterns and other things for software engineers ?

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

    Is it worth buying LC Premium?

    Posted: 28 Apr 2021 06:33 PM PDT

    I'm honestly very much down to buy it. I'm a CS major in college, and I've taken many internship assessments and failed almost all of them in graceful fashion. I'm a decent programmer, know how to get the job done, but my weakness comes when having to use certain data structures for better time complexity, and finishing the problem on time.

    I have tried to read CTCI and the hard problems on there are impossible to understand, for me.

    I need to be able to LC better in order to actually land an internship, if buying premium has helped anyone improve on their quick problem solving experiences, please let me know. Maybe I'll work more diligently when there's a financial incentive involved...

    Thank you!

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

    Need C++ tutorial

    Posted: 28 Apr 2021 07:59 PM PDT

    I'm looking for a good, long C++ tutorial series for VS code. I'm not very intelligent, so I'll need a series that:

    • Covers basic and advanced C++
    • Teaches how to use and control Visual Studio
    • maybe teaches how to make a game idk (Preferable a video series)

    This is awfully specific, so thanks for the help

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

    I need help on this hw question regarding this 4 disk Hanoi problem

    Posted: 28 Apr 2021 11:38 PM PDT

    Please sketch a state-space for the four disk Towers of Hanoi problem. (It is not necessary to fill in every node in that space.) What is the minimum number of legal moves needed to complete the problem? Next sketch the respective paths of depth-first and breadth-first searches through your state-space. Why are both types of search considered blind search methods?

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

    C++ Project Structure with CMake (Game Engine Library Development)

    Posted: 28 Apr 2021 11:27 PM PDT

    Hey guys,

    I've recently (relatively) begun embarking on my low-level game development journey and knew very little about C++ toolchains in general. Throughout the process I was getting frustrated at what I felt was a lack of resources on how to easily wrangle CMake in a straightforward manner. Specifically, I was interested in how to import libraries and produce my own library for consumption.

    As I usually do when I am forced to solve something on my own -- I tutorialized my process. I'll likely follow this up with some more Vulkan content at some point as I get more familiar with that API. There's definitely room for improvement in the tutorial front in that area as well.

    As mentioned, I'm fairly green at CMake and am probably ignoring some best practices I don't know about.

    Link: https://youtu.be/MHbGmGUvwVg (Premiere's 1030AM EST Apr 29th 2021)
    Contents:
    - Bootstrapping a new library
    - Importing the new library in consumer application
    - Importing libraries from source as git submodules
    - Service Locator pattern for demonstrating dependency encapsulation
    Hope it helps someone get started and avoid some of the frustrations I ran into!

    Thanks for your time,

    - Ozzadar

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

    How do I get better at programming?

    Posted: 28 Apr 2021 07:34 PM PDT

    I've been programming for a little over five months now, and since the beginning I feel like I've improved a lot. I feel comfortable with Java, JavaScript and currently trying to get attached to python.

    I'm not sure if this is just a normal thing, but I've been feeling like I am not really programming, and more or less been just following a régime. Kind of like writing in html, not really programming but writing tags.

    How could I be more confident and better in my programming?

    I've realized that I've put myself into a comfort box, and the only way I could really learn is to break out of it. I'm absolutely terrible with arrays & loops, and I would love to get much better with them.

    If somebody could help give me tips, I would greatly appreciate it, thanks!

    submitted by /u/-polyblank
    [link] [comments]

    How do you structure and categorize your development notes, tasks, ideas, meeting notes, research links, etc?

    Posted: 28 Apr 2021 11:16 PM PDT

    I'm working on an extra large project and I feel like I need to get more organized. I've tried enough tools to realize that short of mistaking a hammer for a screwdriver, the tool you pick is irrelevant and it's all about your structure inside the tool be it Jira or a plain text /_notes folder. So can anyone please share some tree structures or text/spreadsheet templates that work for them?

    Thank you.

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

    I got my first job as a programmer

    Posted: 28 Apr 2021 04:05 AM PDT

    So I've landed my first job as a programmer - contractor. I'm super lucky, but I don't have fellows to ask when doubts occur. I need to rely only on myself.

    My first task went smoothly, but now I got a more complex problem to solve. Since I'm a selft-taught I lack some knowledge in software architecture, but I'm sure with some help I can make it happen.

    I think I need a mentor to point me where I should headed.

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

    Codecademy - Is it any good?

    Posted: 28 Apr 2021 07:01 PM PDT

    Hey people,

    I've just signed up to Codecademy to help with learning programming.
    I'm just wondering whether people believe it's a good resource to use?

    Many thanks for any replies!

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

    Two semesters in C++ and Pointers still confuse me

    Posted: 28 Apr 2021 10:19 PM PDT

    I'm learning about concepts of OOP right now in college (parent and child classes, upcasting, downcasting, etc.) and whenever I go to my professor about pointers, I can never really get it down. Great teacher, don't get me wrong, it's just something I could never wrap my head around; I'm probably making it harder than it should be to be honest.

    For example, in a custom class we made during our lecture:

    class person { private: std::string name; animal* pet; // the animal class is a parent class of the "dog" and "cat" child classes, just an FYI. ... }; 

    This is just an example of something that was confusing me. Why does there need to be a pointer to pet? When do I know when I should or shouldn't use a pointer in my code as a programmer?

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

    Starting from scratch.

    Posted: 28 Apr 2021 10:14 PM PDT

    Hey all. Im looking into learning to code both for fun and potentially career. I am looking at different online courses but don't know what is best. Stacksocial is one I've been looking at but I don't know if its reputable or worth it. I'm just looking for a start point. Thanks so much!

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

    I need help figuring out a way to collect a list of numbers displayed in separate frames from a website.

    Posted: 28 Apr 2021 09:50 PM PDT

    So I am a newbie coder just a hobbyist, I want to make a program that will calculate stats from some lottery results which I think I am able to code.

    But in order to do that I need to create a database and here is my problem:

    The website has a 10 year long database so copy pasting the numbers is out of the question.

    for reference here is the website in question https://tzoker.opap.gr/en/draws-results#/

    It displays the most recent draw results and then you have to click on the arrow on the left to get the previous one and it goes 10 years deep.

    Could I automate this process somehow to paste the numbers in a notepad file or something or does it need too much AI and high skill to achieve that?

    If there are premade bots that need just some fine-tuning to do that then even better :P

    I thank you in advance.

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

    What makes some languages 'enterprise-y' or 'you can't write banking software in Python'

    Posted: 28 Apr 2021 05:29 PM PDT

    I overheard a discussion the other day—the background is, some of the code in the company talks directly to banks and does transactions.

    That code is all written in Java, although some Perl and Python code talks to it.

    One of the people in the discussion was saying 'you could never write banking software in a language like Python' basically because Java is compiled into one executable class in a compile stage and those other languages are interpreted/compiled at run time.

    Is this true? What advantage does the compilation of Java have? It would catch syntax errors or mis-named variables etc. but that doesn't make the language inherently more secure or reliable for the finance industry, does it?

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

    No comments:

    Post a Comment