• Breaking News

    Sunday, June 6, 2021

    Engineer, Developer, Coder, Programmer...etc Do you differentiate? Ask Programming

    Engineer, Developer, Coder, Programmer...etc Do you differentiate? Ask Programming


    Engineer, Developer, Coder, Programmer...etc Do you differentiate?

    Posted: 06 Jun 2021 03:45 PM PDT

    Do these terms mean the same thing or are they different, what is your take?

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

    Need help to finish implementing a recursive c++ copy constructor for a Deque

    Posted: 06 Jun 2021 09:52 PM PDT

    Hey. My assignment is to Recursively implement a c++ copy Constructor for a Deque. I've funnily gotten the recursive part down (I think) but need help setting up the copy constructor.

    Here is the code.

    #include "Deque.h" #include <iostream> using std::cout; using std::endl; // Helper method for Deque(Deque) and op= // ONLY CHANGE BODY OF THESE TWO METHODS //I need help here void Deque::copyDeque(const Deque & dq) { front = back = nullptr; n = dq.n; //I don't know what to do here to get to copyNode copyNode(original, copy); } // Recursive helper method for copyDeque //I've done this (I think) void Deque::copyNode(Ex4Node* original, Ex4Node* copy) { while(original->data != nullptr){ copy.insert_front(original->data); original = original->next; copyNode(original,copy); } } //The rest all are already implmented. I plan to use the insert method already implemented later in the code to do the copying. 

    So yeah, I've hit a blank. My guess would be creating a new node and tieing it to dq? But I don't know how to go from there to CopyNode. Any help and please ELI5?

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

    Anyone familiar with RAPTOR being used to learn C++ coding...

    Posted: 06 Jun 2021 09:50 PM PDT

    Here is my first assignment and they only thing I know how to use is the input and output box in Raptor. Any advice, videos, and reference would be greatly appreciated.

    1 Flowchart the following pseudocoded program using RAPTOR. Each line of pseudocode equates to one flowcharting symbol in RAPTOR. Make sure the program runs in RAPTOR when you are finished.Save your solution and attach your file to your submission. PSEUDOCODE BEGIN Prompt the user to input a positive number, but to enter -1 to exit Save the number input from the user to a *(variable named Number) Copy the value in Number to another (variable named HighestValue) While Number is NOT equal to -1 If Number is greater > than HighestValue Copy the value in Number to (HighestValue) Prompt the user to input a positive number, but to enter -1 to exit *Save the new number input from the user to (Number) Output to the Master Console window "The largest value you entered was" HighestValue END

    submitted by /u/Most-Honeydew8793
    [link] [comments]

    Is it possible to track down multiple accounts of the same user on reddit?

    Posted: 06 Jun 2021 09:44 PM PDT

    https://towardsdatascience.com/using-nlp-to-identify-redditors-who-control-multiple-accounts-837483c8b782

    Reddit provides a handy API that lets you extract up to 1000 posts each day from any subreddit.

    Pull 1000 posts from Reddit's API and evaluate each one using stylometry to see if the writing style fits the sample or the intended style of an individual? Is that even possible?

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

    Can Someone Explain What "Operation Activities" means in the context of the CICD Pipeline?

    Posted: 06 Jun 2021 03:08 PM PDT

    I'm starting a new job and my manager suggested that I should learn what the CICD pipeline is amongst other things. A definition for the CICD pipeline that I found reads as follows:

    Combined practices of continuous integration and either continuous delivery or continous deployment. CICD bridges the gaps between development and operation activities and teams by enforcing automation in building, testing, and deployment of applications.

    I understand the quote for the most part, but I'm confused about what exactly "operation activities" entails.

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

    Developers/Coders, How is the career path of a developer/coder for those not from engineering backgrounds?

    Posted: 06 Jun 2021 12:47 AM PDT

    I have worked with code one way or another, Like I can read and understand it and even make changes to suit me but have never coded something in entirety. Recently have found myself thinking of taking up coding more and more and I can see myself doing it full time.

    But how is it as a career path though? Specially for somebody from non-engineering background?

    For context: 26 years old and in marketing.

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

    WPF + XAML || What's the best way for me (learning) to parse spreadsheet information to display Combobox selections based on your Text Input?

    Posted: 06 Jun 2021 01:47 PM PDT

    Hey there!

    Basically not sure where to start for this one.

    I've got a spreadsheet that has (as a basic example) some data such as..

    Name Favorite Snack Eye Color
    Bob Cheese Blue
    Frank Apples Green

    I want to have a TextBox that allows me to input the Name, and then two separate Comboboxes that will have dropdown selections depending on the Name that was input into the TextBox.

    So if I type in "Bob" into the TextBox.. then ComboBox1 will show Cheese and then ComboBox2 will show Blue.

    This is a very vague example, and my ACTUAL use case (work related) is a bit more elaborate.. but will follow similar principles.

    I'm not exactly sure where to start. I've got the rest of my App in a good spot. But now I'm working on this part specifically.

    Note: I DO NOT need ANYTHING to be saved into a Database. It's strictly for pulling data that I've already defined in a Spreadsheet (or whatever I convert it into).

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

    Seeking code review for interview take home project

    Posted: 06 Jun 2021 05:56 PM PDT

    I have a take home assessment for a job I'd really like to do well on - it is basically just a ToDo with some frills but would love some feedback if anyone is willing

    throwaway for obvious reasons

    post or DM your github username and I will invite you to a copy I have of the repo

    please and thank you!

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

    Have you ever gone through a programming existential crisis? And how did you deal with it?

    Posted: 06 Jun 2021 09:58 AM PDT

    As many of you here, I started programming out of a passion that I slowly nurtured in my teens until I made a career out of it in my 20s and going into my 30s. I love problem solving and engineering software solutions, so much and for so long that it became part of who I am, I always had this dream of doing something big, solving meaningful problems and contributing to the state of technology.

    But today, I find myself stuck, I just don't seem to find the same love and passion I had before, while at the same time longing for it and having the same dream, whenever I start a project to keep the passion alive, I just get tired by all the decision fatigue I go through early on, and the fact that there is no idea that really gets me going and motivated as it was in my early days.

    I went from being just excited and pulling all nighters to display a rectangle in a screen in my youth... to not finding any excitement in any idea, it just feels saturated and that everything has already been made and the effort to get anything going now is doing 90% of meaningless unchallenging work that takes up loads of time for it to get to just a 10% of interesting work.

    And since this is not just a career for me, it has been my hobby and part of me for so long, I feel like I am going through a deep existencial crisis and getting depressed.

    Any of you devs out there going through or who have went through this same feeling and came out of it victorious? Any advice?

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

    Represent Postfix Increment Postfix Decrement PrefixI increment Prefix Decrement in AST grammar

    Posted: 06 Jun 2021 01:42 PM PDT

    i have those rules to build a simple calculator :

    statement -> assignment | calculation

    assignment -> variable '=' sum end

    calculation -> sum end

    sum -> product (('+' product)|('-' product))*

    product -> factor (('*' factor)|('/' factor))*

    factor -> term

    term -> variable | number

    My problem is how to model the rules for :

    Postfix Increment Postfix Decrement PrefixI increment Prefix Decrement

    How can represent it in this grammar above

    so for example if i have the assignment :

    x=1

    j=x++ +2

    the result will be :

    j=3 and i=2

    how to do post Increment after assignment

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

    Hoping to understand this stuff.

    Posted: 06 Jun 2021 05:16 PM PDT

    I'm starting to get interested in blockchain development, seems awesome but Its so many stuff to choose from and I still don't understand a lot.

    Should I become eth developer? Or maybe solana? Or cardano? I dont really understand a lot but want to learn, where to start?

    Os this field worth it?

    I understood simple concepts of blockchain, but there is so much more smart contracts apparently can be written in many languages on many blockchains, but how to decide which one to focus on?

    Defi? Dapps? Games on blockchain, gambling? How does it work, what kind of software can I develop on a blockchain and will it earn money? I'm really confused by stuff I found online but willing to learn from step 0 to learn everything and hopefully land a job in some kind blockchain development.

    I mostly want to start learning and get a job in blockchain field because I believe it is the future and money might be good.

    How to start, from understanding the simplest things to help me understand this technology and start developing.

    What language to learn for this?

    Thanks in advance.

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

    Computing the index of all cells inside a sudoku box by it's index

    Posted: 06 Jun 2021 08:18 AM PDT

    Hi there AskProgramming Community!

    I'm still a coding newbie. I'm building a sudoku solver in Python the learn more about algorithms and decision making. The solver should be able to solve grids with any configuration of box sizes not only standard 9x9 ones. The central data structure for the solver is a generic Grid class, which provides a list of cells and methods for looking up single cells and sudoku structures like columns, rows or boxes. Each cell within the grid could be reference by it's index (Base 0) when numbered from the top left, to the bottom right.

    Given either the coordinates for it's row and column or it's index, I'm able to compute the opposite values for any cell. This provides the possibity to return a list of cells for any row or column of the grid in only N steps, where N is the width of the grid itself.

    To compile a list with all cells inside a specific box, based on it's index, I'm iterating over all cells of the grid, checking wether the index of any cell matches the desired index of that box. This leaves me with N*N steps.

    Here is the code for the class I've written so far:

    class Grid: def __init__(self, m: int, n: int): # Length of grid sides self.N = m * n # Height of sub boxes self.m = m # Width of sub boxes self.n = n # Value range for input validation self.valueRange = {str(i) for i in range(1, self.N + 1)} # List of all cells inside the grid self.cells = [] def calc_index(self, r: int, c: int) -> int: "Calculate index of any cell by it's coordinates." return r * self.N + c def calc_cIndex(self, i: int) -> int: "Calculate column index of any cell by it's index." return i % self.N def calc_rIndex(self, i: int) -> int: "Calculate row index of any cell by it's index." return i // self.N def calc_bIndex(self, i: int) -> int: "Calculate box index of any cell by it's index." box_col = self.calc_cIndex(i) // self.n box_row = self.calc_rIndex(i) // self.m return box_row * self.m + box_col def get_col(self, i: int) -> set: "Return a set of `N` members, representing a column at index `i`" column = set() for j in range(self.N): column.add(self.cells[self.calc_index(j, i)]) return column def get_row(self, i: int) -> set: "Return a set of `N` members, representing a row at index `i`" row = set() for j in range(self.N): row.add(self.cells[self.calc_index(i, j)]) return row def get_box(self, i: int) -> set: "Return a set of `N` members, representing a box at index `i`" box = set() for cell in self.cells: if i == self.calc_bIndex(cell.index): box.add(cell) return box 

    I'm now looking for a more elegant solution for the get_box method. But I can't quite come up with a mathematical solution which also compiles the list in N steps. Maybe some of you have a little insight on this topic.

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

    C++ Assignment Help

    Posted: 06 Jun 2021 03:25 PM PDT

    Hello! I am currently working on a c++ assignment for school and I was wondering if anyone would be willing to help me over a zoom call? (I figure a zoom call would be the best form of communication for this assignment). I am currently trying to implement a merge sort function for my linked list and I cannot get it to work, I have tried two different ways already and have failed lol. I should add that I will compensate you for your help. Please let me know if you are up for it and we can sort out the details through dm. Thank you!

    I am not asking for the assignment to be done for me, I am asking for help solving a problem I am having

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

    Would showing a filtered GPA be better than your cumulative?

    Posted: 06 Jun 2021 09:13 AM PDT

    Not gonna lie, my general subjects I slack wayyyy too much on, my major subjects such as ML related classes have decent grades. Would it be appropriate to show the GPA only of those relevant courses, perhaps something like so:

    Cumulative GPA: 2.5 Algorithms and ML GPA: 3.3

    Any help in building my portfolio would be appreciated.

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

    Smart Bookshelf Project

    Posted: 06 Jun 2021 10:27 AM PDT

    I think it would be really cool to make a smart bookshelf for my English classroom that knows what book you take from the shelf and responds with a little plot summary... I of course know nothing about code or programming. I was thinking RFID or QR codes (on top of the books) to trigger the audio event. Is it possible to create a situation where the absence of a RFID tag will trigger an audio response? What hardware/language can be used? Again, this is a large project for me and I am seeking help wherever I can find it. I appreciate any advice/comments.

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

    Should every microservice have its own integrated database migration tool?

    Posted: 06 Jun 2021 10:26 AM PDT

    So, I just wanted to ask about this because I'm not so sure about it. Let's say you have two microservices that use the same database.

    Are these two services, each supposed to have their own migration tools to stop them from depending on each other?

    Also, should they have their own databases? As in, both should have separate instances of the same database? What if one service just uses like two or three tables?

    This is all very confusing, and I'm not sure how to handle it.

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

    Real-time error checking in CodeLite

    Posted: 06 Jun 2021 09:38 AM PDT

    Hey, does anyone know how to enable real-time error checking in codelite, if it's available? I saw the author said to enable "q build" in a git issue, but I can't find any such feature.

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

    Newbie needs help!

    Posted: 06 Jun 2021 05:04 AM PDT

    I honestly hope this is the right place to ask, if not then please rwmove. Im new to programming and have slim to almost no knowledge about this but wanted to know if anyone could help. Im trying to create a auto clicker for a site that has a button that needs to be clicked every 4 hours - is there a way that I woukd be able to do this whilst using my browser for youtube etc.

    Thank you in advance

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

    Can someone help me analyze time complexity for my solution.

    Posted: 06 Jun 2021 06:16 AM PDT

    This is leetcode problem "1295. Find Numbers with Even Number of Digits" https://leetcode.com/problems/find-numbers-with-even-number-of-digits/

    I know how to do solve this using toString() and using length() method on each array entry mod 2 must equal 0 and finally increment a count as you go along. This would run in O(n) but I tried doing it the way their hints guide you but I don't clearly see what the runtime would be, naively I want to say O(n^2) but I know this is incorrect because the inner while loop won't necessarily loop to n

    class Solution { public int findNumbers(int[] nums) { int result = 0; for(int i = 0; i < nums.length; i++) { int num = nums[i]; int count = 0; while(num != 0) { num /= 10; count++; } if(count % 2 == 0) { result++; } } return result; } } 
    1. What is the runtime of this?
    2. Any suggestions on how to make this particular approach cleaner?
    submitted by /u/Future-Reaction
    [link] [comments]

    Experienced developer learning Javascript, what are the common pitfalls?

    Posted: 06 Jun 2021 05:24 AM PDT

    I'm an experienced developer with 10+ years of experience with many different languages like C#, C++, Java, Python etc.

    I just started learning Javascript and I'm looking for things to be aware of that Javascript might be surprising. Things like the difference between == and === and similar.

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

    Advice: Dakboard-like displays that you can add to?

    Posted: 06 Jun 2021 03:19 AM PDT

    I'm looking to make an calendar display at home using something like Dakboard. However, I'm under the impression that using Dakboard just gives you a display that collated a bunch of calendars into one.

    I want to place the display in my kitchen and use the to-do list as a grocery list, but if I use Dakboard, I'm only going to be able to edit the list using my phone and not be able to directly add to the list from the display itself.

    Does anyone know of a program/site that I can use that will allow me to add to the to-do list and calendars straight from the display?

    (I'm a beginner with this stuff, so any advice would be greatly appreciated)

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

    How can i practice c

    Posted: 06 Jun 2021 02:38 AM PDT

    Hi , i completed a c programming course and i tried to practice at "codewars" but that's so hard , so how can i now practice c programming and make my level better?

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

    No comments:

    Post a Comment