r/ProgrammerTIL • • Nov 12 '17

Java [Java] When an overridden method is called through a superclass reference, it is the type of the object being referred to that determines which version of the method is called.

1 Upvotes

r/ProgrammerTIL • • May 13 '21

Javascript I spent the last 6 months developing a multiplayer game with React.js, Node.js and Spring Boot

12 Upvotes

Hey everyone!

Last fall my friend gave me an app idea - a multiplayer game with rules similar to Cards Against Humanity - each round, a question is displayed and the player with the funniest response gets a point.

I spent a lot of time and effort working on it and I would love you all to share!

Repo link: https://github.com/itays123/partydeck


r/ProgrammerTIL • • Mar 17 '21

C String manipulation on C is a nightmare

14 Upvotes

r/ProgrammerTIL • • Aug 13 '17

Other TIL you can use "say" to invoke Siri on OS X

6 Upvotes

You can convert text-to-speech using OS X Siri's voice from the command line with the say command.

$ say "Hello World"

For more info: https://developer.apple.com/legacy/library/documentation/Darwin/Reference/ManPages/man1/say.1.html


r/ProgrammerTIL • • Feb 24 '17

Python Never use "gg=G" key combination to indent your python code in vim

0 Upvotes

"gg=G" is commonly used key combination to indent code automatically in vim. When used with python there are chances that it will get messed up really bad, since python in itself uses indentation for grouping statements


r/ProgrammerTIL • • Jun 26 '20

Other TIL that code is a language which is easier to write than it is to read, and easier to read than it is to refactor

55 Upvotes

r/ProgrammerTIL • • Dec 17 '22

Other A Powerful palindrome checker in 2 lines of code using POSIX bracket expressions

1 Upvotes

It handles cases such as A man, a plan, a canal – Panama:

https://www.youtube.com/watch?v=LQAxvxsyKLE


r/ProgrammerTIL • • Mar 27 '20

Other Coding Tutorial Channel

0 Upvotes

Hello Everyone, my name is notanexpert guy.

I made a video that explains how to convert a binary number to decimal using C.

In the video , I try to explain some concepts and share some tricks I know when it comes to C programming. Please check it out and if you find it

beneficial, consider supporting me by liking the video.

Video : https://www.youtube.com/watch?v=UNK2Jut3nII

DISCLAIMER: I DO NOT CLAIM to KNOW EVERYTHING about C or even programming in General. (I am also learning), I enjoy sharing knowledge in a digestible form, easy for the beginner to learn. I truly believe this video has some value , although it may not be perfect!


r/ProgrammerTIL • • Jan 14 '17

Javascript [Javascript] TIL many things one can do with Chrome’s Developer Console

2 Upvotes

r/ProgrammerTIL • • May 20 '21

Python Calculation of IRR using Newton Raphson Method

2 Upvotes

r/ProgrammerTIL • • Jan 05 '17

Other TIL about Esoteric programming language

0 Upvotes

r/ProgrammerTIL • • Jan 27 '22

Python [Python] White space dosen't matter ;)

6 Upvotes

In Python, adding whitespace between words and punctuation doesn't affect code

>>> import math
>>> a = [0,1]
>>> math . sin ( a [ 0 ] )
0.0

r/ProgrammerTIL • • Aug 18 '22

C Storing information in a password salt

0 Upvotes

A salt is a fixed length random integer appended to the end of a password before it's hashed in order to make life harder for a hacker trying to bruteforce passwords. But recently I thought, does a salt have to be random? πŸ€” Maybe you could store some useful information inside? Information that could only be retrieved by bruteforcing the password? "That would be a really secure way to store/transport sensitive/private information" -- I thought!

So I decided to write a program in c to test my idea, I called it Pinksalt, because it's a special kind of salt🀩

It's on GitHub if you're interested in having a look!

Pinksalt on GitHub


r/ProgrammerTIL • • Mar 11 '22

Other Any early guidance tools for a n00b?

6 Upvotes

Recently started reading and researching coding and I am extremely interested in exploring this as a career option. I’m interested primarily (I think) in Python, Java, & Solidity. Although I’m interested in reasons why you prefer any language! Any advice y’all have would be appreciated and please share links to free and affordable resources I could utilize!?!

Thanks so much for your support! 😊


r/ProgrammerTIL • • Apr 21 '22

Other TIL you can create links relative to the root of your project folder

0 Upvotes

If you have a project structure like this:

a
β”œ b
β”‚ β”” c
β”‚   β”” d
β”‚     β”” README.md
β”” e
  β”” f
    β”” README.md

Then you can create in a/b/c/d/README.md a link to e/f/README.md with this code:

[link](/e/f/README.md)

Basically you only have to start the path with /. Makes me wonder how it would work in linux systems because / represent the root of the file system. πŸ€”


r/ProgrammerTIL • • Sep 05 '17

Other Language [CSS] TIL you can specify multiple classes in single element

0 Upvotes
<style>
    .x1 {
        border:solid;
        border-width:1px;
    }
    .x2 {
        background-color:lightblue
    }
</style>
<h1 class="x1 x2">TEST999</h1>

r/ProgrammerTIL • • Aug 03 '21

Javascript TIL Boolean('false') == true

23 Upvotes

Yep, it doesn't work like Number


r/ProgrammerTIL • • May 29 '23

Other [Javascript] Learned how to build an LLM app with node and react

0 Upvotes

I built a simple React app with a Node server that connects to Open AI's large language model (LLM). Sharing a tutorial of how to build this LLM React and Node app by following an LLM React and Node javascript template

Tutorial: https://blog.desktopdocs.com/build-an-llm-app-with-node-react-and-langchain-js/

Github repo with project template: https://github.com/golivecosmos/llm-react-node-app-template


r/ProgrammerTIL • • Jun 18 '16

PHP [PHP] TIL cURL doesn't like protocol-relative URLs

0 Upvotes

Hissy fit:

//www.website.com 

Fine:

http://www.website.com

Also fine

https://www.website.com

Half a day spent on that one. Goddamn.

EDIT: So apparently this should be blindingly obvious and I'm an idiot for not knowing it. Coming from a largely self-taught web-dev background, so there's that. Go figure.


r/ProgrammerTIL • • Feb 28 '20

Other 500+ CSS Icons, Customizable, Retina Ready & API

0 Upvotes

Hi πŸ‘‹ everyone,

Would like to share this project I made - https://css.gg

It is a Minimalistic icon library Designed by code.

500 Customizable & Retina-Ready icons. Entirely built in CSS.

The website is also built entirely using CSS & HTML where icon selection is done with radio buttons and no JS whatsoever, even icon selection and cookies are set inline via CSS.

Easy integration: Embed, NPM & API.

And most importantly it is open-source: https://github.com/astrit/css.gg


r/ProgrammerTIL • • Feb 02 '21

Android development I started Android development 3 years back; Feeling nostalgic so thought to post my first program; It might also be helpful for newbies though; Hello world app, You guessed it right.

0 Upvotes

Step 1 : Install Studio

Step 2 : Create a new File

Step 3 : Go to android:XML sub file.

Step 4: Type code

Code is :

<TextView>

android : text = "Hello world";

android: layout_width = "wrap_content";

android: layout_height = "wrap_content";

</TextView>

A little bit of help for those who want to master Android Development: I wrote a blog of my journey as a developer, the courses I took and "How I overcame the problems?" Have it look at the blog here.


r/ProgrammerTIL • • Nov 27 '25

Other I had Learn the Machine Learning, Deep Learning Etc. this stuff for that with NLP what should i learn full stack dev or backend dev.

0 Upvotes

As I need to the guidance to anybody had that. As i am in 2nd year.


r/ProgrammerTIL • • Dec 22 '21

Other The Complete 2022 Flutter Development Bootcamp with Dart

8 Upvotes

r/ProgrammerTIL • • Mar 21 '20

Other Coding Tutorial Channel

0 Upvotes

Hello Everyone, I run a Youtube Channel that focuses on teaching people about the key concepts of coding. Here is a video I made on Input Validation using the C programming language.

I am asking for support to grow and reach my target audience. If you think this video could benefit you or anyone you know, please consider liking the video and subscribing to the channel.

--> Youtube Channel <--


r/ProgrammerTIL • • Feb 16 '21

Python [Python] TIL Python's raw string literals cannot end with a single backslash

41 Upvotes