r/code • • Oct 20 '20

Bot 2048 – Create an artificial player for 2048

9 Upvotes

Hello,

The goal of this project is not to have the perfect bot 2048 but a comprehensible code, strategy and algorithms. Moreover I tried to detail and explain all aspects with a post here.

Enjoy the read !

https://thomas-joly.com/bot-2048-create-an-artificial-player/


r/code • • Oct 14 '20

Where do I type code

9 Upvotes

So I am learning coding. JavaScript at the moment, but I plan to make a simple game from scratch, but I have no idea like where I type this code and how to link it to a game. Do I download something or are there websites I’m just having trouble wrapping my head around it


r/code • • Oct 10 '20

Halp pls! Need some help with the Match action and RegEx that’s used in the Shortcuts iOS app

9 Upvotes

I’m trying to use RegEx to look for the first 3 consonants of a word. For example, let’s say I use Google for my word. The result should be Ggl (case sensitive). However, for words that start with a vowel letter, such as Amazon, the result should be Amz (also case sensitive), which is simply the first vowel letter, the first consanant letter, and the second consanant letter. I haven’t had much luck doing this myself because I’m a complete noob when it comes to coding and unfortunately, I haven’t gotten any input from the Shortcuts sub. Thanks for your help! If you need any additional information, feel free to just ask and I’ll provide it.


r/code • • Sep 11 '20

Anyfiddle - A JSFiddle alternate for any programming language/framework

9 Upvotes

I built Anyfiddle, a platform for developers to write, run, and share code online in any language. It can run any language/ framework and has a bunch of templates to get started fast. This includes NodeJS, Python, PHP, Ruby, Java as well as frameworks like React, Express, Django, Laravel, etc.

Check it out at https://www.anyfiddle.com and give feedback and suggestions.


r/code • • Aug 27 '20

Beginning to code

9 Upvotes

Hi I'm interested in learning code, and I'm not sure what language to learn or where to start. If anyone of you lovely coders would share your knowledge, it would be appreciated.


r/code • • Aug 24 '20

Python Best Example To Make a Menu in Python [Beginner - Intermediate]

9 Upvotes
def print_menu(usr_str):
    menu_op = ' '
    print()
    print('MENU')
    print('c - Number of non-whitespace characters')
    print('w - Number of words')
    print('f - Fix capitalization')
    print('r - Replace punctuation')
    print('s - Shorten spaces')
    print('q - Quit')
    print()      
    print()
    if choice == 'c':
        for ch in usr_str:
            usr_str.replace(' ','')
            print(usr_str)
    elif choice == 'w':
        res = len(usr_str.split())
        print(res)    
    return menu_op, usr_str
    
 
 
if __name__ == '__main__':
    usr_str = str(input('Enter a sample text:''\n'))
    print('\nYou entered:',usr_str)
    choice = input('Choose an option:')
    print(print_menu(usr_str))

r/code • • Aug 17 '20

The 365 days of code challenge

Thumbnail
medium.com
9 Upvotes

r/code • • Aug 15 '20

Best legit coding certificate to get for a beginner ?

9 Upvotes

Doesn’t matter if it’s paid, I would like to have some kind of certificate that I can use when looking for jobs


r/code • • Jun 20 '20

7 year Software Engineer but I still don't understand coding

9 Upvotes

Hello, so where to start. After high school I went to college and majored in IT. Wasn't my idea but someone suggested it would be good to get into. With the world getting into tech and all that. So I did and 4 years later I got my degree in IT. I started working as a software engineer at a company and it'll be 3 years this fall. My entire coding journey has been bad. I think its maybe because I didn't have good professors because one professor literally gave us all A's on a final because he lost the grades. So my foundations started off bad. Now that I've been working in the industry my job may be at risk. I've done coding training at work and also some personal outside of working training. But I don't get why it's just not clicking with my like it does for other people. Being almost 7 years I feel like it should but it just hasn't. I like technology but when code doesn't line up it gets me frustrated, like it does to other devs I'm sure. But they don't get as angry as I do at times. Makes me want to give up because I cant figure it out. I'm just not sure what to do anymore. I want to get better and become a better developer but I just don't know how I can get it in my head and let it click. Any help or feed back is welcomed. Thank you for reading.


r/code • • Jun 16 '20

Resource Coding interview question: 3 sum

Thumbnail
youtu.be
9 Upvotes

r/code • • Jun 04 '20

Python Casual Programming With Python & Music : Pythagorean Calculator

Thumbnail
youtu.be
9 Upvotes

r/code • • Jun 03 '20

Resource Free Udemy Course on Excel VBA Automation & Webscraping

9 Upvotes

Hi Guys,

I came across this course while searching to automate some stuff and webscraping. I am not related to author and definately this is not a promotion (I swear.) You can check out and enroll as it's free for sometime.

You can use Code: XTREMEEXCEL On Udemy: https://www.udemy.com/course/webscrapingusingvba/


r/code • • Jun 01 '20

How the hell is anyone supposed to actually understand programming graphics?

9 Upvotes

Ok so I have been trying to understand graphics programming for awhile now. I want to understand how to do so without using a library ( in other words to actually understand it). I started learning lower level languages such as C/ c++ Only to find out you cant code graphics in pure C/C++, so I moved to assembly. If assembler cant do it then what? hex?? Im so sick of hearing "Anything you can do in one language you can do in another" well apparently that is not the case.


r/code • • Mar 20 '20

Halp pls! How do I code an image link section like this? I get that it's just a row of image links, but how do i get even spacing and keep them looking nice

Post image
9 Upvotes

r/code • • Feb 13 '20

Can someone help me understand how to “scrape” a site?

9 Upvotes

Hi. I’ve always been fascinated by Twitter bots but only recently did I write one in Python and I think I’d like to again. However, for this idea I was hoping I could scrape lyrics off Genius? I understand the purpose and need for scraping, but I’ve always been confused by what the process actually is? How is it “scraping” this data from a site?


r/code • • Feb 11 '20

I summarized the book, which is essential for every developer, "Clean Architecture" by Robert C. "Uncle Bob" Martin

9 Upvotes

I finished the blog post series which i summarized the book "Clean Architecture: A Craftsman’s Guide to Software Structure and Design” by Robert C. “Uncle Bob” Martin."

You can access it using the link here.

Please do not hesitate to contact me, if you have any suggestions to improve it.


r/code • • Jan 31 '20

I am a beginner who wants to get into code what language or script should I start with

9 Upvotes

r/code • • Jan 12 '20

Halp pls! Mining

9 Upvotes

I have always wondered how people are able to dig into a game developer’s code and leak possible information. I don’t know code at all so I was wondering if someone in this community could explain to me how people are able to do that.


r/code • • Dec 25 '19

CAN WE PLEASE APPRECIATE THE AMAZON WEB DEVELOPER WHO DID THIS!?

9 Upvotes

Edit: Not sure why this is getting downvoted, maybe cuz ppl think its fake? u can check for urself tho


r/code • • Apr 25 '19

Hi I want to learn code so I started on a website called code acadeny. I've been stuck on part 2 for about a hour now. Every time I type 1s in like it tells me to do nothing happens ? I understand there needs to be a ";" on line 6 but that's not what its telling me to do it. Its telling me to just

Post image
9 Upvotes

r/code • • Apr 01 '19

I understand machine learning now! Thanks Sebastian Lague

Thumbnail
youtu.be
9 Upvotes

r/code • • Aug 02 '17

Resource Knowing the 20 regular expressions, you can write less than 1,000 lines of code

Thumbnail
devtechup.com
9 Upvotes

r/code • • Feb 12 '17

New Vue.js starter built with Element-UI.

9 Upvotes

r/code • • 24d ago

Linux Development for Linux without a standard C library or any dependencies | Boone

Thumbnail kevinboone.me
8 Upvotes