• Breaking News

    Sunday, October 31, 2021

    I come from a writing-heavy background. I thought coding was going to be as impenetrable as math, but it seems more like logic and writing. Why the heck do people not explain this ahead of time? I avoided all this stuff because I thought it would be like math! learn programming

    I come from a writing-heavy background. I thought coding was going to be as impenetrable as math, but it seems more like logic and writing. Why the heck do people not explain this ahead of time? I avoided all this stuff because I thought it would be like math! learn programming


    I come from a writing-heavy background. I thought coding was going to be as impenetrable as math, but it seems more like logic and writing. Why the heck do people not explain this ahead of time? I avoided all this stuff because I thought it would be like math!

    Posted: 30 Oct 2021 09:20 AM PDT

    Look, I am early in the game, but I really expected to struggle a lot more than I am. I suckkkk at math--literally thought I had a learning disability in it prior to some testing, got all Bs in math in high school, got a C in college math my freshman year, etc. I am absolutely loving my coding classes. It's not like math at all! It's more like reasoning than anything, and I have been doing pretty decent in my classes.

    Does anyone have any feedback on this? Why don't more people talk about coding from the writing side of things? Is it just a lack of writing people in coding? I am really curious about takes on this. I feel like coding could be taught to a lot of people, so long as they like details and puzzles.

    Edit: Thank you everyone for responding! This has been super interesting to read.

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

    How do people code in different (human) languages besides English?

    Posted: 30 Oct 2021 03:09 AM PDT

    All the code I know is in quasi-English. Print, while, for, return, break, etc.

    But how does this work in other languages like Italian, Russian, Mandarin, etc? Is there a French Python interpreter with different keywords?

    imprimer("Bonjour le monde!") 

    What about languages that use alternate alphabets like Kanji - how do they write code?

    Do British template literals in JS use the £ symbol?

    let name = 'Tom'; console.log(`Hello £{name}`); 
    submitted by /u/Monitor_343
    [link] [comments]

    I've trained to be a Data Scientist who works with python, but I think I got hired to do "Full Stack". Help! :(

    Posted: 30 Oct 2021 10:02 PM PDT

    I'm not sure if this is just regular impostor syndrome or I actually did get hired for something that I'm tragically unprepared for. The team I'm on is producing a mobile app that utilizes machine learning and after getting a look at everything I'm feeling really lost.

    Where I am now:

    • Degree in math (BS)
    • Proficient in Python and doing data science with python notebooks
    • I can do SQL queries
    • Some experience in C++
    • Just got my first *real* job

    Stuff I'm seeing:

    • Dart programming language
    • So many "Amazon Web Services" I can't even count them
    • A github repo with a TON of files consisting of miles of code
    • ...da fuck does "async" mean?!

    What's a realistic timeframe to get where I need to be to actually help make this mobile app happen? I'm hitting the tutorials HARD but my brain is starting to get mushy...

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

    Daily reminder that it's ok not to know everything

    Posted: 30 Oct 2021 06:28 AM PDT

    I have to often remind myself it's ok not to know everything in this field. There will always be another software engineer that knows more. Or someone that is better at design than you. There isn't anything wrong with that. What's important is your aptitude to focus on yourself and learn.

    So for everyone that may be struggling or tempted to quit because they feel like they're not good enough just know you're not alone. Learning can be tough sometimes but there definitely are communities out there full of people on the same journey as yourself. This one is a great one for example.

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

    How to get better at documentation?

    Posted: 30 Oct 2021 02:17 PM PDT

    I'm a CS under grad still in the process of exploring things and I've often noticed a lot of people don't know how to write technical documentation for anything, and it seems very important in the industry. Are there any guides I can refer to for getting better at that? Where can I experience in the field?

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

    I’m scared I’ll change my mind about learning programming

    Posted: 30 Oct 2021 11:28 AM PDT

    I've wanted to get into programming for the past 1 - 2 months. I think about it everyday. I'm even planning on buying a laptop for it. I've also thought about pursuing a career in tech since I was in 8th grade as one of my options. But I'm starting to become discouraged. My mom knows I'm thinking of pursuing computer science and I felt very strongly about it but I found out that she doesn't even know what it is and I know she secretly wants me to go into the medical field. What if my passion for computer science is just a silly phase? I'm really bad at math. What if this just isn't for me? Plus I'm a girl and I feel like I'll feel intimidated when I go to college and study CS. Idk if it's appropriate to even post this here but will someone remind me of why I should pursue it?

    submitted by /u/760headaches
    [link] [comments]

    How do you know when your actually ready to start applying for a job as a software developer?

    Posted: 30 Oct 2021 10:28 PM PDT

    I don't feel I'm ready but I hope to be in the next couple of months. I code everyday for hours after work. I'm working on my bachelor's in computer science.

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

    How can I improve my basic implementation of Binary Search?

    Posted: 30 Oct 2021 08:39 PM PDT

    import Data.Maybe

    binarysearch :: (Ord a) => [a] -> a -> Maybe Int
    binarysearch [] _ = Nothing
    binarysearch xs a
    | a == value = Just index
    | a < value = binarysearch (take index xs) a
    | a > value = addMaybe (index+1) (binarysearch (drop (listLength - ceil + 1) xs) a)
    where
    listLength = length xs
    divide = fromIntegral listLength / 2
    index = floor divide
    ceil = ceiling divide
    value = xs !! index
    addMaybe :: (Num a) => a -> Maybe a -> Maybe a
    addMaybe a b
    | isNothing b = Nothing
    | otherwise = Just $ fromJust b + a

    This seems to be very inefficient just by how many lines it takes. Also wouldn't the time complexity of this be O(n) at least because I have to get the length of the list? I'm not new to programming but I am new to understanding data structures and algorithms. Also the language is Haskell and you can probably tell that I'm very much a beginner in it. I would appreciate any help that I can get. Thanks.

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

    Where to start coding

    Posted: 30 Oct 2021 08:33 PM PDT

    I'm trying to learn how to code but I don't know where to start, can someone tell me where to start

    submitted by /u/1029pollo
    [link] [comments]

    How to split a string by colon and store each in a variable

    Posted: 30 Oct 2021 06:44 PM PDT

    I am reading from a file that has a time on each line. I can split by colon using strtok("(:)"). This works and if I printf split, I get each value. The problem is I want to separate these values to 2 variables, an hour and a minute, and only add the hours together and only add the minutes together.

    Example : split 01:23 -> 1 hour and 23 minute. Let's say I have another string 00:12 -> 0 hours and 12 minutes so it will total 1 hour and 35 minutes (23 +12) Is there a way to do this?

    Edit* This is in the c language

    submitted by /u/After-Perception-250
    [link] [comments]

    Is there a way to Embed Encrypted Texts/Binary in a PDF File Through PHP?

    Posted: 30 Oct 2021 10:20 PM PDT

    I'm learning to secure PDF's on my own, and I am at the stage of trying to embed texts/codes inside a PDF file without removing its readability. The modified pdf file should still be read by any pdf reader despite the modification I'm going to do.
    Is there a way to achieve this?

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

    Can anyone share me how and where to start with discrete mathematics ?

    Posted: 30 Oct 2021 09:21 PM PDT

    Since it is must for development

    submitted by /u/Mean-Pin-8271
    [link] [comments]

    What are some forums (reddit) to ask theory of computation/automata theory questions?

    Posted: 31 Oct 2021 12:16 AM PDT

    What are some forums (reddit) to ask theory of computation/automata theory questions?

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

    I want to bring myself back into programming

    Posted: 31 Oct 2021 12:06 AM PDT

    Last year I started learning C++ but dropped it when I found it boring and difficult. Months later I started with python but schools reopened so I had to manage my studies. Now I made up my mind to grind back in programming but don't where to start from. I am unaware about CSS and HTML. Is it valuable to start learning these two first then catch up with other ones?

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

    Is it a good idea to learn HTML and CSS first?

    Posted: 30 Oct 2021 01:47 AM PDT

    Hey guys,

    i was learning javascript the last few days and learned a lot about the basics. But the more i learn, the more i have this feeling in my belly that i should learn CSS and HTML first, because, yeah, just a example: If i can use CSS and HTML, i would be able to style something like a calculator and with java i can give it functions.

    But without css and html its just a console telling me what i did. I really like to see what i did with graphics, like.. yeah.. a calculator or a "my favorite food" randomizer (if i cant dicide what to eat, lol). How do you guys feel about that? Is it a good idea to learn HTML and CSS first, before i dive deeper into javascript?

    Because if i want to make a button, which i press and it says a random food (for example), i have to use css too, or not? because i cant imagine how i could visualize that button with java.

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

    help me understand what this line means

    Posted: 30 Oct 2021 11:39 PM PDT

    Hi,

    I am in a desperate situation as I need to know how to use Ant and I have wasted like a few days and still haven't get the hang of it. Been jumping from one tutorial to the next but nothing is going well for me.

    There is this line at :

    https://ant.apache.org/manual/index.html

    Finally, for this target to work the source in the src subdirectory should be stored in a directory tree which matches the package names. Check the <javac> task for details. 
    1. I tried to copy the entire file in a testdirectory folder but i don't see any package name listed in the example build file.
    2. Is package name same as project name as written inside the sample build file ?
    3. and where is the source file located ?

    Then, I also tried this tutorial at https://ant.apache.org/manual/tutorial-HelloWorldWithAnt.html

    md build\classes javac -sourcepath src -d build\classes src\oata\HelloWorld.java java -cp build\classes oata.HelloWorld 

    I am not sure where to type the command md build\classes ?

    I tried :

    C:\Users\xxx\ant\test_ant\src\oata>md build\classes C:\Users\xxx\ant\test_ant\src\oata>javac -sourcepath src -d build\classes src\oata\HelloWorld.java error: file not found: src\oata\HelloWorld.java Usage: javac <options> <source files> use --help for a list of possible options 

    It is not working out. Hope someone can give me advice on the above

    Tks alot.

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

    Can anyone solve this, using logarithm approach

    Posted: 30 Oct 2021 11:24 PM PDT

    Smallest factorial number | Practice | GeeksforGeeks

    something similar to the approach of counting trailing zeros, can we find the number also?

    int findNum(int n) { if(n==0) return 0; int max_power = (log(n)/log(5)); int ans = 0; for(int i=1;i<=max_power;i++) { ans+=(n/pow(5,i)); } return ans; } 
    submitted by /u/DipeshSaili
    [link] [comments]

    Trying to build a forum on a LAMP stack

    Posted: 30 Oct 2021 10:00 PM PDT

    I'm an IT networking student trying to build a forum for a specific niche and I'm failing to find any relevant sources on the web.

    Are there any tips or tutorials you've come across on trying to build a forum from scratch? I'm been trying dreamweaver and myphpadmin and I'm honestly struggling to make anything work. Any help would be appreciated.

    Thank you!

    submitted by /u/infospec-sysadmin
    [link] [comments]

    Help me understand this piece of code.

    Posted: 30 Oct 2021 09:47 PM PDT

    Saw this in the GeeksForGeeks Operator Overloading section and I want to understand what is happening in the code.

    class Complex { private: int real, imag; public: Complex(int r = 0, int i =0) {real = r; imag = i;} // This is automatically called when '+' is used with // between two Complex objects Complex operator + (Complex const &obj) { Complex res; res.real = real + obj.real; res.imag = imag + obj.imag; return res; } void print() { cout << real << " + i" << imag << endl; } }; int main() { Complex c1(10, 5), c2(2, 4); Complex c3 = c1 + c2; // An example call to "operator+" c3.print(); } // Output (12 + i9) 
    submitted by /u/NerdStone04
    [link] [comments]

    Can't we cheat with Dev tools and if yes how to avoid it?

    Posted: 30 Oct 2021 09:42 PM PDT

    Disclaimer: I am not trying to cheat nor I am endorsing it.

    Suppose I visit stackoverflow and open Chrome Dev tools. Suppose my reputation is handled by a script. Suppose I change my reputation through Dev tools and send an Ajax request to change my reputation in the database from say, 1 to 1000. Isn't it possible? If yes, how to avoid these kind of cheating in my applications where I count the points of the users?

    Thanks!

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

    Confusion about combining languages. Which ones might someone use to develop software?

    Posted: 30 Oct 2021 09:25 PM PDT

    Hello,

    I'm currently working on a CS degree and I'm somewhat familiar with Java but I'm looking to branch out and start tackling some independent projects.

    If I were to try and develop a desktop app, which languages would I need to know? It seems that I could technically get by with Java alone, but then would JavaFX also be helpful for GUI stuff?

    What about web apps? Would it be realistic to see HTML, CSS, JavaScript, SQL, Java, and PHP all in one project? Or is that overkill? I understand the relationship between HTML and CSS in terms of front end, and I know that the others could all be back end languages (with JavaScript being a kind of middle ground), but I'm confused about their relationships.

    Any help would be appreciated. I want to start developing full on software but I'm not sure where to start. All I know is Java, CSS, and HTML. I've looked into JavaFX and it seems promising but I've heard that some consider it a waste of time.

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

    Java program to ask user for a 6 digit sequence of face of a die(1-6), randomly roll the dice until we get the user input sequence. Print the attempt

    Posted: 30 Oct 2021 08:57 PM PDT

    Ask user for a 6 digit sequence of face of a die(1-6), randomly roll the dice until we get the user input sequence in order as the user put it in. Print the number of dice roll it took to print that sequence.

    Example: Enter your sequence: 436232 The sequence '436232' took 872123 dice rolls

    I think we can make a testSequence 000000 and concat every random dice face with the sample string and quit the loop once the concatonated string matches the user input sequence. We're going to add the generated radom numbers to it and remove the leading zero as we add But i dont know how to execute this.

    Any help is appreciated. Thanks

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

    Anyone know of good powershell tutorial that's project based?

    Posted: 30 Oct 2021 03:10 PM PDT

    I'm virtually brand new to programming and looking to learn how to automate a few things at my job.

    Thanks in advance.

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

    Things to learn to automate simple PC tasks?

    Posted: 30 Oct 2021 01:58 AM PDT

    What do I need to learn in order to program simple tasks on my computer, say opening Spotify at 10 AM, or randomly typing input on a typing test website? I'm familiar with basic Java and Python but what skills do I need to learn to do these sort of tasks?

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

    No comments:

    Post a Comment