• Breaking News

    Sunday, October 3, 2021

    This Friday i completed my first full month of working as a developer here's what i've learned (might be wrong about all of this, but it's my experience) learn programming

    This Friday i completed my first full month of working as a developer here's what i've learned (might be wrong about all of this, but it's my experience) learn programming


    This Friday i completed my first full month of working as a developer here's what i've learned (might be wrong about all of this, but it's my experience)

    Posted: 02 Oct 2021 02:53 PM PDT

    1. 90% of the job is knowing what questions to ask/search, you can know all the fundamentals and literally everything thing there is to know(technically speaking) about a technology stack but just like with math, if you don't know what questions to ask you'll never know what formulas to use on each different situation.

    2. If you can't test your code/your code doesn't have tests even if it's right and works, it's actually wrong and shit.

    3. Seniority does mean a lot, but not always... and even if you're just starting out(junior/intern whatever), if you think something is wrong, your colleagues (even the more senior ones) usually really appreciate you bringing it up.

    4. Don't be afraid to take a task you think it's out of your skill level, worse case scenario (at least in my company) there's always someone really eager to help you out(not do shit for you, but help you figure what you need to be asking/solving).

    5. Lastly don't feel like just because you learned X technologies you can't work with other things, the time i spent learning python was mostly Django/SQL but I ended up working with Flask/MongoDB(never had used them at the time of the interview) i was just honest about my python skill level and that i thought i was up for the challenge and i've been really performing out of most people's expectations of me(honestly if i could do it with almost no technical background up until earlier this year, y'all have a better chance)

    Good luck lads :D feel free to leave me some wisdom in the comments as well

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

    Started The Odin Project, have now discovered it does NOT want me to use Windows... is this a common thing I should be anticipating?

    Posted: 02 Oct 2021 07:26 PM PDT

    So, I'm a little annoyed to discover that if I want to continue this course, apparently I need to run a VM running Linux of some kind. I've only really done HMTL and CSS in the past, with a little dabbling in Python and Javascript, so I don't know how much of a thing this is, but is this something I am just going to have to live with if I want to do any kind of backend web dev stuff?

    The plan was to just use my normal machines, which are all Windows, so ideally I would also be learning in a Windows environment. Part of me wants to drop Odin because, ya know, if my intention is to work on Windows, I don't want to learn things that specifically don't work there. But if this is just a thing I'm going to always run into, and there's not really much choice in the matter... I guess I'll just deal with it?

    Do I stay, or do I go? Create the VM and learn in Linux, even though I'll likely just be using Windows in the future? Find another program to follow, even though this one seemed so promising?! A little guidance would be much appreciated here, thank you :]

    EDIT: Sweet mother, this got a lot more responses than I had anticipated! I am still working my way through it all, but it's kindof a lot to respond to, so I just want to at least add this edit to say, THANK YOU. This was very helpful! I've decided to just stick with it and learn to use Linux utilizing a VM. I like what many responses have said as far as these being valuable skills to learn, so I think whatever environment I end up working in, it will still be helpful to learn. Plus, there definitely seem to be a good number of comments saying Linux is fairly common in the industry, so I think it's better to just jump in and check it out. Though to everyone suggesting WSL, I'm gonna keep an eye on that as well. I want to try some basic-ass Ubuntu first to see what I can see, but I'll keep that in mind as an option.

    Okay, now to go through the rest of these comments. Thanks again, everyone! :D

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

    Today I was proven wrong

    Posted: 02 Oct 2021 03:04 AM PDT

    A few weeks ago I started a new job as a full stack web developer. I have a few years experience but I'm no expert. I learn something everyday. The new team is hardly acknowledging my existence and I'm doing my best trying to interact with them and even trying to get task assignments. Eventually I was assigned to solving a bug. While trying to solve the bug i deep dived in the code base. The code looks like a real miracle to me through the fact that it seems to work while I can see big problems at every layer of the application. I was so blown away about other issues that I found that I simply couldn't focus on the bug. I told my team that I think that the bug seems to be a symptom of a bigger problem and I'm not even convinced that the data we see in the app is even correct since there is no way of telling except if you are manually comparing the data with the data aggregated from different db tables. There is not a single test in the whole app and there is no types used. They simply ignored what i said and fixed the bug themselves. I guess I'm wrong. The application works and I acknowledged and congratulated the fix. The lesson I learned is that I should probably slow down and what seems wrong to me might not be necessarily wrong at all. I have no problem at all being wrong but this time it feels different.

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

    I've been wanting to teach my kid JavaScript, but I've felt the asynchronous/event-based nature of HTML+JS would be overwhelming. I finally figured out how to implement an idle "wait" or "sleep" function, which I think will make building simple games and animations much easier. Thought I'd share!

    Posted: 02 Oct 2021 10:26 PM PDT

    <html> <head> <script> wait = (milliseconds) => { return new Promise((resolve, reject) => { setTimeout(() => { resolve() }, milliseconds) }) } main = async() => { document.getElementById('mainContent').innerHTML += 'Oh' await wait(500) document.getElementById('mainContent').innerHTML += '.' await wait(500) document.getElementById('mainContent').innerHTML += '.' await wait(500) document.getElementById('mainContent').innerHTML += '.' await wait(1500) document.getElementById('mainContent').innerHTML += ' Hello, there...' await wait(500) document.getElementById('mainContent').innerHTML += '!' } </script> </head> <body id="mainContent" onload="main()"> </body> </html> 

    Basically I just wrap a setTimeout in a Promise that way I can use async/await on it.

    I'm fine waving a magic wand over the details of async/await for now. It's not a huge deal although obviously important down the line, and just saying, "It makes it wait." isn't actually untrue!

    On the other hand, I WAS NOT comfortable trying to make them accept wait(time, next) => { setTimeout(next, time)} and having to write a bunch of separate functions or inline functions all of the time. That would get messy FAST.

    For how much I love JavaScript, this was honestly super getting on my nerves. Glad I have a workaround I think we'll both be OK with. Hope this helps someone else! :)

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

    I got a question

    Posted: 02 Oct 2021 11:17 AM PDT

    Mobile apps such as instagram, facebook, reddit, robinhood, etc. their design, what language was used to style them? I was thinking they use HTML but i think i was wrong.

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

    Creating a mass based shipping calculator

    Posted: 02 Oct 2021 10:45 PM PDT

    from decimal import Decimal prices = { "2": [Decimal(2), Decimal(37.00)], "5": [Decimal(5), Decimal(42.00)], "10": [Decimal(10), Decimal(53.00)], "15": [Decimal(15), Decimal(64.00)], "20": [Decimal(20), Decimal(74.00)], "25": [Decimal(25), Decimal(90.00)], "31.5": [Decimal(31.5), Decimal(101.00)] } 

    This table is interpreted thusly: If the total mass is lesser than or equal to 2kg, the shipping price is 37.

    If the total mass is greater than 2kg and lesser than or equal to 5kg, the shipping price is 42.

    If the total mass is is greater than 5kg and lesser than or equal to 10kg, the shipping price is 53 ...

    This is written like so:

    def calculate(mass): if mass <= prices["2"][0]: print(prices["2"][1]) elif mass > prices["2"][0] and mass <= prices["5"][0]: print(prices["5"][1]) elif mass > prices["5"][0] and mass <= prices["10"][0]: print(prices["10"][1]) elif mass> prices["10"][0] and mass <= prices["15"][0]: print(prices["15"][1]) elif mass > prices["15"][0] and mass <= prices["20"][0]: print(prices["20"][1]) elif mass > prices["20"][0] and mass <= prices["25"][0]: print(prices["25"][1]) elif mass > prices["25"][0] and mass <= prices["31.5"][0]: print(prices["31.5"][1]) elif mass > prices["31.5"][0]: remainder = Decimal(mass) % Decimal(31.5) 

    However, if the total mass is greater than the maximum package weight of 31.5kg, then a new package has to be made and the excess mass has to be distributed among packages not exceeding 31.5 kg.

    So, for instance, if the total mass is 32 kg, the total shipping price would be:

    package 1 (31.5kg) + package 2 (0.5kg) = 101 + 37 = 138

    I think this should be somehow implemented using modulo, or recursion or both but I don't know how to put it in code.

    Thank you in advance.

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

    Got a JOB offer but it feels too good to be true based on my knowledge. need advice.

    Posted: 02 Oct 2021 10:05 PM PDT

    I don't want to ask on r/cscareerquestions for reasons, so I will ask here since this sub pertains to my issue... my knowledge of programming. I am a sophomore student, and I am currently doing D&A. After browsing here I was like screw it, I will shoot my shots and just apply everywhere, because what's the worst that could happen?

    Just to be clear, I stated that I have an associates degree (not bachelors) and that I am looking for an internship. I know all about robots sending automated messages to you and such, but I looked into this and it is legit. I know this resume host or whatever you call it and I know for a fact that something caught the system's eye.

    They put some really precise detailing too, so if it is automated, it's so specific.

    -------------------

    Dear --- -----,

    I am reaching out from Revature regarding our open position for Entry Level Software Engineer. Our mission is to create pathways for qualified candidates to reach their potential as technology professionals.

    Based on your resume on Indeed and background in Computer And Information Sciences, combined with your computer programming knowledge, I think you would be a great fit for an open Entry Level Software Engineer position. We are currently hiring and will provide you with paid training and two years of professional experience to jump start your tech career.

    Ashwini G
    Talent Acquisition Team
    Revature

    JOB DETAILS

    Job Title: Entry Level Software Engineer
    Company: Revature

    We are a rapidly growing technology talent development company that is focused on providing our Fortune 500 clients with the best software engineers in the country. Our unique corporate training program allows college graduates to gain knowledge on the most in-demand technologies.

    Prior to working with one of our clients, you will receive intense technical and professional training (10-12 weeks). Starting on day one, you become a Revature employee and are paid during the training period before placement with our clients. In addition, corporate housing is available to you for the length of your training.

    We have been featured in the Wall Street Journal, Money, Time, and MSN, and were named one of the "8 Cool Companies to Apply to With Awesome Benefits" by Glassdoor.

    What We Are Looking For
    • Bachelor's degree
    • 0-3 years experience (no professional coding exp needed)
    • Solid foundational knowledge of SQL
    • Strong knowledge of object oriented programming language
    • A natural problem solver
    • Strong communication and interpersonal skills
    • 100% legally authorized to work in the US with no need for sponsorship

    What We Offer
    • Competitive Compensation
    • Relocation & Housing Assistance
    • Health, Vision & Dental Insurance
    • Paid Time Off
    • Industry Certifications
    • Life Insurance
    • 401k
    • Mentoring program

    Please let me know either way if you would be interested.

    Thank you for your time.
    Looking forward to discussing this opportunity further.

    --------------------------------------------------------------------------------------

    Now this is why I am asking this sub specifically... what do I do with the fact I do not know how to use SQL or the fact I do not have a Bachelors? With the wording, do you think there will be some annoying algorithms stuff or are they assuming we are newbies?

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

    More confused than ever... how do I use Union Find / disjoint set to generate a maze??

    Posted: 02 Oct 2021 05:57 PM PDT

    Context: I am using https://algs4.cs.princeton.edu/15uf/UF.java.html as my union finder. These are assignment instructions: https://imgur.com/a/aFgqR4f

    Basically, I have to have a "m x n" maze, and then use UF to generate a path in which all cells or "pairs" are connected. The thing is, the random chosen cell to have a wall broken down must be adjacent to the other cell, and if the cell is already connected, don't break the wall.

    The issue is Union Find only takes a single int argument, presumably to create an array.

    In my code I created "Pair" class like coordinates for a grid. What do I do for Union Find to find a random cell and then do it's work? Here is my code so far for reference of my thought process.

    import edu.princeton.cs.algs4.UF; import java.util.Random; public class MazeGenerator { Pair[] points; int x = 0; MazeGenerator(int m, int n) { points = new Pair[m * n]; UF find = new UF (m*n); find.union(2,3); System.out.println(find.count()); for (int j = 0; j < n; j++) { for (int i = 0; i < m; i++) { points[x++] = new Pair(i, j); } } } public class Pair { Pair(int x, int y) { this.x = x; this.y = y; } @Override public String toString() { return ("(" + x + ", " + y + ")"); } int x; int y; } public boolean adjacent (Pair p, Pair q) { if (p.y == q.y && (p.x == q.x+1 || p.x == q.x-1)) return true; if (p.x == q.x && (p.y == q.y+1 || p.y == q.y-1)) return true; return false; } public static void main(String[] args) { MazeGenerator test = new MazeGenerator(4, 4); System.out.println(test.maze[3][3]); System.out.println(test.points[5]); System.out.println(test.points[9]); Pair p = test.points[5]; Pair q = test.points[5]; System.out.println(test.adjacent(p, q)); } } 

    I made a post about this before but was still left confused how in the world does Union Find work in conjunction to Pair, and how will I still use adajacent() in this UF?

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

    Getting "Undefined symbols for architecture x86_64:" while using SDL2 in Visual Studio with C++

    Posted: 02 Oct 2021 09:25 PM PDT

    I'm trying to learn how to create a game in C++ using SDL2, and I've been running into the above error. I'm on Mac OS Catalina.

    Code:

    #include <iostream>

    #include "/Library/Frameworks/SDL2.framework/Headers/SDL.h"

    using namespace std;

    int main(int argc, char *argv[])

    {

    SDL_Init(SDL_INIT_EVERYTHING);

    SDL_Window *window = SDL_CreateWindow("title",SDL_WINDOWPOS_CENTERED,SDL_WINDOWPOS_CENTERED,600,400,SDL_WINDOW_SHOWN);

    SDL_Renderer *renderer = SDL_CreateRenderer(window, -1,0);

    SDL_SetRenderDrawColor(renderer,0,255,0,255);

    SDL_RenderClear(renderer);

    SDL_RenderPresent(renderer);

    SDL_Delay(3000);

    return 0;

    }

    Output when using CLang compiler:

    > Executing task: C/C++: clang build active file <

    Starting build...

    /usr/bin/clang -g "/Users/fslopes/Desktop/Programming/Incomplete Projects/C++/Game1/main.cpp" -o "/Users/fslopes/Desktop/Programming/Incomplete Projects/C++/Game1/main"

    Undefined symbols for architecture x86_64:

    "_SDL_CreateRenderer", referenced from:

    _main in main-e47b96.o

    "_SDL_CreateWindow", referenced from:

    _main in main-e47b96.o

    "_SDL_Delay", referenced from:

    _main in main-e47b96.o

    "_SDL_Init", referenced from:

    _main in main-e47b96.o

    "_SDL_RenderClear", referenced from:

    _main in main-e47b96.o

    "_SDL_RenderPresent", referenced from:

    _main in main-e47b96.o

    "_SDL_SetRenderDrawColor", referenced from:

    _main in main-e47b96.o

    ld: symbol(s) not found for architecture x86_64

    clang: error: linker command failed with exit code 1 (use -v to see invocation)

    EDIT: I'm using Visual Studio Code, not Visual Studio. Sorry about that

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

    Can you learn using YT?

    Posted: 03 Oct 2021 12:04 AM PDT

    Is it possible to go from zero knowledge of coding to at least intermediate level by just doing the projects on YouTube? I don't mean just searching one function or one feature. I mean actually doing whole projects where you build a web app or an API etc.

    I wondered if it's possible without knowing the syntax and you can pick it up as you go. But I have serious doubts just YouTube projects alone can teach someone.

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

    What criteria these tech companies follow for hiring freshers?

    Posted: 02 Oct 2021 11:46 PM PDT

    I recently gave a test consisting of aptitude(reasoning , verbal, logical) + coding(2 problems) for a company called TCS (India) . I was able to solve both the coding problems and performed poorly in aptitude I got rejected and while on the other hand my friends who performed average in their aptitude and could barely solve 1 coding problem got selected. And we cannot ask them for a reason as why I was not selected.
    someone please guide me on how to prepare for this job test and correct me if I am wrong or missing something.

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

    When you have a piece of code that is common/shared across other (sibling or child) folders. Do you name this folder(with prefix, suffix or neither) as "common" or as "shared" or something else?

    Posted: 02 Oct 2021 11:25 PM PDT

    Trying to get a consensus of people's thoughts on this. It's sort of similar to tab vs. spaces in a way?

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

    Youtube channels

    Posted: 02 Oct 2021 11:20 PM PDT

    Anyone have any youtube channels they'd recommend for learning programming. Currently learning Java and Python. Not looking for anything too specific just want to watch someone code, maybe work through a project.

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

    Modding a game/integrating twitch donations and such

    Posted: 02 Oct 2021 11:03 PM PDT

    Im fairly new to coding and im undertaking a couple projects to teach myself, one of those is modding a pokemon game to have certain things happen through twitch donations and stuff like that (for example if you donate a dollar or something it spawns a mon of your choice next encounter)

    How would I do this, if you can DM me on discord at Kasai#5557 it would be much appreciated!

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

    Where do i start with android app dev?

    Posted: 02 Oct 2021 08:57 AM PDT

    Hello everyone , i'm about to finish my CS50 course (2 weeks left) and i want to dive into the app development . What do you guys recommend me to do to start. What free courses would you recommend me to take ?

    I'm only familiar with python and a bit of C.

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

    Once you learn one JS Library (say "React" as an example), how easy is it to learn others?

    Posted: 02 Oct 2021 10:30 PM PDT

    The title kinda says it all.

    For background, I'm doing an online bootcamp that includes React, but I know a project I want to work on that's built on Angular. Just wondering what to expect when making the transition.

    Thanks!

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

    I achieved a small, but meaningful milestone the other day

    Posted: 02 Oct 2021 05:20 AM PDT

    So I've always been code disinclined;

    While I've always been fascinated by game design, programming has traditionally not meshed with my brain. Learning to code has, for many years, been something that hit me like the sound of nails on a chalkboard. I'd tried every beginners tutorial, but for one reason or another, nothing stuck.

    Recently though I had some personal upheavel in my life, and I was filled with a desire to see how far I could take it. With the help of my friends (a few who are professional developers), I set myself a goal; I wanted to recreate the Strachey Love Letter algorithm, first written in 1952 for the Manchester Mark I computer, from scratch.

    At first it was rough; my friend and tutor invited me to clone a project he was working on; an open source old school RuneScape private server written in Kotlin. It was a game I played and still follow, and I was familiar enough with it that reading code for it was easier for me to understand; I could look at an interaction with a game object or NPC (something I understood as a player) and look at the code and put two and two together to figure out how things worked. My major problem (and it still is, really,) was syntax. Most of my troubleshooting revolved around trying to remember what types of brackets went where.

    But I did it, with guidance from my buddy, and made a crude NPC interaction at the Lumbridge tavern. Eventually I'd like to make it a functional quest, too, but that's another story for another day.

    I began doing the CodeAcademy Kotlin course to try and address my syntax issues. Again, another rough start, but I picked up quickly. My tutor friend has remarked a few times that I learn fast, and, at risk of tooting my own horn, I agree with him.

    5 days later I felt I had learned enough to attempt my goal; the Strachey Love Letter generator.

    ... And you know what? I sat down, wrote some code, fixed some syntax (getting better though!), and within an hour... It worked.

    I had recreated the algorithm, functionally speaking, and it had taken me almost no time at all. The only resources I used were the Wikipedia page for the original algorithm, the words used in the original, and a glance at a php recreation of the program to reference the logic.

    Obviously I realize that this isn't the Mona Lisa or anything, but it's something I wouldn't have said I could do if you asked me a few months ago. I hope I can look back on it as my major breakthrough moment, because now I'm trying to think of a next goal for me to implement. My tutor friend suggested I make the algorithm get words it uses from another file, and I might just do that before I implement a user option to add their own words to the list.

    And just for fun, I made sure to record the first ever output it made after I fixed the bugs. Maybe you'll find it inspiring. I at least hope you find it a little silly and amusing, because it rolled duplicate words and almost looks like it bugged (it didn't though).

    Cheers all;

    Darling Duck,

    You are my fervent fancy, my covetous eagerness, my amorous fancy, my eager enthusiasm, my craving craving,

    Yours impatiently,

    M.U.C.

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

    How would one go about programming a minecraft bot to type a command only if certain criteria is met?

    Posted: 02 Oct 2021 10:02 PM PDT

    I'm gonna start off by saying I know absolutely nothing about programming. I took a couple weeks of lessons a few years ago, but the teachers were bad and whatever I did learn, I've forgotten. If this post doesn't fit here, or would be better in a different subreddit, then please tell me.

    There is a duplication glitch regarding shulker boxes in the latest version of minecraft. Duper trooper and 0x150 have made a mod that makes it more reliable, and only needs one player. I combined this with a simple redstone machine to redispense the broken shulker, speeding the whole process up a lot. But I still need to sit there typing /dupe for it to actually work.

    I want to create a bot that will type /dupe automatically, but only when looking at a shulker box, and when holding a certain renamed pickaxe.

    How would I go about creating this?

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

    Passion Project Alert - anyone want to make an decentralized voting app with me?

    Posted: 02 Oct 2021 09:45 PM PDT

    So I began brainstorming for this passion project a few years ago and now I think I'm ready to work on it with a few people. It is for everyone to use for free so in that way it really is a passion project and yeah if you're interested shoot me an email so we can link up on zoom and and discuss more about the details. jesuislebison@yahoo.com

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

    After a lot of self-learning, I finally managed to land myself a data science interview. Do you have any advice for me?

    Posted: 02 Oct 2021 08:53 PM PDT

    The interview is tomorrow. This position and I are in India. The company is a startup. This is going to be my interview in my life, so general tips are welcome too.

    Two things I am worried about are- 1. The job description requires 2yrs of workex and I clearly don't have any. 2. It also says a lot about deep learning, and I do not know anything about it. I am good with traditional machine learning.

    But nowhere on my resume have I tried to hide the above two facts about me. In fact, I would say it's all very clear that I am a fresher switching fields. If I have passed the resume round and then a quiz round and then an ML assignment round, then I should assume they have taken a good look at my resume and I am what they are looking for, right?

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

    How to be better at low level architectural design?

    Posted: 02 Oct 2021 07:47 AM PDT

    I am a junior developer working at an e-commerce company. Up until now I only did very small to medium sized single person tasks that includes API integration, code migrations, bug fixing etc. which did not require much thought and had just limited ways to be implemented.

    Recently I was put in a big task that required a small architectural to be made first as the functionality required large amount of data being transferred at real time from various different sources and if not done efficiently would bring a considerable amount of latency for customers in the app and website. It required thinking all kind of stuff like which DB/schemas to be used for which purpose (SQL/Mongo), when to use caching. So I was involved with a tech lead to design the flow, but was only being able to provide some minor suggestions and being a junior was fine that much only. But I want to be able to do more than that.

    You may argue that I can learn gradually working on these type of projects and would be able to give more contribution. That is correct but my fear is my learning would only be limited to the seniors at my work. Though they are decent engineers, but certainly not the best or even one of the best. I know for a fact that there are a lot of better engineers working at a lot of companies that have to deal with way way more traffic than us. And I'm sure the companies not just spend only on their infrastructure for performance.

    So my question is how can I learn new stuff and apply that to optimize my existing work? Would appreciate any kind of help.

    Thank you.

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

    Javascript API Integration Help

    Posted: 02 Oct 2021 08:47 PM PDT

    Im trying to import this API: https://github.com/mkreiser/ESPN-Fantasy-Football-API

    What I have right now, I think imports it correctly, but I am unable to access any of the information and I can't figure out why.

    Here's what I have:

    ```

    import { default as espn } from "https://esm.sh/espn-fantasy-football-api";

    const myClient = new espn.Client({ leagueId: 61465246 });

    var currYear = 2021

    console.log(myClient);

    var league = myClient.getLeagueInfo(currYear);

    console.log(league);

    ```

    Whenever I try and access any data using what I have set up, the value is undefined.

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

    Some questions about pipelines

    Posted: 02 Oct 2021 02:36 PM PDT

    I am writing a little hobby project, where in a (ETL) pipeline i pull some data from an API on my country's government, sanitize the data and then save the data in a postgres database, which I then expose in my own api in a webserver. In that regard I have a lot of questions about the pipeline that I can't seem to find any answers on.

    • How do you deploy a pipeline? Somehow the pipeline should be run in a production environment, and the data be saved in the prod db. I only have experience with hosting websites where things just run all the time, I guess a pipeline has to be told when to run?
    • How do you only run it once in a while when you need to? A cron job?
    • Do you go through all the data in the api, or only the stuff that has been updated since last time i ran the pipeline (There is an updated_at field in the api). In that case, how do you tell it when the last time you ran the pipeline was, do you have a database of pipeline runs?
    • What if i only want to run part of the pipeline? Say I only want to update the data on the politicians, not the parties, meetings, etc. How do i tell only to run part of the pipeline. Or is it better to just run everything? Or are there other better ways?
    • When i run the pipeline again, I guess I should update the database rather than delete everything in it, and doing it over again. But won't that be a lot of database calls (which will potentially be very slow) to look up everything that I want to update and see if the data should be updated before i then update it.

    I hope the questions make sense, otherwise I can try and clarify them more.

    Also, if anyone has a tutorial or course on this stuff, it would be nice.

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

    How do I make a script in Autohotkey(windows 10) that holds down a specific key on my keyboard if I hit a different specific key?

    Posted: 02 Oct 2021 08:20 PM PDT

    I'm looking to make a script in Autohotkey that automatically holds down a specific key(ex: enter) when I press a different key(ex: alt) and releases the held key when I press the starting key again. But I just installed autohotkey and have almost no clue how it works so could someone give me pointers and tips on what commands to use so I don't have to spend hours reading through the 10 page help section?

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

    No comments:

    Post a Comment