Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
3 votes
2 answers
126 views

Listing the playlists on which each song appears

I created a way to export my Google Play playlists to a text file and also a way to export all of my songs in Google Play to a text file. Now I have both the song list (in an array format) and ...
Zach Saucier's user avatar
0 votes
1 answer
2k views

Generic Binary Search Tree Implementation in Java

There is an implementation of Binary Search Tree. This is kind of based on Set Theory that duplicates are not allowed but an attempt to adding the same node twice will replace the older node. BSTNode ...
Hamidur Rahman's user avatar
7 votes
1 answer
8k views

Search in a JSON structure after a key

This code is supposed to search for a specific key in a object or an array or a mix between both. Is there anything I can improve? ...
Kastel's user avatar
  • 73
3 votes
2 answers
3k views

Product search script Object Oriented PHP

I have made a search script in OO PHP that searches for products based on the inserted criteria, selects them and checks whether a sale is on, if it's in stock and other features. I am new to OOP so ...
Yudi's user avatar
  • 31
5 votes
3 answers
145 views

Composing and executing a customer search

I was wondering if someone could help me refactor this code. Although I know this looks bad, it works. Now I would like to refactor it so I would respect the open/closed principle in SOLID. Let's say ...
pykos's user avatar
  • 51
5 votes
2 answers
7k views

Search word in multiple files

I am writing a brute-force method to search for a word. Please review my code and tell me how I can improve it. ...
Sarah's user avatar
  • 151
10 votes
1 answer
1k views

Generic domain independent Monte Carlo Tree Search methods library

I've written this small generic library for the purpose of my Bachelor's thesis. It's fully functional and unit tested and I want to get as many opinions as possible regarding overall code quality (...
inejc's user avatar
  • 195
3 votes
3 answers
2k views

Search form sample pattern

I've just started to practice coding in OOP and just wanted to ask if my code's pattern is correct. I need your comments or suggestions so I can improve it. sample_class.php: ...
ytsejam's user avatar
  • 31
4 votes
3 answers
179 views

Is there a better, more object oriented way to write this Finder method?

I have several lists of objects which are stored in different locations, based on what they are and who needs them - the system, or the user, for example. There are times where I am only given an ID ...
Cody's user avatar
  • 241