• Breaking News

    Saturday, May 29, 2021

    What have you been working on recently? [May 29, 2021] learn programming

    What have you been working on recently? [May 29, 2021] learn programming


    What have you been working on recently? [May 29, 2021]

    Posted: 28 May 2021 09:00 PM PDT

    What have you been working on recently? Feel free to share updates on projects you're working on, brag about any major milestones you've hit, grouse about a challenge you've ran into recently... Any sort of "progress report" is fair game!

    A few requests:

    1. If possible, include a link to your source code when sharing a project update. That way, others can learn from your work!

    2. If you've shared something, try commenting on at least one other update -- ask a question, give feedback, compliment something cool... We encourage discussion!

    3. If you don't consider yourself to be a beginner, include about how many years of experience you have.

    This thread will remained stickied over the weekend. Link to past threads here.

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

    Is it just me or are YouTube tutorials on Computer Science Engineering vastly populated by Indians?

    Posted: 28 May 2021 11:12 PM PDT

    Keep in mind, I have nothing against Indian youtubers, as a matter of fact, I like them very much, they explain it very clearly but most of my searches are full of their channels. Is it because of my region or do all of you face the same thing?

    PS: Shoutout to Abdul Bari's YouTube channel.

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

    My teacher's reason for using Dev-C++

    Posted: 28 May 2021 11:43 AM PDT

    Hi everyone. My IT teacher saw that I was interested in programming (I go to a Grammar school where it is not necessary to teach programming) so he decided to give me some lessons in school. I showed him my first program that I wrote in VS using C#. He liked it, but when we started programming he said we'll use Dev-C++. When I asked why he said modern programming IDEs are not good for beginners because they correct their mistakes and they do not teach kids to be attentive to their work. Which I think is pretty reasonable. What do you guys think? I heard that Dev-C is a very outdated IDE.

    Also just came to my mind: He also mentioned the fact that when you first launch VS there are so many functions, modes, etc. that just confuses kids. Which is honestly very true for me. When I first launched VS after the install, I was hella confused.

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

    Recommended coding challenge websites?

    Posted: 28 May 2021 12:23 PM PDT

    Hi,

    I'm looking to increase my problem solving skills and generally motivate myself to write more code.

    What are your thoughts on coding websites such as LeetCode? Do you have a recommendation?

    Thanks!

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

    Can you suggest some free resources to learn software architecture?

    Posted: 28 May 2021 09:00 AM PDT

    I am a Computer Science graduate and have worked 4+ years in an enterprise level software company. I was recently promoted as an Associate Software Architect. Even though I have the technical/coding skills, I doubt whether my knowledge in design and architecture of enterprise software is enough to go further.

    I have a fair understanding about the theoretical concepts. But I need to further read about practical, industry level applications. Also some case studies or papers explaining how the design and architectural decisions have been made when building medium to large level enterprise solutions. Glad if anyone can recommend some free resources I can begin with.

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

    Is there a resource on how linear algebra is used in game development?

    Posted: 29 May 2021 12:47 AM PDT

    I took a linear algebra course a while ago and did ok but I still don't understand how I can use it in a program? Even if I know stuff like multiplying, or adding matrices or finding the eigenvalue I still don't understand how multiplying the matrices changes what happens in the game like how if you multiply it, the character might look up or down, that kind of thing. Or how to express the movement of the character as a matrix.

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

    Music producer diving in with zero experience...where to start?

    Posted: 28 May 2021 02:57 PM PDT

    Hello all, I'm a 32 year old just getting into the world of programming/coding. Ideally, since I'm a music producer, I would like to eventually build music production DAWs/apps/software (mostly on iOS but eventually Windows and Mac). Just from what I've researched, it looks like it will come down to learning Swift, Objective-C, C++, and Java, but I'm really not sure if I know exactly where to start not only in which language to begin with but what text editor, IDE, compiler, or whatever else I need. I just need someone to point me in the right direction if possible. If it helps, I'm able to work in all operating systems including Linux (if that means anything in the grand scheme).

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

    Java Dev Roadmap for beginner?

    Posted: 28 May 2021 12:10 PM PDT

    Hello everyone! I was wondering what would be the best roadmap to learn java at the moment. I'm learning it out of personal interest and want to get to a good level where I can write android apps before going for something like kotlin(heard thats the new android lang now). I am currently taking the MOOC java course from, the university of Helsinki, but I'm unsure as to where to head after that. Any books that could take an absolute programming noob like me to an intermediate or advanced java dev? There's just so much info i feel overwhelmed and second guess everything I start. For now, I'm doing it solely from mooc and yt videos for doubts,No books as such, any and all help is appreciated!

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

    While learning new code do you retain the theory?

    Posted: 29 May 2021 12:53 AM PDT

    Personally I retain only the general idea. Most of the specifics I can understand but fly over the top of my head, especially when I don't need the specifics.

    Is this common?

    Is this a problem?

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

    Python 2 IDE for Android

    Posted: 29 May 2021 12:46 AM PDT

    I am in need of an offline Python 2 IDE for android , i have thought about Pydroid Pro , but its way too expensive , Any help would be appreciated.

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

    Can I learn DART instead of JavaScript ?

    Posted: 29 May 2021 12:24 AM PDT

    Ive been learning HTML and CSS for webdevelopment, what i wanted to ask was can I replace JavaScript for Dart ?

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

    How to keep myself from getting discouraged?

    Posted: 28 May 2021 02:38 PM PDT

    I was trying to start on my first real project today, I had it all planned out and was writing code and then tested it to find nothing worked. 5 minutes of googling stuff later I got everything working except for one thing. I googled it and searched on YouTube and I had it right but in the wrong place, Stack Overflow here I come. I posted my question only to get a big piece of code as a answer. Now keep in mind I knew what most of the code meant and knew that I was capable of pushing on but the shear amount discouraged me sooo much, now there was not a ton of code but it was more than I had ever written from scratch. Can anyone give me some tips on how to not get discouraged by coding

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

    What are Enterprise Integration Patterns?

    Posted: 28 May 2021 11:43 PM PDT

    I am at chapter 11 of Spring In Action, Sixth Edition. The author talks about Spring Integration, and integration flow, and a whole bunch of high level stuff I could not understand.

    Apparently, Spring Integration is a library that implements Enterprise Integration Patterns. Well... Isn't everything an integration? To me, saying a library handles "integration" is like pointing to a part in a car and say it handles "travel".

    I mean, up until now I have made HTTP requests between clients and servers and 3rd party API's. Isn't that integration?

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

    Is it a bad idea to build your own pos from scratch in 2021?

    Posted: 28 May 2021 11:32 PM PDT

    Hi everyone, I had a few clients came up to me and asked me if I could provide them with a custom POS solution software. for the moment I said yes.

    But now when I sat down and gave it a thought, I realized that all 3 are from different fields of life having different requirements and design specifications. Which will require me to make 3 separate software.

    Now the thing is, there are dozens of open sources and paid pos already out there.

    what should I do?

    Should I refer them to one already built that is close to their requirements or should I sit down and spend my time and sweat building a custom solution for each specific individual from scratch?

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

    Why do some UI applications look better in some languages than others?

    Posted: 28 May 2021 07:29 PM PDT

    I've heard that Java isn't great for UI applications because JavaFX or Swing aren't great compared to what other languages offer. Can someone create a library that matches something another language could do? What limits java?

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

    At what threshold is an amount of data large enough that it should be retrieved from a database call instead of being held in memory in a list/map structure?

    Posted: 28 May 2021 10:08 AM PDT

    To give a more concrete example, let's say I have strings for processing from 1 column in my DB and I can choose to call the DB to get the strings to process or call the DB once to get all the strings periodically (hourly, daily).

    • Can 10,000 strings be held in memory in a structure array/map?
    • 100,000?
    • 1 million?
    • 10 million?

    Or should it be a consideration of the ratio of how much memory is on the system/server to how much memory the cache takes up?

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

    Learning React and Javascript simultaneously?

    Posted: 28 May 2021 10:27 PM PDT

    Guys is this possible? I feel like trying to fully understand JS and then jump into React is a very long journey. What do ya'll think? And when can you consider yourself to have truly understood JS concepts. Is it knowing what they do like a for loop for instance, you know what it does, is that considered as you have understood or knowing the syntax itself too? I'm sorry if these are very detailed questions but I'm trying to do things as efficiently as possible and not waste time.

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

    How do I convert string to value

    Posted: 28 May 2021 06:32 PM PDT

    Hello all,

    I'm not sure if this is possible. but I have string variable that contains a code

    test: "Datetime.now"

    and I want to the string converted as a value into datetime variable.

    Does anyone know how to convert this?

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

    Self taught programmer looking for some "formalism"

    Posted: 28 May 2021 10:17 PM PDT

    Mathematician here. I've learned almost all my programming through quantitative projects over the last few years. I think I've gotten decent but I lack the formalism, for lack of a better term. I am only vaguely familiar with things like OOP or proper syntax. I just know as much as I have had to learn to get my job done, this includes the basics like arrays, if/then/switch statements, functions, loops...etc, which I think I can do pretty well.

    At the moment I am most comfortable working in Python and MATLAB. I have dabbled in C/C++ and also R but not to any great extent. I really would like to properly learn C++ and further my Python knowledge, but I have no idea how to do this as I've never learnt programming from a course or from a book.

    As a side note I would also love to get a good grasp on Linux.

    Any suggestions?

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

    Guide a beginner to learn Python after some basic practises

    Posted: 28 May 2021 09:52 AM PDT

    I watched Python FCC YT tutorials and learned some Python from w3 schools. Ig i am familiar with the syntax. So How to learn more Python (next)? I want to do back end dev if that matters.

    Thank you for your time.

    submitted by /u/Put-asmileonthatface
    [link] [comments]

    Help! I'm not about to understand the concept of this drag race problem.

    Posted: 28 May 2021 09:05 PM PDT

    Here is the link

    Each of these points has to be a midpoint of a separate track, and each track has to be aligned with one of cardinal directions (either horizontal or vertical). Of course, no tracks may have a common point due to obvious safety reasons.

    I know Cardinal directions are the four main points of a compass: north, south, east, and west. But how is it used in this problem?

    Each of the next n lines contains two integers xi and yi− midpoint of the respective track All n points are distinct.

    What are those midpoints? Where are they located?

    How can we determine the direction by bunch of points? Should we use Cartesian coordinate system?

    Overall, I didn't understand concept of the directions and midpoint of the tracks and how they are used to find length of the tracks.

    Edit: typo in the title. It's able , not about.

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

    I want epoch time in GMT in java

    Posted: 28 May 2021 09:04 PM PDT

    I tried few methods and is working fine in my local machine but somehow on servers, the same code is creating time of 20 minutes earlier wrt GMT time. Anyone has any idea?

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

    Distributed Database for social media

    Posted: 28 May 2021 08:57 PM PDT

    I was honestly getting fed up with censorship on major social media platforms and I was thinking would it be possible to create some sort of distributed database that can be used to store data for a social media app (I didnt really think that blockchains would work as they keep all the data and this would take up too much storage especially for the use of social media apps). What i was considering was something similar to bittorrent where the followers of a certain influencer would help store the influencers data in order for users to be able to access this data even if the person who posted it is offline. I do realize that this idea isnt perfect so I was hoping someone here with more experience would be able to give me some advice on how this could be improved upon. Thanks.

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

    While loop not working in RStudio

    Posted: 28 May 2021 08:21 PM PDT

    x1 <- 0 y1 <- 1 h <- 0.1 x2 <- 1 while(isTRUE((x1 < x2))) { y2 <- y1 + (h * (x1+y1)) y1 <- y2 x1 <- x1 + h } print(y2) 

    This loop executes for 1 extra iteration than intended. Does '<' mean '<=' in Rstudio ?

    Intended y2 = 3.187485

    Obtained y2 = 3.606233

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

    getting manager is null error when trying to add actionperformed to button

    Posted: 28 May 2021 08:20 PM PDT

    so I have two screens (Guis created in swing), Setup.java and MainScreen.java . The main class for my code is called RocketManager.java

    I have a button in Setup that when I click it should take me to MainScreen. so in my RocketManager class I have a method launchMainScreen which creates a new main screen. so In setup I call it first like

    private RocketManager manager;

    then manager.launchMainScreen(); but when I run my code I get the error that manager is null?

    This Is my RocketManager code

    public class RocketManager { String name; ArrayList<Rocket> RocketList = new ArrayList<Rocket>(); public String getName() { return name; } public void setName(String newName) { name = newName; } public ArrayList<Rocket> getRocketList(){ return RocketList; } public void setRocketList (ArrayList<Rocket> newList) { RocketList = newList; } public void launchMainScreen() { MainScreen mainWindow = new MainScreen(this); } public void closeMainScreen(MainScreen mainWindow) { mainWindow.closeWindow(); } public void launchSetup() { Setup setupWindow = new Setup(this); } public void closeSetup(Setup setupWindow) { setupWindow.closeWindow(); launchMainScreen(); } public static void main(String[] args) { RocketManager manager = new RocketManager(); manager.launchSetup(); } } 

    This is my Setup. java class (the button code is at the bottom of this code block)

    public class Setup { private JFrame window; private JTextField textName; private RocketManager manager; public Setup(RocketManager incomingManager) { manager = incomingManager; initialize(); window.setVisible(true); } public void closeWindow() { window.dispose(); } public void finishedWindow() { manager.closeSetup(this); } /** * Launch the application. */ public static void main(String[] args) { EventQueue.invokeLater(new Runnable() { public void run() { try { Setup window = new Setup(); window.window.setVisible(true); } catch (Exception e) { e.printStackTrace(); } } }); } /** * Create the application. */ public Setup() { initialize(); } /** * Initialize the contents of the frame. */ private void initialize() { window = new JFrame(); window.setBounds(100, 100, 625, 495); window.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); window.getContentPane().setLayout(null); JButton btnAccept = new JButton("Accept"); btnAccept.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { manager.launchMainScreen(); } }); btnAccept.setBounds(473, 405, 89, 23); window.getContentPane().add(btnAccept); } } 

    This is my MainScreen java

    public class MainScreen { private JFrame window; private RocketManager manager; public MainScreen(RocketManager incomingManager) { manager = incomingManager; initialize(); window.setVisible(true); } public void closeWindow() { window.dispose(); } public void finishedWindow() { manager.closeMainScreen(this); } /** * Launch the application. */ public static void main(String[] args) { EventQueue.invokeLater(new Runnable() { public void run() { try { MainScreen window = new MainScreen(); window.window.setVisible(true); } catch (Exception e) { e.printStackTrace(); } } }); } /** * Create the application. */ public MainScreen() { initialize(); } /** * Initialize the contents of the frame. */ private void initialize() { window = new JFrame(); window.setTitle("Rocket Manager Main Screen"); window.setBounds(100, 100, 625, 496); window.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); window.getContentPane().setLayout(null); JLabel lblHello = new JLabel("Hello Starman!"); lblHello.setFont(new Font("Tahoma", Font.PLAIN, 16)); lblHello.setBounds(10, 11, 239, 14); window.getContentPane().add(lblHello); JButton btnChosen1 = new JButton("Rocket 5"); btnChosen1.setBounds(23, 70, 166, 145); window.getContentPane().add(btnChosen1); JButton btnChosen2 = new JButton("Rocket 2"); btnChosen2.setBounds(226, 70, 166, 145); window.getContentPane().add(btnChosen2); JButton btnChosen3 = new JButton(""); btnChosen3.setBounds(420, 70, 166, 145); window.getContentPane().add(btnChosen3); JLabel lblRocketName1 = new JLabel("Name: Falcon 9"); lblRocketName1.setFont(new Font("Tahoma", Font.PLAIN, 16)); lblRocketName1.setBounds(23, 248, 166, 14); window.getContentPane().add(lblRocketName1); JLabel lblFuel1 = new JLabel("Fuel: Empty"); lblFuel1.setFont(new Font("Tahoma", Font.PLAIN, 16)); lblFuel1.setBounds(23, 288, 128, 14); window.getContentPane().add(lblFuel1); JLabel lblCleanliness1 = new JLabel("Cleanliness: clean"); lblCleanliness1.setFont(new Font("Tahoma", Font.PLAIN, 16)); lblCleanliness1.setBounds(23, 331, 146, 14); window.getContentPane().add(lblCleanliness1); JLabel lblRocketName2 = new JLabel("Name: Space Shuttle"); lblRocketName2.setFont(new Font("Tahoma", Font.PLAIN, 16)); lblRocketName2.setBounds(226, 248, 166, 14); window.getContentPane().add(lblRocketName2); JLabel lblFuel2 = new JLabel("Fuel: Low"); lblFuel2.setFont(new Font("Tahoma", Font.PLAIN, 16)); lblFuel2.setBounds(226, 288, 98, 14); window.getContentPane().add(lblFuel2); JLabel lblCleanliness2 = new JLabel("Cleanliness:"); lblCleanliness2.setFont(new Font("Tahoma", Font.PLAIN, 16)); lblCleanliness2.setBounds(226, 331, 140, 14); window.getContentPane().add(lblCleanliness2); JLabel lblRocketName3 = new JLabel("Name:"); lblRocketName3.setFont(new Font("Tahoma", Font.PLAIN, 16)); lblRocketName3.setBounds(420, 248, 65, 14); window.getContentPane().add(lblRocketName3); JLabel lblFuel3 = new JLabel("Fuel:"); lblFuel3.setFont(new Font("Tahoma", Font.PLAIN, 16)); lblFuel3.setBounds(420, 288, 40, 14); window.getContentPane().add(lblFuel3); JLabel lblCleanliness3 = new JLabel("Cleanliness:"); lblCleanliness3.setFont(new Font("Tahoma", Font.PLAIN, 16)); lblCleanliness3.setBounds(420, 331, 89, 14); window.getContentPane().add(lblCleanliness3); JButton btnClean = new JButton("Clean Rocket"); btnClean.setBounds(23, 383, 128, 47); window.getContentPane().add(btnClean); JButton btnRefuel = new JButton("Refuel Rocket"); btnRefuel.setBounds(226, 383, 128, 47); window.getContentPane().add(btnRefuel); JButton btnQuit = new JButton("Quit"); btnQuit.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { finishedWindow(); } }); btnQuit.setBounds(420, 383, 128, 47); window.getContentPane().add(btnQuit); } } 
    submitted by /u/hollym123
    [link] [comments]

    No comments:

    Post a Comment