#Cajun Code Camp

207 messages · Page 1 of 1 (latest)

pastel sinew
#

W3lc0m3

#

This is a forum for people looking to begin their coding journey. Enjoy :>

modern cave
#

hey! i would like to begin coding however i am very overwhelmed by the amount of resources out there

pastel sinew
# modern cave hey! i would like to begin coding however i am very overwhelmed by the amount of...

I understand. Typically a lot of people tend to find sticking to a more linearly structured learning system is more intuitive. Like "Learn this, do these exercises, move on to the next concept." And kind of accumulate knowledge and understanding until you're "qualified" enough to work on a real project. With programming, a lot of the times that's not the most efficient way to learn. Try to, 1) pick a programming language you would like to learn. 2) Learn some coding fundamentals, and some language-specific fundamentals. 3) Try and build something. It could be anything. Try and create a basic shell (which is just a terminal you type commands in and produces an output). Maybe build a webpage. Maybe build a discord bot. There's lots of ideas out there that you can pick. Pick whatever interests you. In short, go to the page in the image below. It'll help guide you in your first steps. It basically explains what I just said.

jagged raven
#

In case anybody's interested in exploring some projects in Java/basic python/js/Bash/C# here's my page https://github.com/nsgwick . Would be interested in seeing anyone's work in java, bash or python 🙂 I'd also be happy to answer any java or (simple) python coding questions as well as others here 🙂

jagged raven
thorny silo
obsidian sinew
#

Are you guys familiar with 'Advent of Code'?
I'm joining my fellow students from uni for the first time in this challenge of solving daily coding puzzles in December.

jagged raven
obsidian sinew
#

just google it. you can do it in any language as far as I've understood. Every day you get 2 puzzles, and every day will be harder than the day before.
If you're really fast you can even get on a leaderboard (speedcoding component), but since it's my first time, I'll just go for solving as many puzzles as possible at my own pace.

jagged raven
#

Has anyone tried or does anyone run Linux here?

obsidian sinew
plucky lily
thorny silo
jagged raven
# tacit lily https://tenor.com/view/rq-yay-rq-yes-cat-rq-rq-yes-yes-yes-gif-20226294

Do u have a favourite distro? I had a real long-term problem distrohopping like most people. Or are there ones you prefer (which ones)? Right now I just use windows 10 because it's best for compatability with what I need for college etc. - but I have EndeavourOS dual-booted (despite not having booted on it for months). I made my own Arch linux installation scripts which were fun to run lol. I'm really interested in just coding software for the command line or something. are you too or just interested in general?

tacit lily
storm aspen
#

Who work with javascript? 🤓

pastel sinew
fresh zinc
#

hello gang, I'm new to coding and this is my first exercise with the string functions that I just learn, also, is there a way to show characters before the pointer?

pastel sinew
fresh zinc
#

Thanks @pastel sinew , I will try and let you know

pastel sinew
#

But do u understand why it works tho?

mossy coral
fringe epoch
restive charm
ruby grove
#

Am going to start doing the problems on project Euler 👍

carmine glen
#

CCC

restive charm
#

Im kind of confused about return in Java script can anyone explain that to me

fair gate
#

I have always wanted to learn coding but i can't find the right steps there are lots of resources out there. Where should i start from?

carmine glen
# restive charm Im kind of confused about return in Java script can anyone explain that to me

as I read from dev mozilla, return statement ends a function execution

function getRectArea(width, height) {
  if (width > 0 && height > 0) {
    return width * height;
  }
  return 0;
}

console.log(getRectArea(3, 4));
// expected output: 12

console.log(getRectArea(-3, 4));
// expected output: 0

so there the first output is 12 because 3 and 4 both are > 0, conditions were met, but else when it specified -3, the condition didn't met (because the condition has &&) thus return 0 means return the number 0 because there is no output to return from the function since the conditions weren't met.
but that's just one thing that return does, I didn't finish the article by https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/return#try_it
@restive charm

restive charm
#

oohhh i get it now thanks!

carmine glen
#

if you're looking for roadmaps : https://roadmap.sh/

vagrant hemlock
#

@weak epoch this ☝️

lost veldt
#

ok thx I didn't know about did either

vagrant hemlock
#

@worthy minnow This is the coding forum! I believe you were asking about it

worthy minnow
#

Thank You @elfin ibexi

obsidian sinew
#

What language are you studying @worthy minnow ?

worthy minnow
#

@obsidian sinew I have little experience with Python but want to polish it up and understand it properly. Also looking into DevOps Tools and concepts. What about you Sharon ?

obsidian sinew
#

I'm currently learning Java. And this month I also want to start learning some SQL.

worthy minnow
#

@obsidian sinew With Java, are you covering concepts or currently in coding phase ?

obsidian sinew
worthy minnow
fringe epoch
keen pewter
sour hemlock
#

Hello. I would definitely like to learn coding, in fact I will be taking computer science in uni. But I dont know where to start, there are too many resources.

obsidian sinew
sour hemlock
# obsidian sinew What do you want to do with coding? And what language is thought at your uni?

The syllabus includes C language programming, JAVA, artificial intelligence, Python. There are more of them, but some of them are theory based like operating systems and fundamentals. Plus I dont really have a direction that I think I will have in coding as I have not yet tried it myself. I wish to decide it after I somewhat get an idea of what different forms of coding feels like, so I know what I am getting into and not practice something I dont like. What I do know is that I wont be doing game development. Because I have tried it, but AI and Machine learning seems interesting😄

obsidian sinew
# sour hemlock The syllabus includes C language programming, JAVA, artificial intelligence, Pyt...

In that case I'd start with Java. You'll get a good understanding of programming in general and it's object oriented which is pretty important when creating bigger programs. They have it as the first language in my uni as well.

Other option would be Python, as it's also relatively easy to pick up. A lot of uni's switched to that as a first language.

If you want to do Python then a good first free course would be 'python for everybody'.
For both languages (and more) a lot of my fellow student really love the YouTube channel 'Bro Code' which has 12 hour course video's on several languages including Python and Java.

Just remember that the most important thing is to start coding. Start somewhere and see if you like it. If you don't, no worries, just start in another language or another project. You'll always learn from it and eventually you'll find something that fits you.

sour hemlock
obsidian sinew
carmine glen
trail berry
#

Hi guys, i'm new here

woeful quiver
#

hey who know c

alpine belfry
#

I know C but it's been years since I touched it. Now I'm learning Unity to make game

obsidian plaza
clever fractal
true rampart
#

is there any one in here who work as a web developer

orchid totem
#

hey guys,
i want to start coding but i just wanna know what are some cool things you can do with code, just to have a goal in mind if i want to start

naive pumice
#

Hey everyone!

obsidian plaza
# orchid totem hey guys, i want to start coding but i just wanna know what are some cool thing...

Honestly depends on what you start with. You can develop games, apps, websites, algorithms, chatbots, chrome extensions. Anything you can do on a computer you can do with code!

You need to choose one route however. If you dont have anything in mind, try with Javascript. You can develop websites,games,apps and ai with it. Whatever interest you find in those trial and errors just specialise yourself in it. For example lets say you enjoy making website. Then devote to learning databases's, excell your frontend skills etc

There is also a niche field of competitive programming that involves problem solving with code. I enjoy it a lot, but I would not reccomend it starting out

cosmic axle
#

Im learning lua, for game dev cuz that interests me. I am learning via course, I really want to get into C++ after some smaller projects in lua. Do you guys think that would be a good idea or could I do a language in between. Because Lua is quite simple and C++ quite hard. And I really wonder what are other popular game dev languages I know you can do it in python and java but like more specialized languages. C++ ofcourse isnt really specialized but almost every language is based of C++ so I think its one of the best game dev languages out there. I would love to hear your opinion!

obsidian plaza
# cosmic axle Im learning lua, for game dev cuz that interests me. I am learning via course, I...

Honestly, I wouldnt have reccomended learning LUA, but since you have done that so it cant be helped.
C# Might be a better choice to learn here. You can use the powerful Unity Engine using it, and its similar to JAVA.
However, after some amount of expertise C++ might be the way to go for game development
PS: Almost every popular enough language has game engines, and ways of game development like javascript

cosmic axle
#

Ye ik lua is a odd choice idk what I was thinking, but thanks

obsidian plaza
# cosmic axle Ye ik lua is a odd choice idk what I was thinking, but thanks

btw, I can feel you on the C++ is hard, I struggled with it in 9th grade. But managed to learn it. Of course I still get bamboozled by certain complex cases of abtsractions, and polymorphisms. But Consistency and Practice would help you learn it.
One approach i had was -> Learn from tutorials courses usually have seperate topics split, So everytime you finish a topic then do the following:

  1. Make notes on it, make more practical notes rather then theoretical
  2. (Optional) Try Making a project(before you start the course have a list of projects you can do and when you feel you have enough knowledge for that project code it, if you feel stuck I could try giving you a list of console based problems)
  3. Attempt Problems on it on Hackerrank C++ Section

After learning C++ and mastering that OOP jump into a game engine

gritty compass
#

Hello, I learnt flutter about a year ago for app development (basics) and I am now learning python. I streamed today, and will stream for the next 99 days too. Yippie

native sequoia
#

i want to start coding too any suggestions for any languages i can start with i know a bit of java only for exams of school

cosmic axle
#

Python is the most usual language to start because its widely used and pretty easy to learn. If you want a more specialized language you could look into languages like Ruby, there are a lot more. Those languages are more specialized in web dev, game dev, mobile apps etc. Pretty much for everything there is a more specialized language. So that depends if you know what you wanna do. If you want to learn a general language the easiest is probably Python like I said but javascript is also good. (Im not an expert coder to but I looked into wat language I should learn pretty good. This is still my opinion and could really differentiate)

native sequoia
#

@cosmic axle could u suggest a youtube channel from where i could learn python

cosmic axle
#

There are a loooot but I cant think of one that is outstanding, I would just do a quick YouTube search

fair gate
#

try freecodecamp

obsidian plaza
# native sequoia i want to start coding too any suggestions for any languages i can start with i ...

If you wanna go the easy route: Python and then move on.
However learning a low level language like C and C++ can be more helpful as you can pick up on other languages pretty quickly with it.
I studied c++ first and was able to easily learn Python in 3 days(and even win a python programming competition the 4th day 😉 )
Learning python and then learning a lower level language is also possible and people have done that. It just becomes a bit more problematic.

As for a resource to learning python:
-Video: Freecodecamp
-Reading: Sololearn

PS: My suggestion is based off of your basic knowledge of JAVA, if however your JAVA knowledge is negglegible start with Python/JS and explore the different fields of coding and pick the field you like the most.

native sequoia
#

@obsidian plaza thanks for the suggestion u guys r really supportive and helpful

west gale
#

Hi. I'm trying to code my own dynamic qr code - I want to update the text displayed by this. I have my qr code got generated with python and connected this to a SQLite Database. When I update the data in the database and comment out the save-function for the qr code it didn't display the updated text.
I hope you can understand what I'm trying to do - does anybody have an idea what I can do?

pastel sinew
obsidian plaza
pastel sinew
#

It depends what you're using it for. Python has really powerful libraries for data analytics, ML/AI, and other more high-level applications. So if ur specializing in that, python is the route to go. If what you're looking for is speed, performance, low-level/bare-metal control of memory, like if you're coding OS components, embedded devices, or coding a game or game engine, you're gonna need C/C++/Rust and/or assembly.

obsidian plaza
versed meteor
#

soo im currently learning HTML on codeacademy.... planning to go for ai and other stuff

pastel sinew
versed meteor
#

soo what are the foundational skills to learn ??????????????

clever fractal
pastel sinew
# versed meteor soo what are the foundational skills to learn ??????????????

Learn how to code first of all. Do some research about what programming languages are out there, and pick the one you would like to learn most. For your case I would recommend Python. Then solve problems and make projects with that programming language. And eventually you'll get better and better at it.

Here's an article that'll help you understand, well, where to start. (Misty keeps deleting my links so just go to the link in the image below)

pastel sinew
naive pumice
#

Hello, I been wanting to code a website. Any good resources to start with?

clever fractal
cerulean zenith
#

Hello, I have a question connected with coding yet a little bit broader I think. Basically I'm now an engineer after computer science degree but I am not sure which area of programming to focus on. I definitely don't want to go for front-end, neither for networking. I tried Unity (quite cool honestly, wanted to try unreal but my computer is too weak), had some projects with embedded stuff (NXP boards + Qt applications, unfortunately no arduino/STM/ESP which are worth knowing for jobs), did fullstack projects (React + NodeJS server + MongoDB), some stuff with python (ML as a part of my studies) and anaconda but I find myself indecisive when it comes to choosing the thing for me. I know that it's more about making a choice work out (aka doing stuff after making a choice) and that I don't have to stick to one thing for my whole life. Ngl finding a job soon is quite important for me, yet I'm trying to find something enjoyable for me. So my question is: what type of tip/advice do you have for making a choice?

round shell
#

Hello, is advanced maths helpful in coding?

pastel sinew
# cerulean zenith Hello, I have a question connected with coding yet a little bit broader I think....

Hello there. Apologies for the late reply.

So it seems like your question is a question of:

"What do I want to do?" "And after I find out what I want to do, how do I make it into a profitable career?”

For the first question, if I were in your shoes, I would try to think about which courses/projects I have done before made me feel the most fulfilled/excited. Which were the ones you found the most interesting. That takes some introspection and exploration, and you’re the only person that can do that for yourself.

For the second question, I don’t have much of a personal answer to since I’m not at that stage yet. But from talking to people who are in computer science and people who are already fully-fledged engineers, what I would say is:

  1. Become super proficient and well-practiced in the field you decided to specialise in:
    1. Never settle on good enough and always challenge yourself. Solving more and more challenging problems and finishing more and more challenging projects should become routine. Ideally this should excite you. This is how you sharpen:
      1. your problem solving skills,
      2. and how you develop experience
    2. Learn about ways to optimise your solutions and projects. In real-world projects, there are a lot of tradeoffs you will have to make in terms of things like: performance vs scalability vs adaptability etc etc… You can’t have everything. You need to understand what metrics are important for your project, consider what tradeoffs you need to make, and optimise your code accordingly.
#

c. Make sure your code is readable + learn more about the language(s) you code in as you move forward. This can help you make your solutions more concise, have less redundancy, and perform better.
2. Work with other engineers/people on projects. This helps you develop experience working with other people and gives you experience on what it’s like to work in teams. Through this, you and your coworker/partner can learn from each other.
3. Think about what solutions/projects the world needs. Through this you could build a startup to produce a solution to said problem.

Hope this was helpful!

pastel sinew
# round shell Hello, is advanced maths helpful in coding?

Depends on what you're trying to do. If you're doing data science, machine learning, cryptography, game development, etc.. being familiar with advanced math concepts is definitely going to help as these fields are quite math intensive when you get into them. But math is everywhere in computer science, so it's a useful thing to know. It also depends how deep you want to go into a specific field. But in terms of programming, math is still useful when trying to understand how some functions/methods work, but what I feel is more helpful in learning how to program is understanding how to think algorithmically, being familiar with programming concepts and certain basic algorithms, and learning how to debug your code. (Use a debugger. It's a lifesaver in many situations.)

round shell
pastel sinew
pastel sinew
# cerulean zenith Thank you so much 🙏 <:Fire:1094592025732583574>

Here's a helpful vid about making ur code more readable (u may already know this but here u go anyhow :>): https://youtu.be/CFRhGnuXG-4 and this one: https://youtu.be/Bf7vDBBOBUA

I'm a Never Nester and you should too.

Access to code examples, discord, song names and more at https://www.patreon.com/codeaesthetic

Correction: At 2:20 the inversion should be "less than or equal", not "less than"

▶ Play video

Why you shouldn't write comments in your code (write documentation)

Access to code examples, discord, song names and more at https://www.patreon.com/codeaesthetic

References:

https://www.commitstrip.com/en/2016/08/25/a-very-comprehensive-and-precise-spec/?

▶ Play video
pastel sinew
cerulean zenith
#

thank you, I will definitely check it soon

clever fractal
#

@pastel sinew thanks for recommending the videos above, although I was a CS student, it's rarely mentioned how to write clean code

round shell
elder ocean
#

Hey anyone got any tips for how to learn python, I wanna learn coding mainly out of interest

patent flint
elder ocean
patent flint
pastel sinew
red grail
#

@frosty raft

frosty raft
#

Hi guys, I am working on a project that I need help in for development, and who could could be a better person for that than you guys. Someone who has got some great skills up his sleeves.

#

Hoping for your support. 😃

#

Anyone who knows how to code or more specifically app/web development please dm me.

frosty raft
# brazen knoll Project like what

Hi, it's a social news network which would be a platform where people will get latest unbiased news and will be able to debate and discuss on that. We currently want a minimal viable product with just the basic functionalities which will include a news feed, a discussion page for different news and if possible a sign in page.

brazen knoll
obsidian plaza
frosty raft
frosty raft
obsidian plaza
brazen knoll
fickle surge
obsidian plaza
frosty raft
#

from flask import Flask, render_template, request, redirect, url_for

app = Flask(name)

Sample data structure to store news and debates

news_articles = []
debates = []

Homepage - Display news articles

@app.route('/')
def index():
return render_template('index.html', articles=news_articles)

Upload a news article

@app.route('/upload', methods=['GET', 'POST'])
def upload():
if request.method == 'POST':
title = request.form['title']
content = request.form['content']
news_articles.append({'title': title, 'content': content})
return redirect(url_for('index'))
return render_template('upload.html')

View and participate in debates

@app.route('/debates', methods=['GET', 'POST'])
def view_debates():
if request.method == 'POST':
debate_topic = request.form['topic']
debates.append({'topic': debate_topic, 'comments': []})
return redirect(url_for('view_debates'))
return render_template('debates.html', debates=debates)

Add comments to a debate

@app.route('/debates/int:debate_id', methods=['POST'])
def add_comment(debate_id):
comment = request.form['comment']
debates[debate_id]['comments'].append(comment)
return redirect(url_for('view_debates'))

if name == 'main':
app.run(debug=True)

brazen knoll
#

Can anyone tell what is the problem with this code actually on executing this code it is showing error like flask name module not found
If anyone can help with this

clever fractal
#

hmm maybe you can search it on StackOverflow

obsidian plaza
brazen knoll
#

Actually this is tested on visual studio code and it is written on intellij

obsidian plaza
#
  1. Pls don't use multiple ides for one project.
  2. Test after each step then creating a whole program and then testing.
sharp coral
#

guys tell me a site to practice python questions on

teal trout
#

I am working on a HTML Form with JavaScript and CSS and I need some ideas as to what kind of webpage to build. Any suggestions are welome :)

clever fractal
pastel sinew
pastel sinew
sharp coral
clever fractal
surreal grail
#

HackerRank is good for beginners to intermediate

sharp coral
#

thenks @clever fractal @surreal grail
i'll check hackerRank 🥂

surreal grail
#

👍🏻

pastel sinew
#

man new UI update in IntelliJ is awesome

surreal grail
#

do anyone have any review on figma

obsidian plaza
surreal grail
#

for website designing

obsidian plaza
surreal grail
#

But got to know it's bought by adobe

surreal grail
#

so it might be possible that figma might not provide as many features before for free than that time

obsidian plaza
surreal grail
obsidian plaza
# surreal grail Which one

The other software is named "adobe xd" and learning ui software is a days worth of time at most. Rest is your creativity and ideas. Just go ahead and use figma its rly good

surreal grail
#

Thanks

tall cosmos
#

Does anyone know how to code a website?

surreal grail
#

did you learn frontend and backend languages

obsidian plaza
surreal grail
fresh zinc
#

guys I feel like trying this out ~ https://www.codedex.io/

Codédex is a new way to learn to code for kids and adults alike. Journey through the fantasy land of Python, HTML, CSS, or JavaScript, earn experience points (XP) to unlock new regions, and collect all the badges at your own pace. Start your adventure today.

clever fractal
clever fractal
fresh zinc
clever fractal
fresh zinc
noble condor
fresh zinc
#

`# Write code below 💖

ph = int(input('Enter a pH value (0-14): '))
if (ph>7):
print('Basic')

elif(7>ph>0):
print('Acidic')

else:
print('Neutral')`

kinda feel proud for this

alpine needle
#

Nice, new to python?

obsidian plaza
fresh zinc
#

`'import random

q = (input('What is your question: '))
a = random.randint(1, 9)

if a == 1:
print('Magic 8 ball: Yes - definitely.')

elif a == 2:
print('Magic 8 ball: It is decidedly so.')

elif a == 3:
print('Magic 8 ball: Without a doubt.')

elif a == 4:
print('Magic 8 ball: Reply hazy, try again.')

elif a == 5:
print('Magic 8 ball: Ask again later.')

elif a == 6:
print('Magic 8 ball: Better not tell you now.')

elif a == 7:
print('Magic 8 ball: My sources say no. ')

elif a == 8:
print('Magic 8 ball: Outlook not so good.')

else:
print('Magic 8 ball: Very Doubtful.')'`

fresh zinc
#

`# Write code below 💖
G = 0
H = 0
R = 0
S = 0

print('===============')
print('The Sorting Hat')
print('===============')

one = int(input('Q1) Do you like Dawn or Dusk?\n1) Dawn\n2) Dusk\n'))

if one == 1:
G += 1
R += 1

elif one == 2:
H += 1
S += 1

else:
print("Wrong Input")

two = int(input('Q2) When I’m dead, I want people to remember me as:\n1) The Good\n2) The Great\n3) The Wise\n4) The Bold\n'))

if two == 1:
H += 2

elif two == 2:
S += 2

elif two == 3:
R += 2

elif two == 4:
G += 2

else:
print("Wrong Input")

three = int(input('Q3) Which kind of instrument most pleases your ear?\n1) The violin\n2) The trumpet\n3) The piano\n4) The drum\n'))
if three == 1:
S += 4

elif three == 2:
H += 4

elif three == 3:
R += 4

elif three == 4:
G += 4

else:
print("Wrong Input")

most_points = max(gryffindor, ravenclaw, hufflepuff, slytherin) # We'll learn about max() in the Functions chapter

if gryffindor == most_points:
print('🦁 Gryffindor!')
elif ravenclaw == most_points:
print('🦅 Ravenclaw!')
elif hufflepuff == most_points:
print('🦡 Hufflepuff!')
else:
print('🐍 Slytherin!')`

#

✨Le Sorting Hat ✨

fresh zinc
fresh zinc
obsidian plaza
fresh zinc
clever fractal
clever fractal
# fresh zinc

you might want to split up the string into multiple lines instead, try searching multi-line f-string for how to do it

obsidian plaza
clever fractal
obsidian plaza
surreal grail
#

Lol

clever fractal
fresh zinc
alpine needle
#

how do you share code like that?
I wanted to share one of my projects but the app wont let me send

fresh zinc
fresh zinc
fresh zinc
#

A gif that I make with python (basically put 2 pictures together only 😅)

alpine needle
#

A game I made in Python

PS. option 4&5 won't work because they involve a custome module

rare crest
#

This is pretty funny 🤣
Lots of # though

clever fractal
reef vapor
#

I want to start coding from python from today onwards

Any tips for me
Never done coding before

rare crest
alpine needle
#

My friend sent me a reel for a python project, so i made it.

dreamy fog
#

Hello

mild eagle
orchid edge
#

hey there! im a coding enthusiast and wanted to make an app for my portfolio in the future so any suggestions about what i should code?

sharp herald
#

Im looking to start my journey in coding

mighty spruce
#

🚀 Day 11 of #100DaysOfCode:
C++ solved Leetcode 13: Roman to Integer 🟢
DEV: IKEA footer Layout With Tailwind CSS 🟢

steel stump
#

Anyone here

mighty spruce
#

🚀 Day 12 of #100DaysOfCode:
C++ solved Leetcode 22. Generate Parentheses🟢
DEV: Royal Enfield Hero Banner Layout With Tailwind CSS🏍️🟢

mighty spruce
#

🚀 Day 13 of #100DaysOfCode:
C++:
Leetcode 100. Same Tree 🟢
96. Unique Binary Search Tree 🟢
DEV: Started Learning Javascript
⚫️ Variables
⚫️ Loops

mighty spruce
#

🚀 Day 14 of #100DaysOfCode:
C++:
LeetCode 36. Combination Sum 🟢
217. Cantain Duplicate 🟢
Contain Duplicate
Dev: Rock, paper, scissors using using javascript🟢
⚫️ some problems with the loop
⚫️ Truthy and falsy