Is programming field evolving? If so, in what directions? What are obstacles? Ask Programming |
- Is programming field evolving? If so, in what directions? What are obstacles?
- When an IDE 'corrects' my parenthesis or quotation marks, but causes a syntax error because I didn't expect the IDE to remove/add one. Whos at fault? Bad programmer or try-hard-IDE?
- Client or server-side rendering for this application?
- How do i put 2 tables, one large, one small, side by side, in HTML? I need the larger one on the left, and the smaller one to be on the right. I also have a running ticker on the bottom of the page that needs to stay in place.
- Comment block for multiple functions or separate them
- How to calculate percentiles given array of numbers?
- What will be the time complexity of empty loops? Also another related doubt in Cormen's algorithm book
- combining applications like a main GUI with several other programs
- im kinda lost
- [MySQL][Database]Insight needed on transactions and their behavior with unique indices [long'ish]
- Need help understanding some basic things in C
- Why does bitwise XOR sometimes add operands rather than XOR them in calculators?
- What programming languages should I learn?
- Which career would be closer to the management?
- Definition of data domain for data mesh
- I want to get list of free games from epic game store, I know python and don't know where to start or what to do? What can I use ?
- What is your opinion of codeclimate?
- Python online ide
- Code in C++ won’t update in terminal
- I can’t understand packages and header files please helppp
- Which tools do I use for this?
- C# vs Python speed for API calls?
- Is this some kind of standard way to specify JSON structure with XML?
- Too many re renders error in react
Is programming field evolving? If so, in what directions? What are obstacles? Posted: 09 Oct 2020 06:16 PM PDT |
Posted: 09 Oct 2020 04:55 AM PDT I'm sure everyone has run into this before. I guess my question is, are these auto corrects standard through IDEs and should be learned? Should I always be working left to right, never correcting/fixing from right to left? Maybe it sounds like a trivial question, but when it happens a few times a week, I'm looking to save those few moments of headache. [link] [comments] |
Client or server-side rendering for this application? Posted: 09 Oct 2020 01:26 PM PDT Hi all! I'm wanting to play around with an application idea that's been coming to mind, and I'm not entirely sure if I should be going about client or server-side rendering for this use case. One of my main tasks is querying an API (Spotify) for a list of musical artists and then displaying these artists in list format. The way I see it, I could use something like Jinja2 to render this HTML prior to loading the page, or I could use some AJAX and dynamically generate the list directly on the DOM. Happy to elaborate more, but what sort of considerations should I be making here? Is there a painfully obvious path forwards I'm missing here? Seems the Jinja2 templating would be more straightforward, so should I be defaulting to that until I'm dependent on creating a single page app or something? Thanks! [link] [comments] |
Posted: 09 Oct 2020 10:04 AM PDT The table on the right side of the screen is more informational, whereas the one on the left is the main table showing all the info in my database [link] [comments] |
Comment block for multiple functions or separate them Posted: 09 Oct 2020 10:18 PM PDT I have some of the functions that are simple one-liners that have two possible definitions depending on the environment. Within my program currently they are defined as such: While command1, command2, altcommand1 and altcommand2 are one-line, they aren't easy to remember and have even harder to remember arguments, hence why I made them functions (there's also about 12 of them, not 2, each with different types/number of parameters). That also means while the names may be descriptive enough to figure them out, I'd prefer to use good commenting practice all the same and have a comment block for these functions. The debate I'm currently having with myself is how to deal with this. Should I use a comment block for all of them to keep the Or should I do each individually and just repeat the conditional check (which seems horribly inefficient): Or is there some better way I could be dealing with this? I realize this is just commenting, and not some complex programming problem, but I'm actually finding this harder to decide than any of the actual coding issues because none of the solutions seem particularly efficient or elegant and there don't seem to be any examples I can draw on. Any input appreciated. [link] [comments] |
How to calculate percentiles given array of numbers? Posted: 09 Oct 2020 09:57 PM PDT I want to calculate percentiles given an array of numbers but can't really find the formula for it... It's been a while since stats class. Could someone help? Can be in python or powershell or java [link] [comments] |
Posted: 09 Oct 2020 08:50 PM PDT Say for example, I create a while loop that does nothing: I have this doubt because I was reading the algorithms book by cormen and in it, there was this example of incrementing a binary number for calculating time complexity: Here, length is the length of array A which is an array of bits containing a number in binary format. In the book, it says that the time complexity for n increments in the worst case is o(n). But isn't it o(n^2) as for each call for increment, it iterates through each bit of the array? So, o(n) for iterating, and another o(n) for n calls. So it's o(n^2). Please clear my doubt why this isn't so? Also, next it says that the actual time taken (not worst case) is proportional to number of bit swaps. So do we ignore the time taken to iterate through the bit array? That makes me wonder, that if a loop does nothing, are you supposed to ignore that time? [link] [comments] |
combining applications like a main GUI with several other programs Posted: 09 Oct 2020 04:24 PM PDT Purely a learning experience as it has been done by people way better than I at programming but how're those written? Background: I have an old Xbox with XBMC on it and it has a GUI with emulators, old media applications and dead services. What if I wanted to make a much smaller version and take for example, a GUI clock obviously open sourced though I can easily write my own in SFML and mash it into a .cpp file, would it just call whatever initialized that GUI? how would you determine the initialization point of large cod bases for example those old XBMC programs that were mashed into XBMC the GUI? [link] [comments] |
Posted: 09 Oct 2020 11:09 AM PDT i have started my engineering degree this week and it requires c++ programming skills. But i just have a basic understanding of what coding and c++ is and thats about it. How can i learn c++ faster? Can you reccomend me any books, articles, videos etc. ? Thank you so much in advance!! [link] [comments] |
[MySQL][Database]Insight needed on transactions and their behavior with unique indices [long'ish] Posted: 09 Oct 2020 02:37 PM PDT TL;TR user_1 is inserting a value in table, value of column_3 is generated based on number of items in table (which has a unique index) using a transaction. at the same time and before committing the transaction, user_2 starts a similar transaction. Would user_2 be able to generate the same value in column_3 as user_1 (repeated value) and then result in an error and this operation is rerolled. Does SELECT include results that are still hanging in transactions? . I'm going to get right into the issue. My onling invoicing system produces both invocies and quotations. I do maintain an auto_incremented primary key for each table which also happens to be the serial to the released document. [table_invoices] [table_quotations] [Problem_1] Producing an invoice/quotation is done using transactions. This is fine, however whenever this operation fails due to user input errors, the auto_incremented value is reserved and then skipped. Which results in invoices with the following sequence: 101, 102 ,(skipped due to transaction not being committed),104 This really does look sketchy for anyone from management...On paper it seems like someone intentionally skipped a serial and pocketed whatever the amount was on that invoice. [Problem_2] We plan on adding additional document types with the same structure. Think of it as having different lines of invoices with different policies (different serials). So now I'm questioning, why split invoices and quotations in the first place. Adding additional tables is just asking for trouble down the line. My current solution. Single table with: [column_1]-->[id]: Primary key, auto_increment. [column_2]-->[document_type]: "invoice" or "quotation" or "invoice_B"..etc. [column_3]-->[serial](printed on document): separate counter for each document type. And I'm going to add a combined unique index on [column_2,column_3] So that I could have invoice with serial 101 and an unrelated quotation with the same serial. I already took care of generating the serial for each document depending on its type and how many of this type are already registered. This is done in the same INSERT query using this: I also took care of the null case in a longer version. This way I don't need to pay attention to [id] even if its skipping numbers. since it serves only the purpose of being a primary key not a printed serial on documents. Here is my technical question...Auto_incremented values get assigned and reserved during a transaction. user_1 has started the transaction and the invoice is added with [invoice][serial]=100 and he is still inside the transaction.... At the same time, user_2 began another transaction. Would the system acknowledge the reserved [100] from above? or since its within a transaction it's not committed yet and I simply have to live with the fact that one of these requests will get rerolled? They key factor here is the way I'm generating the serial, which looks in the available data. Would the first transaction value [100] be made available for the system in the second one , I mean, would a SELECT statement catch an inserted result that is yet to be comitted? This is really screwing with me and I could use some help. [link] [comments] |
Need help understanding some basic things in C Posted: 09 Oct 2020 12:37 PM PDT Hi! I would like to know the explanation to some things that I saw people do so that I can understand it and not just copy code. My first question is, when someone does: How do I know that struct list *next; is the next node in the list? How does it work? My second question is, when someone does: What does the (node*) mean? Thanks in advance! [link] [comments] |
Why does bitwise XOR sometimes add operands rather than XOR them in calculators? Posted: 09 Oct 2020 03:25 PM PDT Hello everyone, I asked this question on Stack Overflow but no one will bite. I have a group of bit patterns and my goal is to perform a logical operation with a mask on each of them so that the result will remain unchanged if the most significant bit is 0. I thought I'd use XOR to do this. For example: But when I put this in a bitwise calculator (for me it's Windows Calculator, but also online calculators, the result looks as if I added the values instead of XOR'd them. These are the results I get instead: I'm wondering why this is. I did some testing and out that the issue only happens when one of the bit pattern is 0100 or above. Can someone please give me insight on this? BTW I'm doing the XOR operation at the bitwise level. I line up each bit in the first pattern with the corresponding bit in the second pattern. Here's the SO question in case anyone wants to answer there. https://stackoverflow.com/questions/64273876/why-does-bitwise-xor-sometimes-add-operands-rather-than-xor-them-in-calculators [link] [comments] |
What programming languages should I learn? Posted: 09 Oct 2020 02:29 PM PDT I have a good understanding of python and an okay understanding of java. Should I learn more about java or should I learn another language instead? [link] [comments] |
Which career would be closer to the management? Posted: 09 Oct 2020 10:14 AM PDT Hi, I decided to have a career in the IT industry. My aim is to be part of the management within 2 years. Right now, I have learnt JavaScript, TypeScript (React) and Java (Spring). Integration tools which I do not focus on yet (I decided to focus development before integration since I believe No-Code tools is going to be the king in the integration), it was nice learning them: Firebase product line such as Cloud Functions, Google APIs, and others such as Docker and Odoo ERP. From what I aware of, I am comfortable with both TypeScript and Java. I found similarities and can switch back and forth. I did realize that you need to focus on specific framework to have a good software development (I spent weeks to optimize teamwork and best practices with React Router DOM with Route Configs as the core, and during my 2 weeks learning Java, I am still figuring out the best practice in Java). From your experience, which (backend, frontend, fullstack, tech evangelist, recruiter) have the best chance to be promoted to the management? Feel free to share if you have different point of view I should focus on. [link] [comments] |
Definition of data domain for data mesh Posted: 09 Oct 2020 10:04 AM PDT We are trying to implement the data mesh, and a theoretical question arose - what formal definition you can give a domain from domain drive design, only in relation to data. What formal restrictions would you give for this set of entities and attributes [link] [comments] |
Posted: 09 Oct 2020 01:02 PM PDT I want to get the list of free games from epic through python code so I can send the links with countdown timer to myself or anyone something like a automated system. What do I need to start with this small project? [link] [comments] |
What is your opinion of codeclimate? Posted: 09 Oct 2020 08:59 AM PDT I personally don't have much experience with codeclimate, but a lot of devs on my team hate it and ignore most of it's suggestions. What is y'all's experience with codeclimate? Is it useful? Is there a certain configuration you would recommend? We have it set up in React and go repos. [link] [comments] |
Posted: 09 Oct 2020 03:43 AM PDT whats wrong with the code above? i am using this online ide: [link] [comments] |
Code in C++ won’t update in terminal Posted: 09 Oct 2020 11:24 AM PDT Trying to test some simple text code in the terminal in visual studio code, but it won't update when I change anything in the code I am very new to coding, just simply writing a piece of code that says "You have (int. value) pieces of pie" This code works, but when changing anything, whether it's be changing the int. value or the text, really anything, it won't update the changes in the terminal when I want it to print the code again, help? [link] [comments] |
I can’t understand packages and header files please helppp Posted: 09 Oct 2020 06:06 AM PDT Please help me understand packages in java and header files in cpp. Anyone I asked just gave me a vague idea what these mean but I think I need to have a good understanding of these topics to lay a solid foundation. And ik this question might have been asked thousands of times and I am sorry for this. [link] [comments] |
Which tools do I use for this? Posted: 09 Oct 2020 09:02 AM PDT Hi everyone! I know 0 (zero) coding but I was given a task. Time to learn today! Here is the gist of the assignment: I want to create a website (online or offline) where people can input data into a blank form, each form has individual cells. Maybe one blank form has 10 cells but the other has 6 (they are specific to that person) Then I am interested in taking one particular cell (or two ... i don't know at this moment) and forward that inputted data to the other persons form. so it's a daisy chain forwarding only specific information from one user to the next who only needs to know that detail for them to move forward with a task which coding language would I use to code this? after a week of research, it seems I would have to use SQL stacking? Not sure. Any help and guidance will be appreciated! *** Google sheets will not work since it has a character limit and lags the closer you get to that character limit. [link] [comments] |
C# vs Python speed for API calls? Posted: 09 Oct 2020 08:20 AM PDT How does C# compare with Python for speed in API calls? Is C# still significantly faster in these situations? or does it depend on the API [link] [comments] |
Is this some kind of standard way to specify JSON structure with XML? Posted: 09 Oct 2020 08:08 AM PDT Not sure if this is the best place to ask this, but /r/xml is not nearly as active. I'm working with some software where you can import JSON data. To do so, you need to specify the layout with XML. To import: you would specify: My problem is I don't know how to define a structure any more complicated than that, with nested lists and containers. So, I'm wondering if this XML is any kind of standard that I can find more information on, or if it's proprietary to this software. I haven't had good luck Googling and I have reached out to the developers for more information, but that may be a while. EDIT: Turns out it is converted to XML automatically and then I can use xPath to navigate the elements in my layout file. [link] [comments] |
Too many re renders error in react Posted: 09 Oct 2020 08:04 AM PDT hey guys the problem i m having is that i have a handleClick handler in ErrorPage which triggers a context called setArrivalId to set the id from a map function I did in the bottom. By doing this i get the too many re renders error in react, the error page state that I got this error due to a handleSubmit in my FrontPage component. Can anyone plz help solve this, was bangin my head with this problem :(. If more info is needed just tell me here is the code:https://codesandbox.io/s/admiring-jennings-l8wuc?file=/src/components/ErrorPage.js [link] [comments] |
You are subscribed to email updates from AskProgramming. To stop receiving these emails, you may unsubscribe now. | Email delivery powered by Google |
Google, 1600 Amphitheatre Parkway, Mountain View, CA 94043, United States |
No comments:
Post a Comment